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] Fix cancel action in log level select #181007

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

criamico
Copy link
Contributor

@criamico criamico commented Apr 17, 2024

Summary

Part of #158861
#180607 added a new log level selector in Agent Policy settings. However there were some small bugs with it. This PR addresses all of them:

  • Extra dot in copy text
  • A broken link was displayed - Made this link optional
  • When clicking "Cancel", all the other fields on the page reset back to their original values but the log level doesn't. The reason is the no default was set for the select

Before

image (19)

After

Screenshot 2024-04-17 at 10 50 04

Testing

  • Enable hidden: false here
  • Change the log level and then click "cancel" on the bottom of the page, it should reset back to the default value ("info" if the policy is new, the previous saved value if the policy already had this value set)
  • No extra dot and link should be visible

@criamico criamico self-assigned this Apr 17, 2024
@criamico criamico added the Team:Fleet Team label for Observability Data Collection Fleet team label Apr 17, 2024
@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

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

@criamico criamico added release_note:skip Skip the PR/issue when compiling release notes v8.14.0 labels Apr 17, 2024
@criamico criamico marked this pull request as ready for review April 17, 2024 08:51
@criamico criamico requested a review from a team as a code owner April 17, 2024 08:51
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

Copy link
Contributor

@juliaElastic juliaElastic left a comment

Choose a reason for hiding this comment

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

LGTM

@criamico criamico enabled auto-merge (squash) April 17, 2024 09:16
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

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.3MB 1.3MB +77.0B

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

cc @criamico

@criamico criamico merged commit 05512f4 into elastic:main Apr 17, 2024
19 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Apr 17, 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:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.14.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants