question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Design Proposal: Change pagination_items in returns from lists

See original GitHub issue

All 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:

  1. 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)
  2. Switch the order of the items in the return to that it’s (List[<model>], PaginationItem)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
LGrabercommented, Sep 13, 2016

Building a UI for one example.

0reactions
t8y8commented, Jan 17, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found