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] Fix error with creating agent policy during add integration #83993
[Fleet] Fix error with creating agent policy during add integration #83993
Conversation
Pinging @elastic/ingest-management (Team:Ingest Management) |
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
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.
👍
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/index.tsx # x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/step_select_agent_policy.tsx
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> # Conflicts: # x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/index.tsx # x-pack/plugins/fleet/public/applications/fleet/sections/agent_policy/create_package_policy_page/step_select_agent_policy.tsx
Hi @jen-huang We have validated this ticket on 7.10.1 BC1 Kibana cloud environment(deployed from staging platform) with 7.10.1 BC1 Windows x64 agent and found it fixed.
Prerequisite:
Steps followed:
Hence, we are closing this bug. |
Summary
Fixes #83990. With at least one agent enrolled in Default policy, trying to create a new agent policy during Add integration throws an error. After I fixed that, another issue came up where Saving the integration would give the "Save and deploy changes" modal, even though the newly created policy does not have any agents enrolled yet.
This PR fixes both of those issues. I cleaned up some
eslint-disable-next-line
too while I was in the area.