Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add samples field to custom filters to allow fetching samples without session #10998

Open
wants to merge 5 commits into
base: demo-rfc80-poc
Choose a base branch
from

Conversation

gblaih
Copy link
Contributor

@gblaih gblaih commented Sep 17, 2024

Fix #10982

@gblaih gblaih force-pushed the demo-rfc80-poc-custom-samples-field branch from 967693c to a3e3be0 Compare September 18, 2024 15:11
List<CustomSampleIdentifier> samples = filter.getSamples();
return (samples != null) ? samples.stream() : Stream.empty();
})
.collect(Collectors.toList());

Choose a reason for hiding this comment

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

Suggested change
.collect(Collectors.toList());
.toList();

Comment on lines 136 to 138
List<CustomSampleIdentifier> customSampleIdentifiers = new ArrayList<>();

customSampleIdentifiers.addAll(customSamplesFromProperty);

Choose a reason for hiding this comment

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

Suggested change
List<CustomSampleIdentifier> customSampleIdentifiers = new ArrayList<>();
customSampleIdentifiers.addAll(customSamplesFromProperty);
List<CustomSampleIdentifier> customSampleIdentifiers = new ArrayList<>(customSamplesFromProperty);

@junengineer
Copy link

@gblaih please replace collect(Collectors.toList()) with toList() in everywhere

@haynescd
Copy link
Collaborator

@gblaih address the sonar cloud issues as well

Comment on lines 260 to 264
if (rangeValue != null) {
if (ranges.stream().anyMatch(r -> r.encloses(rangeValue))) {
count++;
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

this can be simplified &&

@gblaih gblaih force-pushed the demo-rfc80-poc-custom-samples-field branch from d586273 to 317412b Compare September 25, 2024 17:09
Copy link

sonarcloud bot commented Sep 25, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants