Role filters for groups
To implement nomad-gui#61 in the new GUI, we need a filter specifically for the owner
. The same scheme should work for other role that may be added later, e.g. viewer
, editor
, manager
.
Proposals
-
{'member': 'USERID1'}
,{'owner': 'USERID1'}
, ({'manager': 'USERID1'}
, etc.), backwards-compatible{'user_id': 'USERID1'}
-
{'member': [{'user_id': 'USERID1', 'role': 'owner'}, {'user_id': 'USERID2', 'role': 'reviewer'}]}
(connectorAND
orOR
?) -
{'user_id': 'USERID1', role: 'owner'}
(simpler but less specific,role
doesn't make sense on its own)
For now, the query for GraphAPI has the same filters as the query for GET /groups
. At least for proposal 2 this cannot be done anymore. Should these features be dropped for REST or should we add POST /groups/query
or something similar (POST /groups
is currently used to create a new group)?