Design Proposal: Change pagination_items in returns from lists
See original GitHub issueAll of the model.get()
calls return PaginationItem, List[<model>]
which means there’s a lot of
_, all_workbooks = server.workbooks.get()
I propose that we either:
- Don’t return the PaginationItem because you, the caller, already know your pagination parameters, since you applied them when you issued the ‘get’ AND you can’t do anything interesting with them after the fact (the most interesting item, the total number, is available idiomatically as
len(all_workbooks)
- Switch the order of the items in the return to that it’s (List[<model>], PaginationItem)
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
AIP-158: Pagination - API Improvement Proposals
RPCs returning collections of data must provide pagination at the outset, as it is a backwards-incompatible change to add pagination to an existing...
Read more >rest - API pagination best practices - Stack Overflow
A state field keeps track of whether an item is deleted; The max changeId is returned to the client and added as a...
Read more >Update pagination markup for new CSS standards ... - Drupal
Proposed pagination markup: This markup is based on feedback from various comments, and includes the following changes: Replace <div class=" ...
Read more >Paginate Collection lists - Webflow University
To enable pagination on a selected collection list, go to the Element settings panel and check Paginate items. Optionally, you can change the...
Read more >How should you paginate search results? - Luigi's Box
If a user searches for something on a website and many items are returned, pagination will divide these results into several pages and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Building a UI for one example.
Yup, it’s been working smoothly for months. I didn’t address tags or the need to copy objects but I think paging is much saner now, I’m happy.