Project

General

Profile

Actions

Idea #9441

open

[Workbench] Improve user page group memberships management [to be groomed]

Added by Brett Smith over 8 years ago. Updated 7 months ago.

Status:
New
Priority:
Normal
Assigned To:
Tom Morris
Category:
-
Target version:
Start date:
Due date:
Story points:
-
Release:
Release relationship:
Auto

Description

The group memberships pane in the admin tab of a user page has a couple of immediate problems.

  • It's inscrutable to people who aren't already familiar with the Arvados permissions model at the API level. This was by design at the time, but now that more people are managing their own clusters, we need something friendlier.
  • The "group→user" checkbox only creates a permission for "GROUP can_read USER"—the group is the tail, and the user is the head. All this does is let people who can see the group see that this person is "in" the group. Users want to be able to grant users access to a group at less than the "manage" level, and try to use this to do that (since it's a "can_read" permission).

Proposed change:

Remove both current checkboxes from the current membership pane. Instead, it each lists each group, with a pulldown in front of each group's name (where the checkboxes appear now). Much like the Sharing tab for projects and collections, this pulldown has four options to represent the user's current access level for the group: Manage, Write, Read, and None. Admins change the user's access level to a group by selecting a different value from the puldown. Like the Sharing tab, this sends an AJAX request to make the appropriate permissions link. When "None" is selected, this means the user has no permission link to the group.

Underneath the pulldown+group name, there's a checkbox "☐ User is listed as a group member". Workbench creates/destroys the "GROUP can_read USER" link when this box is checked/unchecked, respectively.

When the pulldown transitions from None (no permission) to another value, JavaScript automatically checks membership checkbox. Conversely, when the pulldown transitions from another value to None, JavaScript automatically unchecks the membership checkbox. The effect is that users get the usual behavior with a single action: they give/revoke a user permission to a group, and the user is listed/delisted as a member at the same time. But admins who want finer control (or who have weird setups on the API end from other clients) will also be able to manage that.

Ideally, when the pane is first rendered, it would be sorted by access level: first groups where the user currently has Manage permission, then Write, then Read, then None. Secondary sort on group name. If sorting on access level is too difficult, sorting on name alone is fine for a plan B.

Remove any text on the page referring to the permissions checkboxes. You're not expected to need any replacement text. The new interface should be straightforward enough to use without explanation.

Hopefully you can reuse code from the Sharing tab to render the pulldowns and respond to changes there. Feel free to refactor whatever's necessary to do that.

Actions #1

Updated by Brett Smith over 8 years ago

  • Description updated (diff)
Actions #2

Updated by Brett Smith over 8 years ago

  • Description updated (diff)
Actions #3

Updated by Brett Smith over 8 years ago

  • Description updated (diff)
Actions #4

Updated by Tom Morris over 7 years ago

  • Target version set to 2017-03-29 sprint
Actions #5

Updated by Tom Morris over 7 years ago

  • Assigned To set to Tom Morris
Actions #6

Updated by Tom Morris over 7 years ago

  • Target version changed from 2017-03-29 sprint to 2017-04-12 sprint
Actions #7

Updated by Tom Morris over 7 years ago

  • Subject changed from [Workbench] Improve user page group memberships management to [Workbench] Improve user page group memberships management [to be groomed]
  • Target version changed from 2017-04-12 sprint to 2017-04-26 sprint
Actions #8

Updated by Tom Morris over 7 years ago

  • Target version changed from 2017-04-26 sprint to 2017-05-10 sprint
Actions #9

Updated by Tom Morris over 7 years ago

  • Target version changed from 2017-05-10 sprint to 2017-05-24 sprint
Actions #10

Updated by Tom Morris over 7 years ago

  • Target version changed from 2017-05-24 sprint to 2017-06-07 sprint
Actions #11

Updated by Tom Morris over 7 years ago

  • Target version changed from 2017-06-07 sprint to 2017-07-05 sprint
Actions #12

Updated by Tom Morris over 7 years ago

  • Target version changed from 2017-07-05 sprint to Arvados Future Sprints
Actions #13

Updated by Peter Amstutz over 3 years ago

  • Target version deleted (Arvados Future Sprints)
Actions #14

Updated by Peter Amstutz over 1 year ago

  • Release set to 60
Actions #15

Updated by Peter Amstutz 7 months ago

  • Target version set to Future
Actions

Also available in: Atom PDF