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

Implement molecular-profile-sample-counts endpoint #10798

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

Conversation

alisman
Copy link
Contributor

@alisman alisman commented May 17, 2024

No description provided.

@alisman alisman force-pushed the demo-rfc80-poc branch 4 times, most recently from fa6c559 to 2f71790 Compare May 17, 2024 17:55
@alisman alisman requested a review from haynescd May 17, 2024 17:57
import org.cbioportal.model.ClinicalData;
import org.cbioportal.model.ClinicalDataCount;
import org.cbioportal.model.Sample;
import org.cbioportal.model.*;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i think IDE did this. what's right?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you need help with your ide settings?

Copy link
Collaborator

@haynescd haynescd left a comment

Choose a reason for hiding this comment

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

Looks good (Now you are a backend dev.) Just small changes

@Override
public List<GenomicDataCount> getGenomicDataCounts(StudyViewFilter studyViewFilter, CategorizedClinicalDataCountFilter categorizedClinicalDataCountFilter) {

//return new ArrayList<GenomicDataCount>();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove


<!-- for /molecular-profile-sample-counts/fetch (returns GenomicDataCount) -->
<select id="getGenomicDataCounts" resultType="org.cbioportal.model.GenomicDataCount">
SELECT genetic_profile.stable_id AS value, genetic_profile.stable_id AS value2, genetic_profile.name AS label, count(sample_profile.genetic_profile_id) AS count FROM sample_profile
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we have each column on a new line? (just easier to read)
Ex.
Select
stable_id,
name

@@ -13,6 +13,26 @@
#{studyId}
</foreach>
</if>


<if test="studyViewFilter.genomicProfiles != null and !studyViewFilter.genomicProfiles.isEmpty()">
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gblaih here is the filter. i found a small problem with foreach at the bottom but this is the basic idea.

@alisman alisman force-pushed the demo-rfc80-poc branch 2 times, most recently from f744d2e to c6b9031 Compare May 22, 2024 19:19
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