-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solution][Endpoint] Set perPage to 1000 for package policies query in Endpoint Artifacts form #172563
Conversation
Pinging @elastic/security-defend-workflows (Team:Defend Workflows) |
@@ -163,6 +163,7 @@ export const ArtifactListPage = memo<ArtifactListPageProps>( | |||
}); | |||
|
|||
const policiesRequest = useGetEndpointSpecificPolicies({ | |||
perPage: 1000, |
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.
just one suggestion: add a test (unit) to this page component thta validates that we call the API with a perPage
value of 1000
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.
Done: f21d08b
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.
Thanks for adding the test. 👍
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
Summary
It sets the
perPage
value to 1000 (overrides the default one set to20
) in order to display more policies in Artifacts form and also in the policy filter for artifacts list.For maintainers