Skip to content
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

Add Paginated Collection object #192

Open
hellopablo opened this issue Mar 12, 2020 · 0 comments
Open

Add Paginated Collection object #192

hellopablo opened this issue Mar 12, 2020 · 0 comments
Assignees
Labels
effort: high Issues which are considered a hard task
Milestone

Comments

@hellopablo
Copy link
Member

Add a paginated collection object which can be used by things like the CRUD API or Elasticsearch Search results to wrap content which can be paginated.

You pass it the current page of results, the total, the current page, the base URL etc and it will provide an interface for iterating over that set, as well as provide automatic Next and Previous URLs.

It can handle all the weird edge cases of zero-indexed vs one-indexed paging, out-of-bounds requests, etc

@hellopablo hellopablo added this to the v1 milestone Mar 12, 2020
@hellopablo hellopablo self-assigned this Mar 12, 2020
@hellopablo hellopablo added effort: high Issues which are considered a hard task and removed enhancement labels Apr 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort: high Issues which are considered a hard task
Projects
None yet
Development

No branches or pull requests

1 participant