[8.6] [Enterprise Search] Fix pagination issue on indices page (#149833) (#149862)

# Backport

This will backport the following commits from `main` to `8.6`:
- [[Enterprise Search] Fix pagination issue on indices page
(#149833)](https://github.com/elastic/kibana/pull/149833)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Sander
Philipse","email":"94373878+sphilipse@users.noreply.github.com"},"sourceCommit":{"committedDate":"2023-01-30T17:18:26Z","message":"[Enterprise
Search] Fix pagination issue on indices page (#149833)\n\n##
Summary\r\n\r\nFixes a bug where the fetch indices request was
incorrectly reporting\r\nthe page
size","sha":"8251c7632fe26e12273f7b49e26f1e6d7f3e8cc9","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:EnterpriseSearch","v8.7.0","v8.6.2"],"number":149833,"url":"https://github.com/elastic/kibana/pull/149833","mergeCommit":{"message":"[Enterprise
Search] Fix pagination issue on indices page (#149833)\n\n##
Summary\r\n\r\nFixes a bug where the fetch indices request was
incorrectly reporting\r\nthe page
size","sha":"8251c7632fe26e12273f7b49e26f1e6d7f3e8cc9"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/149833","number":149833,"mergeCommit":{"message":"[Enterprise
Search] Fix pagination issue on indices page (#149833)\n\n##
Summary\r\n\r\nFixes a bug where the fetch indices request was
incorrectly reporting\r\nthe page
size","sha":"8251c7632fe26e12273f7b49e26f1e6d7f3e8cc9"}},{"branch":"8.6","label":"v8.6.2","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Sander Philipse <94373878+sphilipse@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2023-01-30 13:27:13 -05:00 committed by GitHub
parent f67a21bccc
commit 7abe78945e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,7 +120,7 @@ export function registerIndexRoutes({
meta: {
page: {
current: page,
size: indices.length,
size,
total_pages: totalPages,
total_results: totalResults,
},