-
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
[Fleet] change UX of edit integration policy agent policies #190583
[Fleet] change UX of edit integration policy agent policies #190583
Conversation
/ci |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Pinging @elastic/fleet (Team:Fleet) |
I think the "Advanced options" toggle should still be removed for new agent policy. Could you fix it in this PR? Also, I am touching the logic around the confirmation state/modal in #190649 so it will probably be better for this one to get merged first and I'll update my PR afterwards. |
...leet/public/applications/fleet/sections/agent_policy/edit_package_policy_page/index.test.tsx
Outdated
Show resolved
Hide resolved
// eslint-disable-next-line no-console | ||
console.debug('Could not retrieve agent policies'); | ||
} | ||
existingAgentPolicies = useMemo( |
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.
could we search directly for non managed policies in the API call with a kuery like not is_managed:* or is_managed:false
(not tested)?
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 tried that but it didn't work. I think is_managed
is not indexed: https://github.com/elastic/elasticsearch/blob/main/x-pack/plugin/core/template-resources/src/main/resources/fleet-agents.json
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.
it should be indexed https://github.com/juliaElastic/kibana/blob/22c3f95868d6a5d804e9ed85b7575da6dd423b46/x-pack/plugins/fleet/server/saved_objects/index.ts#L282 but not a blocker it should not really change the number of policies returned as we do not expect to have many managed policies
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.
You are right, I was looking at the wrong place.
The filter actually works, I tried before without the prefix ingest-agent-policies.is_managed:false
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.
Tested locally and worked as expected 🚀
/ci |
2 similar comments
/ci |
/ci |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Module Count
Async chunks
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Summary
Closes #186629
Changed UX of edit integration policy page to update agent policies.
To verify:
Checklist
Delete any items that are not applicable to this PR.