Project

General

Profile

Actions

Idea #14794

closed

Link from Workbench 1 to Workbench 2

Added by Tom Morris about 5 years ago. Updated about 5 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
-
Target version:
Story points:
-
Release relationship:
Auto

Description

Using the identity url for the Workbench 1 append "2" to the first piece and link to the workbench 2 home page.


Subtasks 1 (0 open1 closed)

Task #14798: Review 14794-link-wb1-to-wb2ResolvedLucas Di Pentima02/22/2019Actions

Related issues

Related to Arvados - Idea #14841: Link from Workbench 2 to Workbench 1ResolvedPeter Amstutz02/14/2019Actions
Actions #1

Updated by Tom Morris about 5 years ago

  • Status changed from New to In Progress
Actions #2

Updated by Tom Morris about 5 years ago

  • Status changed from In Progress to New
Actions #3

Updated by Tom Morris about 5 years ago

  • Description updated (diff)
Actions #4

Updated by Lucas Di Pentima about 5 years ago

  • Assigned To set to Lucas Di Pentima
Actions #5

Updated by Lucas Di Pentima about 5 years ago

  • Target version changed from 2019-02-13 Sprint to 2019-02-27 Sprint
Actions #6

Updated by Tom Morris about 5 years ago

  • Related to Idea #14841: Link from Workbench 2 to Workbench 1 added
Actions #7

Updated by Lucas Di Pentima about 5 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.

Actions #8

Updated by Eric Biagiotti about 5 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.

Actions #9

Updated by Lucas Di Pentima about 5 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 not false it will make the "Go to Workbench 2" menu item appear on the notification menu.
  • Added test
  • Added config to arvbox script
Actions #10

Updated by Lucas Di Pentima about 5 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.

Actions #11

Updated by Eric Biagiotti about 5 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 not false 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?

Actions #12

Updated by Lucas Di Pentima about 5 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.
Actions #14

Updated by Lucas Di Pentima about 5 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100
Actions #15

Updated by Tom Morris about 5 years ago

  • Release set to 15
Actions

Also available in: Atom PDF