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

spark backend for sample-counts api #6475

Merged
merged 20 commits into from
Aug 6, 2019

Conversation

doori
Copy link

@doori doori commented Aug 5, 2019

spark backend for api/sample-counts/fetch.

Reviewers:
@kalletlak @n1zea144

@@ -36,12 +37,18 @@
@Qualifier("sampleSparkRepository")
private SampleRepository sampleSparkRepository;
@Autowired
private CopyNumberSegmentSparkRepository copyNumberSegmentSparkRepository;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this not implementing the CopyNumberSegmentRepos?

Copy link
Author

Choose a reason for hiding this comment

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

This is another case where the method returns internalIds and filters based on that. (List<Integer> samplesWithCopyNumberSeg = copyNumberSegmentRepository.fetchSamplesWithCopyNumberSegments()) So the workaround was to create a method that returns List<String> sampleIds and create another method in SampleSeriviceImpl.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why not introduce a method to the interface which returns a List (or return List and have the service process internal ids or stable sample ids as required)?

Copy link
Author

Choose a reason for hiding this comment

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

thanks for the suggestion. I added a method in the interface that returns a list of Samples.

@n1zea144 n1zea144 merged commit 8d0f403 into cBioPortal:spark-parquet-persistence Aug 6, 2019
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.

2 participants