forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Defend Workflows][Reusable integrations]
View agent policy
works w…
…ith reusable integrations (elastic#195110) ## Summary This PR fixes a (future) bug around Endpoint list's _View agent policy_ action. Instead of navigating the user to `package_policy.policy_ids[0]` which is the assigned integrations first agent policy instead of the one agent policy the host is enrolled to, it will navigate to `host.policy_info?.agent.applied.id`. Modifications: - navigate user to `host.policy_info?.agent.applied.id`: 633325f - remove the now unused `serverReturnedEndpointAgentPolicies` dispatch action and corresponding store item: 15e8023 - refactor around `serverReturnedEndpointNonExistingPolicies` which is now solely dispatched in the modified function - a small fix to the previous similar PR (elastic#193518) to not cause bad requests in a corner case: 56cf7ac #### Testing For testing, assign the same Defend integration to multiple Agent policies - order of assignment matters, see screenshot: <img width="1469" alt="image" src="https://github.com/user-attachments/assets/bb266b25-7523-423b-a5e0-a0840a0af6d4"> On `main`, Endpoint list's _View agent policy_ action will navigate to `Agent policy 2` in the above example, while _View agent details_ will show that `cheese` is assigned to `Agent policy 1`. With this fix, _View agent policy_ should navigate to the correct agent policy. <img width="1193" alt="image" src="https://github.com/user-attachments/assets/a78623d9-0b41-4b90-8dec-f91e2ee09493"> ### Checklist Delete any items that are not applicable to this PR. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
- Loading branch information
1 parent
faa74d2
commit 251e289
Showing
16 changed files
with
101 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.