Paginate Followers & Following pages #9283
Labels
Fellowship Opportunity
Good First Issue
Easy issue. Good for newcomers. [managed]
Lead: @mekarpeles
Issues overseen by Mek (Staff: Program Lead) [managed]
Priority: 2
Important, as time permits. [managed]
Theme: My Books
Theme: Performance
Issues related to UI or Server performance. [managed]
Currently, the My Followers and Following pages show all a patron's subscribers or subscriptions.
https://openlibrary.org/people/mekBot/followers
https://openlibrary.org/people/mekBot/following
If a patron has hundreds or thousands of followers, this likely to cause a significant performance issue. Especially considering #9282.
Open Library has a
Pager
macro that will automatically handle the UI for adding pagination to a view.Here is a similar example PR which adds the
Pager
to a page: #6739In order to switch from the current system (where all followers / subscriptions are rendered), we'll need to change the code to only fetch 25 per page instead of everything, and then also calculate the total number of pages that exist by querying for the total count of followers and dividing it by 25.
The text was updated successfully, but these errors were encountered: