-
Notifications
You must be signed in to change notification settings - Fork 298
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
Hide download controls #3716
Hide download controls #3716
Conversation
@@ -68,7 +69,10 @@ export default class PatientHeader extends React.Component< | |||
<h5>{patient.id}</h5> | |||
<ClinicalInformationPatientTable | |||
showFilter={false} | |||
showCopyDownload={false} | |||
showCopyDownload={ | |||
false && |
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.
false && anything === false
a38721f
to
7ebc85b
Compare
@pvannierop there was some talk about whether we really wanted to disable download? |
1e38401
to
7c83adc
Compare
marginLeft: 10, | ||
}} | ||
/> | ||
{!AppConfig.serverConfig.skin_hide_download_controls && ( |
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.
showShouldDownloadAndCopyControls()
?
{ | ||
]; | ||
|
||
if (!AppConfig.serverConfig.skin_hide_download_controls) { |
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.
shouldShowDownloadandCopyControls()
?
/> | ||
)} | ||
{!this.hasNoSegmentData && | ||
!AppConfig.serverConfig.skin_hide_download_controls && ( |
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.
same here?
@@ -205,15 +207,18 @@ export class ClinicalDataTab extends React.Component< | |||
<Else> | |||
<ClinicalDataTabTableComponent | |||
initialItemsPerPage={20} | |||
showCopyDownload={true} | |||
showCopyDownload={ |
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.
same here?
@@ -479,6 +480,9 @@ export default class MutationMapper< | |||
: undefined | |||
} | |||
legend={this.legendColorCodes} | |||
showDownloadControls={ | |||
!AppConfig.serverConfig.skin_hide_download_controls |
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.
same?
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.
see comments
f05c1c9
to
1e543af
Compare
1e543af
to
668b88e
Compare
db94e1e
to
b2fea3e
Compare
@pvannierop gonna close this now. |
@pvannierop i closed this for housekeeping. |
3777c82
to
a57df61
Compare
@pvannierop is there a reason we don't just do this in one place inside of the component? THere is something called the React context api which would allow us access global config. It strikes me as a perfect usecase for this. |
@alisman I am not aware of this feature. Should we discuss how to do this? |
bf99e71
to
f90d864
Compare
@@ -1,2 +1,2 @@ | |||
#export CBIOPORTAL_URL="http://www.cbioportal.org" | |||
export CBIOPORTAL_URL="http://localhost:8080" |
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.
probably shouldn't commit this?
f5d2032
to
935e710
Compare
18e7074
to
8f1ae84
Compare
8f1ae84
to
2169f41
Compare
Hide Download Controls
Feature description
This PR will hide all download and copy-to-clipboard options from cBioPortal. This behavior is controlled by a new skin_hide_download_controls property in serverConfig. The removed download options include:
Tests
Localdb-e2e tests are added that check occurrence of download/clipboard icons and of occurrence of the word download anywhere on the page. Also, test that check for new tabs appearing on Studies Overview, Results View, Study View, Patient View and Group Comparison are included (to warn the developer that the test coverage should be increased to cover the new tab).