Project

General

Profile

Actions

Feature #4951

closed

[Workbench] When a user does not have access to a VM, provide a way to contact the site admin to request access.

Added by Peter Amstutz over 9 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Radhika Chippada
Category:
Workbench
Target version:
Story points:
1.0

Description

For security reasons, auto-activated users are not granted access to VMs by default. This is confusing since the tutorials are mostly written on the assumption that you are logged into a VM.

When the user does not have access to a VM, the "Manage account" page should have a noticeable alert to this effect ("Many Arvados features depend on having shell access to a hosted VM, but this hasn't been set up for your account yet."), and a button "Request shell access". These should go in the 'Virtual Machines' section where the VMs would be listed normally. (If there are any VMs the user has access to, the alert and the button should not appear.)

When clicked, an e-mail is sent to the site-configured admin email address, with subject "Shell account request from Full Name (email, qr1hi-tpzed-useruuid)". The body of the e-mail should contain the user's particulars (name and institutional e-mail address) and a link to the Admin tab of the "show user" page where the VM request can be granted.

When the user clicks the button, it should disable and change its text to "Requesting..." while the request is in progress. remote:true,data:{disable_with:'Requesting...'} -- see Rails docs.

If there's time...

When the AJAX request completes and the email has been sent to the admin,
  • the button should go back to normal.
  • a div.alert-info should appear near the button saying "Shell account requested."
  • set a flag in html5 local storage to remember this state.
  • next time the page is displayed, if there is still no VM access, check html5 local storage and show the div.alert-info if appropriate. (This is imperfect because it won't remember state across browsers/computers, but that's OK.)

If there isn't time...

When the AJAX request completes, show an alert box (either alert() or div.alert) confirming the request has been sent, and put the button text back to normal.


Files

disabled-send-request-button.png (149 KB) disabled-send-request-button.png Peter Amstutz, 02/11/2015 09:34 PM

Subtasks 1 (0 open1 closed)

Task #5144: Review branch: 4951-request-vmResolvedRadhika Chippada02/05/2015Actions
Actions

Also available in: Atom PDF