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

[Security Solution][Endpoint] Set perPage to 1000 for package policies query in Endpoint Artifacts form #172563

Conversation

dasansol92
Copy link
Contributor

@dasansol92 dasansol92 commented Dec 5, 2023

Summary

It sets the perPage value to 1000 (overrides the default one set to 20) in order to display more policies in Artifacts form and also in the policy filter for artifacts list.

For maintainers

@dasansol92 dasansol92 added release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v8.12.0 labels Dec 5, 2023
@dasansol92 dasansol92 marked this pull request as ready for review December 5, 2023 12:29
@dasansol92 dasansol92 requested a review from a team as a code owner December 5, 2023 12:29
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-defend-workflows (Team:Defend Workflows)

@@ -163,6 +163,7 @@ export const ArtifactListPage = memo<ArtifactListPageProps>(
});

const policiesRequest = useGetEndpointSpecificPolicies({
perPage: 1000,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just one suggestion: add a test (unit) to this page component thta validates that we call the API with a perPage value of 1000

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done: f21d08b

Copy link
Contributor

@paul-tavares paul-tavares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the test. 👍

@dasansol92 dasansol92 enabled auto-merge (squash) December 5, 2023 16:17
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

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
securitySolution 12.8MB 12.8MB +12.0B

History

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

@dasansol92 dasansol92 merged commit 4abbe84 into elastic:main Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Defend Workflows “EDR Workflows” sub-team of Security Solution v8.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants