My Space List: API adjustments needed for sorting/filtering and additional data needed #1849
Description
This is an issue to roll up all of the others that have been entered around this and provide a higher level overview of what is needed. Only the my spaces page is impacted - all spaces is still under discussion as to whether or not it will be in the product long term.
Design: https://redhat.invisionapp.com/share/DQDSL22JA#/screens/261389228
API needs:
Filtering/searching/sorting
The page needs to be able to support sorting and filtering either client or server side. Although paging is supported now, we can't sort or filter this way because only the paged entries would be impacted instead of the entire list. This is a must have for GA on the columns we agree to include (some are still at risk like activity and private).
Sorting columns: Activity, Name
Filtering: Activity, Collaborator, Name, Owner, Private
Existing issues:
- API: /search/spaces to support sort and filter: API: /search/spaces to support sort and filter #1629
- API: /namedspaces/{userName} to support all spaces: (closed) API: /namedspaces/{userName} to support all spaces #1628
Additional data needed:
The space list includes additional data that is not available today:
- User relationship to the space - owner, collaborator, none - must have for GA so user can take appropriate actions if any (leave space for collaborator, delete space for owner)
- Activity - algorithm still to be determined, need to discuss if this is priority
- Private - is this required for GA?
Existing issues:
- Need API to show where users is a collaborator: Need API to know which spaces a user is a collaborator #1630
- Need API to show activity: Need API to show activity #1631
- Need API to show private spaces: Need API to show private spaces #1632
- API: /namedspaces/{userName} to support sort and filter: API: /namedspaces/{userName} to support sort and filter #1627