cbrain icon indicating copy to clipboard operation
cbrain copied to clipboard

Remove full list of work projects in admin interfaces

Open prioux opened this issue 3 years ago • 2 comments

We have a few places in the admin interface where the full list of all user projects is shown either in selection boxes or in tables of checkboxes. In the old days of CBRAIN when the number of users was small, it was thought the admin would use this to assign stuff to private projects. But now there are so many thousands of projects, these lists are cumbersome.

Those lists should be trimmed down to remove all private work projects. Leave only public projects, invisible projects and 'non-assignable' projects of the admins.

The view code should not be altered for normal users, presumably they don't have thousands of projects themselves.

Todo:

  1. modify the helpers for selection lists for groups
  2. check all the pages where the partial shared/_group_tables.html.erb is rendered; make sure it makes sense

prioux avatar Dec 08 '21 16:12 prioux

@prioux

1 Does phrase "public projects, invisible projects and 'not-assignable' projects of the admins." means projects owned by admin which are public, non-assignable or invisible? (that is public projects of users are should not be shown) ?

2 the size of selection boxes is actually fixed, so would putting NonAssignable, Public and Hidden projects ahead of other in select boxes might be better solution, or do you prefer just remove? image One use case for having usual (assignable/not-hidden/private) project listed in group_select is restricting experimental tools to their author/interested parties

MontrealSergiy avatar Apr 27 '22 18:04 MontrealSergiy

@natacha-beck any opinion on that?

MontrealSergiy avatar May 03 '22 20:05 MontrealSergiy