Oriflame / backstage-plugins

Oriflame Backstage plugins
GNU Lesser General Public License v2.1
45 stars 23 forks source link

Pagination support in Scoring board overview #141

Open jvilimek opened 1 year ago

jvilimek commented 1 year ago

Consider adding pagination (and filtering?) for the API.

Feature Suggestion

Enhancing the API for getting the data for the scoring board page so we don't need to load all scoring data at once when the page is displayed.

Context

There might be situations when there are hundreds of scores. The /score-board might then have performance issues. However, at the moment the client side handles also filtering, ordering, ... so this might be also considered.

T0RAT0RA commented 1 year ago

The catalog api return a link header (createRouter.ts#L120) when there a more pages, unfortunatly the catalogApi.getEntities doesn't return the headers, only the items.

So we'd need to find a lower level function to access this header, but I haven't found one.