Skip to content
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

[Fleet] limit agent list total count to 10k #135026

Merged
merged 1 commit into from
Jun 23, 2022

Conversation

juliaElastic
Copy link
Contributor

Summary

Improvement for #91562
Limiting total size of agent list page to 10k, so that users can't click on page > 500 (for pageSize 20).

This is a small improvement as agreed in comment, because implementing pagination after 10k items are more complex, and not in scope for now.

Tested locally by setting limit to 100, enrolling 200 agents with horde, and checking that there are 5 visible pages only (for pageSize: 20). The page count is automatically adjusted when changing pageSize, e.g. max 2 pages for pageSize 50.

image

image

@juliaElastic juliaElastic added release_note:skip Skip the PR/issue when compiling release notes auto-backport Deprecated - use backport:version if exact versions are needed v8.4.0 v8.3.1 v7.17.6 labels Jun 23, 2022
@juliaElastic juliaElastic requested a review from a team as a code owner June 23, 2022 13:53
@juliaElastic juliaElastic self-assigned this Jun 23, 2022
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Jun 23, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@juliaElastic juliaElastic enabled auto-merge (squash) June 23, 2022 14:22
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 840.3KB 840.3KB +14.0B

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

cc @juliaElastic

@juliaElastic juliaElastic merged commit d61253a into elastic:main Jun 23, 2022
kibanamachine pushed a commit that referenced this pull request Jun 23, 2022
kibanamachine pushed a commit that referenced this pull request Jun 23, 2022
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.3
7.17

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jun 27, 2022
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

kibanamachine added a commit that referenced this pull request Jun 27, 2022
(cherry picked from commit d61253a)

Co-authored-by: Julia Bardi <[email protected]>
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jun 27, 2022
kibanamachine added a commit that referenced this pull request Jun 27, 2022
* limit agent list total count to 10k (#135026)

(cherry picked from commit d61253a)

* Fixed checks

* Update index.tsx

* fixed import

Co-authored-by: Julia Bardi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.17.6 v8.3.1 v8.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants