Project

Profile

Help

Story #3801

As a user, I can skip to various pages for paginated results

Added by daviddavis over 1 year ago. Updated 4 months ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Platform Release:
Blocks Release:
Backwards Incompatible:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Katello-P3
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

Description

We currently use cursor based pagination where pages must be fetched sequentially as opposed to the default DRF pagination method of using page numbers. Cursors work great for large data sets as you don’t have to figure out things like the number of pages.

The first problem is that in Pulp we parallelize web requests for things like fetching metadata. See our Ansible plugin as an example1. If we want to support things like syncing content from one Pulp server to another, we probably have to use offset/page-based pagination for certain endpoints.

Another consideration is Katello. In Katello’s UI they show the number of pages and allow users to jump to arbitrary pages or the last page. If we want Katello to stop indexing Pulp data and instead query Pulp directly, we’ll need to allow them to use page numbers somehow.

To change from cursor-based pagination to page number pagination, we simply need to extend PageNumberPagination in our base pagination models.


Related issues

Related to Pulp - Test #4221: As a user, I can skip to various pages for paginated results CLOSED - COMPLETE Actions

Associated revisions

Revision 53f41330 View on GitHub
Added by daviddavis about 1 year ago

Changing from cursor to page number pagination

fixes #3801
https://pulp.plan.io/issues/3801

Revision 53f41330 View on GitHub
Added by daviddavis about 1 year ago

Changing from cursor to page number pagination

fixes #3801
https://pulp.plan.io/issues/3801

Revision 53f41330 View on GitHub
Added by daviddavis about 1 year ago

Changing from cursor to page number pagination

fixes #3801
https://pulp.plan.io/issues/3801

History

#1 Updated by daviddavis over 1 year ago

  • Description updated (diff)

#2 Updated by jsherril@redhat.com over 1 year ago

  • Tags Katello-P4 added

#3 Updated by daviddavis about 1 year ago

  • Status changed from NEW to POST
  • Assignee set to daviddavis

#4 Updated by daviddavis about 1 year ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#5 Updated by rochacbruno about 1 year ago

  • Tags Functional Test added

#6 Updated by rochacbruno about 1 year ago

  • QA Contact set to rochacbruno

#7 Updated by rochacbruno 11 months ago

  • Related to Test #4221: As a user, I can skip to various pages for paginated results added

#8 Updated by daviddavis 6 months ago

  • Sprint/Milestone set to 3.0

#9 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

#10 Updated by daviddavis 4 months ago

  • Tags Katello-P3 added
  • Tags deleted (Functional Test, Katello-P4)

Please register to edit this issue

Also available in: Atom PDF