-
Notifications
You must be signed in to change notification settings - Fork 549
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
Set download button visibility in UI based on user role/group #10254
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks!
Is there a test for getDownloadControl()? |
@JREastonMarks currently there are no test for this class (as it is static class). The way how the properties are loaded makes it hard to write tests for this class. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this contribution. I would also suggest that the Customizing-your-instance-of-cBioPortal.md file is included with some more detailed explanation of the feature.
core/src/main/java/org/mskcc/cbio/portal/util/GlobalProperties.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/mskcc/cbio/portal/util/GlobalProperties.java
Outdated
Show resolved
Hide resolved
core/src/main/java/org/mskcc/cbio/portal/util/GlobalProperties.java
Outdated
Show resolved
Hide resolved
Kudos, SonarCloud Quality Gate passed! |
@kalletlak thanks! Re the testing, maybe good to file a follow up ticket if there isn't one already? It does seem like slightly complex logic. Agree that it would be a bigger project to enable testing for this class |
Fix #10248
RFC: https://docs.google.com/document/d/19KV2Yplzxl1wnUc5bJDeysGX8vmL24UNi41NlIkX44s/edit
Implements below logic