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 Session Service 'user settings' for Results View #9450

Merged
merged 9 commits into from
Jul 26, 2022

Conversation

BasLee
Copy link

@BasLee BasLee commented Apr 11, 2022

This PR will provide support in the cBioPortal backend to store user settings for Results View in Session Service. At the moment this is only done for user settings in Study View.

Changes:

  • Add results_view to SessionPage type
  • Add ResultsPageSettings containing result page configuration (at the moment only clinicallist)
  • Map SessionPage-type to PageSettingsData-implementation using SessionServiceController.pageTypeToData
  • Prevent unnecessary unmarshalling by directly passing the PageSettingsData body to updatedPageSettingSession

@sonarcloud
Copy link

sonarcloud bot commented Apr 12, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell B 9 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@pvannierop pvannierop changed the title Oncoprint config user session Implement Session Service 'user settings' for Results View Jul 11, 2022
HttpServletResponse response) throws IOException {
private void updatedPageSettingSession(
PageSettings pageSettings,
@RequestBody PageSettingsData body,
Copy link
Member

Choose a reason for hiding this comment

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

maybe name the variable pageSettings instead of body?

Copy link
Author

Choose a reason for hiding this comment

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

The variable pageSettings is already declared on the previous line

Copy link
Member

@dippindots dippindots left a comment

Choose a reason for hiding this comment

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

Thanks for making this, the idea of adding results view page states to user settings is awesome. Can I test this locally? Do I also need to apply some front-end changes?

@pvannierop
Copy link
Contributor

pvannierop commented Jul 19, 2022

@dippindots

Can I test this locally? Do I also need to apply some front-end changes?

Yes, the frontend changes are proposed in PR #9450 . For now this only relates to storing the clinical tracks layout of Oncoprint.

Bas Leenknegt and others added 9 commits July 26, 2022 15:48
Rename result_view to results_view
Update web/src/main/java/org/cbioportal/web/parameter/SessionPage.java
Update web/src/main/java/org/cbioportal/web/parameter/ResultPageSettings.java
Co-authored-by: Onur Sumer <s.onur.sumer@gmail.com>
- remove unused var
- remove unthrown exception
- make fields private & add getters setters
@BasLee BasLee force-pushed the oncoprint-config-user-session branch from 75e11f8 to 9e3dbaf Compare July 26, 2022 13:49
@sonarcloud
Copy link

sonarcloud bot commented Jul 26, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@dippindots dippindots merged commit 44c084e into cBioPortal:master Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants