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] Artifacts event filter card on integration policy edit view #121879
[Security Solution][Endpoint] Artifacts event filter card on integration policy edit view #121879
Conversation
1ba29a4
to
505ac94
Compare
General advice: don't use the "wrapper" approach for this functionality if you can save it. It makes things more complicated than they should be. I'd rather have two separate components, one for the fleet "advance settings" and other for this specific view. I saw how the code got complex in trusted apps and in general you are only reusing one variable. |
5c6b490
to
15de6c0
Compare
8621eb9
to
1c25b10
Compare
Pinging @elastic/security-onboarding-and-lifecycle-mgt (Team:Onboarding and Lifecycle Mgt) |
}>` | ||
font-size: ${({ isSmall, theme }) => (isSmall ? theme.eui.euiFontSizeXS : 'innherit')}; | ||
font-weight: ${({ isSmall }) => (isSmall ? '1px' : 'innherit')}; | ||
font-size: ${({ isSmall, theme }) => (isSmall ? theme.eui.euiFontSizeXS : 'inherit')}; | ||
font-weight: ${({ isSmall }) => (isSmall ? '1px' : 'inherit')}; |
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.
I missed this in an earlier review! 😅
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 handling this! Left two small comments
@@ -351,7 +351,7 @@ export const getPolicyDetailsArtifactsListPath = ( | |||
)}`; | |||
}; | |||
|
|||
export const extractEventFiltetrsPageLocation = ( | |||
export const extractEventFiltersPageLocation = ( |
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.
🎉
...n/endpoint_package_custom_extension/components/fleet_integration_event_filters_card.test.tsx
Outdated
Show resolved
Hide resolved
`/app/security/administration/policy/${policyId}/eventFilters` | ||
); | ||
}); | ||
}); |
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.
Can you add a test case for the error handling? A test that checks a toast is shown when there is an API error.
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 3bc3a04
review suggestion
review suggestion
659b71b
to
3bc3a04
Compare
...n/endpoint_package_custom_extension/components/fleet_integration_event_filters_card.test.tsx
Outdated
Show resolved
Hide resolved
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.
👍
@elasticmachine merge upstream |
…ion_policy_edit-2031
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.
Checked it out and it looks goood to meee 🐑 🚢
@elasticmachine merge upstream |
…ion_policy_edit-2031
💛 Build succeeded, but was flaky
Test Failures
Metrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: cc @ashokaditya |
💔 Backport failedThe backport operation could not be completed due to the following error: You can specify it via either:
The backport PRs will be merged automatically after passing CI. To backport manually run: |
…ion policy edit view (elastic#121879) * fix typo refs elastic/security-team/issues/2031 * Add artifact event filters card to policy edit view on endpoint integration fixes elastic/security-team/issues/2031 * add tests fixes elastic/security-team/issues/2031 * fix typo refs elastic/pull/111708 * use `eventFiltersListQueryHttpMock` instead review suggestion * add a test for verifying error toast review suggestion * fix tests Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
For each integration policy under Endpoint Security integration, this PR adds an artifact event filters summary card.
Checklist
Delete any items that are not applicable to this PR.