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 skin.hide_download_controls property #8529

Merged
merged 1 commit into from
May 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/Customizing-your-instance-of-cBioPortal.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,12 @@ Below you can find the complete list of all the available skin properties.
<td>sets default setting for the genes filter in patient view to only show mutations for genes that were profiled for mutations or CNA's in all samples of that patient. If unset, patient view will show mutations/CNA's for genes that were profiled in any sample.</td>
<td>false</td>
<td>true / false</td>
</tr>
<tr>
<td>skin.hide_download_controls</td>
<td>removes all download and copy-to-clipboard options.</td>
<td>false</td>
<td>true / false</td>
</tr>
<tr>
<td>skin.show_settings_menu</td>
Expand Down
5 changes: 5 additions & 0 deletions docs/portal.properties-Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ Add a custom logo in the right side of the menu. Place here the full name of the
skin.right_logo=
```

Prevent users from saving data by removing all Download tabs and download and copy-to-clipboard controls.
pvannierop marked this conversation as resolved.
Show resolved Hide resolved
```
skin.hide_download_controls=
```

## Control default setting for filtering of genes in mutation and CNA tables of patient view
Different samples of a patient may have been analyzed with different gene panels. In patient view mutations and discrete CNA's can be filtered based on whether the gene of respective mutations/CNA's was profiled in all samples of the patient (mutations profiled in `all samples`), or not (mutations profiled in `any sample`). Setting this field to `true` will make patient view select the `all samples` filter at startup. When set to false or left blank the patient view will default to the `any samples` filter setting.
```
Expand Down
3 changes: 2 additions & 1 deletion portal/src/main/webapp/config_service.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@
"skin.geneset_hierarchy.default_gsva_score",
"skin.geneset_hierarchy.collapse_by_default",
"skin.mutation_table.namespace_column.show_by_default",
"comparison.categorical_na_values"
"comparison.categorical_na_values",
"skin.hide_download_controls"
};


Expand Down
3 changes: 3 additions & 0 deletions src/main/resources/portal.properties.EXAMPLE
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ skin.study_view.link_text=To build your own case set, try out our enhanced Study
## enable this to configure a global message for the studies that are unauthorized; the message can contain placecards like {$.Owner.email} for the studies that have the information in the study tags
# skin.home_page.unauthorized_studies_global_message=The study is unauthorized. You need to request access.

setting controlling whether Download tabs and download/copy-to-clipboard controls should be shown
# skin.hide_download_controls=true

## enable and set this property to specify a study group to be used to identify public studies for which no specific authorization entries are needed in the `authorities` table
# always_show_study_group=

Expand Down