-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pagination for Backend API #3984
Comments
MotivationAs we would like to support bidirectionally navigating the collections for paginations, it is necessary to implement a new set of pagination instructions through the backend APIs, in particular:
Existing FrameworkThe current pagination logic supports Based on several calculations of
ChallengesWith a relatively comprehensive list rolling out, it is not hard to find out that this return logic based on very heavy heuristics. The expectation of this design was to be exhaustive on catching those abnormals, but here is where the challenge comes in. There's two parts to it: querying with
Lastly, and probably the most important of all, after investigating how if we query Remaining WorkThe overall framework is ready, but in order to refactor the existing logic to make it more resilient to future pagination logic changes, it might be in the best interest to make a new function besides maybe Tuning the types and tests here can also be pretty heavy work since there's also a lot of mocking, pre-populating datasets, testing out array with different length, different combination of the parameters (2 new params and the previous ~5 critical params) |
cross-referencing #3994 |
Description
Need to figure out a way in postgres to do bi-directional pagination (look for the exact page the items is at)
References
Story
The text was updated successfully, but these errors were encountered: