Pagination in Admin Api V2 #41036
Replies: 3 comments 1 reply
-
Please also consider the case where new users register while a paginated fetch is taking place. The current API returns results ordered by Id (Guid), so a new user can be inserted into page 1 when I am already fetching a later page.
|
Beta Was this translation helpful? Give feedback.
-
@shawkins My main concern here would be how do we identify "resources with an excessive number of entries". Obviously users, clients, but is that it? Users are doing all sorts of weird stuff – e.g. thousands of groups. |
Beta Was this translation helpful? Give feedback.
-
Here are some other places where pagination has been requested: #17421 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@sschu just wanted capture some of what I was trying to convey in the meeting and some points that were mentioned in earlier design docs. Please add what you have, and I'll add some more about using a continuation token.
Additional Considerations:
For all resources which will not have an excessive number of entries (possibly everything except for users) we don't need to offer sort and slice features. Instead admin api clients via projection would obtain the indentifier fields and any sorting columns, perform their own client-side sort, then fetch whatever pages they want by identifier. We could add support for bulk fetching by id to cut down on the number of api queries.
For resources with an excessive number of entries, or for which we do want to offer sorting / slicing:
Skipping pages isn't strictly necessary, but is a nice to have feature.
cc @mabartos @vmuzikar
Beta Was this translation helpful? Give feedback.
All reactions