Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
EXP-660: More lombok and include propertie sin getAsProctorResult()
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharygoodwin committed Jun 10, 2024
1 parent 44e91b0 commit dee4dab
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
package com.indeed.proctor.common;

import com.fasterxml.jackson.databind.JsonNode;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.jackson.Jacksonized;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Jacksonized
public class PayloadProperty {
private String testName;
private JsonNode value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public class DynamicFilters implements JsonSerializable {
TestNamePrefixFilter.class,
TestNamePatternFilter.class,
MetaTagsFilter.class,
MatchAllFilter.class));
MatchAllFilter.class,
NamespacesFilter.class));

private final List<DynamicFilter> filters;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
package com.indeed.proctor.common.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.jackson.Jacksonized;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
Expand All @@ -10,6 +13,9 @@

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Jacksonized
public class PayloadExperimentConfig {
@Nullable private String priority;
@Nonnull private List<String> namespaces = Collections.emptyList();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,8 @@ public ProctorResult getAsProctorResult() {
(SortedMap<String, Allocation>) proctorResult.getAllocations()),
Collections.unmodifiableMap(proctorResult.getTestDefinitions()),
proctorResult.getIdentifiers(),
Collections.unmodifiableMap(proctorResult.getInputContext()));
Collections.unmodifiableMap(proctorResult.getInputContext()),
Collections.unmodifiableMap(proctorResult.getProperties()));
}

/**
Expand Down

0 comments on commit dee4dab

Please sign in to comment.