-
Notifications
You must be signed in to change notification settings - Fork 911
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
Remove classic pagination #5205
base: master
Are you sure you want to change the base?
Remove classic pagination #5205
Conversation
Shouldn't we just be converting changesets to use the same pagination logic as everything else, rather than copying parts of classic pagination into the controller just so we can pretend we got rid of it? |
454dd23
to
2637e79
Compare
2637e79
to
8acfc36
Compare
That depends on how significant are the differences between changeset elements and everything else. The differences are:
|
8acfc36
to
1c414a4
Compare
I agree.
These are good reasons why the paginator doesn't have to be cursor-based, but they aren't reasons why it can't be cursor-based. So I think the simplification of only having one type of pagination is worthwhile.
Since we need a well-defined order for either approach to work, I think it's best to get the order defined and working with the cursor-based pagination. |
Do you propose to remove the ability to go to page N? |
Sure, I don't see a strong need for that. Particularly if the order hasn't been defined before. |
Do you also propose to remove the ability to see how many elements of each type were changed? |
No. |
1c414a4
to
45bbc3b
Compare
Those were reasons for why this place is different, why it might be feasible not to downgrade the pagination here and why there won't necessarily be any simplification even if we downgrade it.
Do you want to introduce a single id or or some other field (like relation elements have) and sort by it? |
45bbc3b
to
cc319be
Compare
Generated by 🚫 Danger |
This removes classic pagination library that's only used for changeset elements pagination:
Paginator
class moved to controller'sElementsPaginator
PaginationHelper
module moved tosidebar_classic_pagination
helper