Skip to content
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

Merged
merged 12 commits into from
Aug 29, 2024

Conversation

juliaElastic
Copy link
Contributor

@juliaElastic juliaElastic commented Aug 15, 2024

Summary

Closes #186629

Changed UX of edit integration policy page to update agent policies.

To verify:

  • Add integration or create new agent policy with system integration
  • Edit the integration policy
  • Verify that the UI allows adding new agent policy with making changes to existing agent policies
image image

Checklist

Delete any items that are not applicable to this PR.

@juliaElastic
Copy link
Contributor Author

/ci

@obltmachine
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@juliaElastic juliaElastic marked this pull request as ready for review August 15, 2024 09:26
@juliaElastic juliaElastic requested a review from a team as a code owner August 15, 2024 09:26
@botelastic botelastic bot added the Team:Fleet Team label for Observability Data Collection Fleet team label Aug 15, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@jen-huang
Copy link
Contributor

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.

@juliaElastic
Copy link
Contributor Author

I think the "Advanced options" toggle should still be removed for new agent policy. Could you fix it in this PR?

I removed the Advanced options section from Edit and Add integration pages, it doesn't affect the create agent policy flyout.

image image image

// eslint-disable-next-line no-console
console.debug('Could not retrieve agent policies');
}
existingAgentPolicies = useMemo(
Copy link
Member

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)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@nchaulet nchaulet Aug 28, 2024

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

Copy link
Contributor Author

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

Copy link
Member

@nchaulet nchaulet left a 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 🚀

@juliaElastic
Copy link
Contributor Author

/ci

2 similar comments
@juliaElastic
Copy link
Contributor Author

/ci

@juliaElastic
Copy link
Contributor Author

/ci

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
fleet 1213 1215 +2

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
fleet 1.8MB 1.8MB +1.7KB
Unknown metric groups

ESLint disabled line counts

id before after diff
fleet 44 45 +1

Total ESLint disabled count

id before after diff
fleet 57 58 +1

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @juliaElastic

@juliaElastic juliaElastic merged commit dc7290b into elastic:main Aug 29, 2024
22 checks passed
@kibanamachine kibanamachine added v8.16.0 backport:skip This commit does not require backporting labels Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:enhancement Team:Fleet Team label for Observability Data Collection Fleet team v8.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Fleet] Improve agent policy selection UI for reausable policies
7 participants