cbrain
cbrain copied to clipboard
Remove full list of work projects in admin interfaces
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:
- modify the helpers for selection lists for groups
- check all the pages where the partial
shared/_group_tables.html.erb
is rendered; make sure it makes sense
@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?
One use case for having usual (assignable/not-hidden/private) project listed in group_select is restricting experimental tools to their author/interested parties
@natacha-beck any opinion on that?