-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Reporting/fix listing pagination #62881
Reporting/fix listing pagination #62881
Conversation
Pinging @elastic/kibana-reporting-services (Team:Reporting Services) |
💚 Build SucceededTo update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, might be something we have to come back to and fix if they're 20 pages deep in reports, and delete something halfway-through
* [Reporting] Fix report table pagination * update snapshot * nice little comment
* [Reporting] Fix report table pagination * update snapshot * nice little comment
Summary
Closes #62874
#17926 added the ability to delete reports for 7.7. Unfortunately by replacing the
EuiBasicTable
withEuiInMemory
table, a huge bug was introduced where pagination stopped working correctly.Reporting fetches each page of jobs separately to reduce the response payload for rendering the table.
EuiInMemoryTable
expects that all the data is present in memory at the same time, and it allows paging (and enables search) through that.This PR reverts the switch, and goes back to
EuiBasicTable
. Because of that, there is no "toolbar" available at the top of the table. The Delete button is moved to below the table, so that it doesn't cause layout shifting as hit appears / disappears. Also, search can not be supported at this time.Screenshots:
BEFORE (showing the pagination bug)
AFTER (new type of table)
Checklist
Delete any items that are not applicable to this PR.