Idea #14794
closedLink from Workbench 1 to Workbench 2
Description
Using the identity url for the Workbench 1 append "2" to the first piece and link to the workbench 2 home page.
Updated by Lucas Di Pentima almost 6 years ago
- Assigned To set to Lucas Di Pentima
Updated by Lucas Di Pentima almost 6 years ago
- Target version changed from 2019-02-13 Sprint to 2019-02-27 Sprint
Updated by Tom Morris almost 6 years ago
- Related to Idea #14841: Link from Workbench 2 to Workbench 1 added
Updated by Lucas Di Pentima almost 6 years ago
Updates at 408e81ed6 - branch 14794-link-wb1-to-wb2
Test run: https://ci.curoverse.com/job/developer-run-tests/1084/
Using the workbench_url value from the discovery document, build wb2's URL and present it as a form to hide the user token.
Updated by Eric Biagiotti almost 6 years ago
I am testing this by running arvbox, which has workbench and workbench2 running at 172.17.0.2 and 172.17.0.2:3001 respectively.
Do we want this to work locally? If so, #{protocol}://workbench2.#{hostname.split(".")[1..-1].join(".")}
produces a bad URL because of the "." parsing.
Also, if I manually fix the generated URL (https://172.17.0.2:3001//token?...), I get the workbench2 loading page on a seemingly infinite loop.
Updated by Lucas Di Pentima almost 6 years ago
Updates at d1fcb330f
Test run: https://ci.curoverse.com/job/developer-run-tests/1086/
- Added a
workbench2_url
config item to workbench, when notfalse
it will make the "Go to Workbench 2" menu item appear on the notification menu. - Added test
- Added config to arvbox script
Updated by Lucas Di Pentima almost 6 years ago
Just in case you're testing it with arvbox: To get the menu working you should execute "arvbox reboot dev
" so that the updated config building script gets into the docker image.
Updated by Eric Biagiotti almost 6 years ago
Lucas Di Pentima wrote:
Updates at d1fcb330f
Test run: https://ci.curoverse.com/job/developer-run-tests/1086/
- Added a
workbench2_url
config item to workbench, when notfalse
it will make the "Go to Workbench 2" menu item appear on the notification menu.- Added test
- Added config to arvbox script
Not sure how we should handle the trailing slash. This is my first venture into ruby and embedded ruby templates but there is a ruby URI module which seems to handle this type of operation. Can this be used here?
What is our policy for correctness of entries in the config file? Does the config get validated somewhere? A URL with a trailing slash is still a valid URL, but should we require no trailing slash?
Updated by Lucas Di Pentima almost 6 years ago
Updates at 0dbe95af0
Test run: https://ci.curoverse.com/job/developer-run-tests/1091/
- Added a config validator that disables it if the provided URL is not valid, logging an error message.
- More test cases added
- Provided example on the default config file.
Updated by Lucas Di Pentima almost 6 years ago
Updated by Lucas Di Pentima almost 6 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset arvados|48ee36541552d5394234d3057a6c1d5957f40d2e.