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

Commit

Permalink
PROC-1525: Improve filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharygoodwin committed Jun 28, 2024
1 parent 6f573e2 commit d7ae0b6
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.indeed.proctor.consumer;

import com.indeed.proctor.common.PayloadProperty;
import com.indeed.proctor.common.ProctorResult;
import com.indeed.proctor.common.model.Allocation;
import com.indeed.proctor.common.model.ConsumableTestDefinition;
Expand All @@ -15,7 +14,6 @@
import java.util.Optional;
import java.util.Set;
import java.util.function.BiPredicate;
import java.util.stream.Collectors;

import static com.indeed.proctor.consumer.AbstractGroups.loggableAllocation;

Expand Down Expand Up @@ -212,10 +210,10 @@ public ProctorGroupsWriter build() {
// Do not log payload experiments which were overwritten
if (consumableTestDefinition != null
&& consumableTestDefinition.getPayloadExperimentConfig() != null
&& !proctorResult.getProperties().values().stream()
.map(PayloadProperty::getTestName)
.collect(Collectors.toSet())
.contains(testName)) {
&& proctorResult.getProperties().values().stream()
.noneMatch(
property ->
property.getTestName().equals(testName))) {
return false;
}

Expand Down

0 comments on commit d7ae0b6

Please sign in to comment.