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

fix: allow empty genepanel query for API #11358

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Aiosa
Copy link

@Aiosa Aiosa commented Jan 29, 2025

Fix #11252

Describe changes proposed in this pull request:
Gene panel queries can be empty if a study does not have gene panel data.

@inodb inodb added the bug label Jan 30, 2025
@haynescd
Copy link
Collaborator

haynescd commented Feb 4, 2025

@Aiosa
Copy link
Author

Aiosa commented Feb 5, 2025

Fixed, thans for the notification, accidentally removed a line with the variable definition.

Copy link
Contributor

@oplantalech oplantalech left a comment

Choose a reason for hiding this comment

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

Solves the reported problem

List<SampleMolecularIdentifier> molecularSampleIdentifier = interceptedGenePanelDataMultipleStudyFilter.getSampleMolecularIdentifiers();

if (molecularSampleIdentifier == null) {
return new ResponseEntity<>(new ArrayList<GenePanelData>(), HttpStatus.OK);
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 to ResponseEntity.ok(List.of())

@haynescd
Copy link
Collaborator

haynescd commented Feb 7, 2025

Looks good left one comment and you just need to fix the conflicts.

We have started updating the project structure and moved all the old code under a legacy folder. Let me know if you need help fixing the conflicts

@Aiosa Aiosa force-pushed the fix/gene-panels-api branch from cd66b71 to 0e9a4cc Compare February 10, 2025 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with gene-panel-data/fetch API When molecularProfileIds is Empty
4 participants