Preserve pagination after actions which trigger a grid update #6546
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a backport of #5411 to the master branch. Closes #33, closes #570, closes #572 (already marked as such by #5411).
For this one, although the change was sort of forced on me by the new architecture, it can be backported with reasonable effort to the master branch.
Summary: this changes the grid pagination so that users to not input a page number, but the index of the first row in the view. Why do this?
It's a change that has implications for the UI and the web API (which is not meant to be stable).
It relies on manually annotating all operations with row/record preservation. In this PR it is done in the frontend, but further backend changes will move this information to the backend (making it possible to detect the row/record preservation of sequences of operations run via the
apply-operations
command, for instance).One oddity of this change is that in records mode, the pagination is still done based on row ids and not on record ids. This is intentional, because: