This repository was archived by the owner on Jul 23, 2020. It is now read-only.
This repository was archived by the owner on Jul 23, 2020. It is now read-only.
API: /namedspaces/{userName} to support all spaces #1628
Closed
Description
The existing /namedspaces/{userName} API only supports paginated data. For the new my spaces page, I need to obtain all spaces for a given user in order to apply a filter and sort.
I've tried omitting page[limit] and using -1, but that defaults to 20 items. The alternative is to set a page limit of 2000, which is a short term workaround, but doesn't scale.
I expected this to behave more like the /spaces/{spaceID}/codebases API. That is, when page[limit] is omitted, all codebases are returned for the given space.
Note that the SpaceService.getSpacesByUser method of ngx-fabric8-wit should also be updated to provide all spaces instead of defaulting to 20 items.