"Owned Groups" checkbox
The current "My groups" checkbox uses the API's user_id
filter, listing all groups the user is the owner of or a member (in the future, the owner is supposed to be in the members list as well). There is no API filter for being just the owner of a group at the moment.
To add a checkbox that lists the groups owned by the user, we need to either
- add the filter to the API (same for member?), increasing the number of query arguments, including all future user-roles
-
{'member': 'USERID1'}
,{'owner': 'USERID1'}
, ({'manager': 'USERID1'}
, etc.),{'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)
-
- keep querying for
user_id
but filter in the GUI, keeping the filtering work for the API higher than necessary.