Skip to content

[7.x] [ML] Fix pagination reset on search query update. (#65668)#65814

Merged
walterra merged 1 commit intoelastic:7.xfrom
walterra:backport/7.x/pr-65668
May 8, 2020
Merged

[7.x] [ML] Fix pagination reset on search query update. (#65668)#65814
walterra merged 1 commit intoelastic:7.xfrom
walterra:backport/7.x/pr-65668

Conversation

@walterra
Copy link
Copy Markdown
Contributor

@walterra walterra commented May 8, 2020

Backports the following commits to 7.x:

Fixes pagination issue: When the query bar query changes, we need to check the selected page is still valid. Example: If you're on a last page (125), edit the filter, and it looks like the grid is trying to reload page 125 even though there are only 24 pages for the new query value you end up with an empty table.
This brings over a fix already in place for the transform data grids: On every search query change we'll reset the pagination index.
@walterra walterra added backport This PR is a backport of another PR :ml labels May 8, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/ml-ui (:ml)

@walterra walterra self-assigned this May 8, 2020
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@walterra walterra merged commit 05e890f into elastic:7.x May 8, 2020
@walterra walterra deleted the backport/7.x/pr-65668 branch May 8, 2020 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR :ml

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants