Feature #19177
closedConfig option to disable sharing links
Description
Requested by customer -- sharing links violate their internal data management policy, so they would prefer an option to disable the UI create sharing links (sharing links tab on wb2).
Should do the same on wb1.
Updated by Lucas Di Pentima over 2 years ago
- Assigned To set to Lucas Di Pentima
- Status changed from New to In Progress
Updated by Lucas Di Pentima over 2 years ago
Updates at 2ed8d670a - branch 19177-sharing-links-ui-config
- Adds an exported boolean config knob at
Workbench.DisableSharingURLsUI
incontroller
(false
by default) - Makes Workbench1 not show the Share/Unshare button & links when this config is set to
true
. - Adds test.
Tests are failing (developer-run-tests: #3168 ), but not yet sure if it is because of these changes.
Updated by Lucas Di Pentima over 2 years ago
Updates at arvados-workbench2|e1e17729 - branch 19177-sharing-urls-ui-config
Test run: developer-tests-workbench2: #741
- Reads
Workbench.DisableSharingURLsUI
config fromcontroller
and hides the "Sharing URLs" tab on the collection's sharing dialog if needed. - Also avoids making unnecessary requests for scoped tokens if
Workbench.DisableSharingURLsUI
istrue
. - Adds unit tests.
Updated by Lucas Di Pentima over 2 years ago
Updates at d104886 (arvados repo)
Test run: developer-run-tests: #3170
Failed test re-run: developer-run-tests-apps-workbench-integration: #3398
- Fixes wb1's test assertions when checking for the "Create sharing link" button.
For Workbench2's tests, I had to run them against arvados' 40e378c commit, it seems there's some kind of issue on our Jenkins pipeline that causes the arvados-server
run to fail after ~20 minutes when run against the current main
.
Test run: developer-tests-workbench2: #744
Updated by Peter Amstutz over 2 years ago
Lucas Di Pentima wrote:
Updates at d104886 (arvados repo)
Test run: developer-run-tests: #3170
Failed test re-run: developer-run-tests-apps-workbench-integration: #3398
- Fixes wb1's test assertions when checking for the "Create sharing link" button.
For Workbench2's tests, I had to run them against arvados' 40e378c commit, it seems there's some kind of issue on our Jenkins pipeline that causes the
arvados-server
run to fail after ~20 minutes when run against the currentmain
.
Test run: developer-tests-workbench2: #744
By only comment is that it's clearer for configuration items to enable things than to disable things, so "EnableSharingURLsUI" with default "true" is less confusing than having to set "true" to disable it. Although maybe there is a counter-argument is that it is better for "false" value to mean you want default behavior.
However either way I don't think it is worth going back and changing it, so this LGTM.
Updated by Lucas Di Pentima over 2 years ago
- Status changed from In Progress to Resolved
Applied in changeset arvados-workbench-2:arvados-workbench2|7b94876543bd53cf2ab676e3f6dab0f9e4fffd3f.