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

PROC-1523: Add namespaces filter #170

Conversation

zacharygoodwin
Copy link
Contributor

No description provided.

@zacharygoodwin zacharygoodwin self-assigned this Jun 4, 2024
@zacharygoodwin zacharygoodwin changed the title Proc 1523 PROC-1523: Add namespaces filter Jun 4, 2024
@zacharygoodwin
Copy link
Contributor Author

Note: review: #166 first this builds on top of the other PR

Copy link
Collaborator

@jamesallen-indeed jamesallen-indeed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; just a few minor nits

public boolean matches(final String testName, final ConsumableTestDefinition testDefinition) {
final boolean isMatched =
Optional.ofNullable(testDefinition.getPayloadExperimentConfig())
.map(PayloadExperimentConfig::getNamespaces).orElse(Collections.emptyList())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra-mega-nit: move orElse to newline.

Copy link
Contributor Author

@zacharygoodwin zacharygoodwin Jun 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I agree with you, the autoformatter does not and wants it with the orElse on the same line as the map. So I am going to leave as is.

@zacharygoodwin zacharygoodwin merged commit 4b060ef into indeedeng:EXP-660-Payload-Experiment-MVP Jun 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants