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] Support editing bool variable in agent policy #85070

Merged

Conversation

nchaulet
Copy link
Member

@nchaulet nchaulet commented Dec 4, 2020

Summary

Resolve #84699

This PR allow to edit bool variables in the an agent policy, previously we were displaying a text field for boolean variable that is not the best experience for our user.

Note: currently the variables are not validated server side, and this PR do not had server side validation (TODO find the issue where it's tracked)

Display an EuiSwitch if the variable type is boolean, remove the Optional Label as it does not make sense here

UI Change

Screen Shot 2020-12-04 at 3 06 40 PM

How to test this?

You can add and edit the system integration, the System process metrics contains a few bool variables

@nchaulet nchaulet added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.11.0 labels Dec 4, 2020
@nchaulet nchaulet self-assigned this Dec 4, 2020
@nchaulet nchaulet requested a review from a team December 4, 2020 20:21
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Team:Ingest Management)

@nchaulet
Copy link
Member Author

nchaulet commented Dec 5, 2020

@elasticmachine merge upstream

@nchaulet
Copy link
Member Author

nchaulet commented Dec 7, 2020

@elasticmachine merge upstream

@neptunian
Copy link
Contributor

Testing with system on a policy and works as expected

@nchaulet
Copy link
Member Author

nchaulet commented Dec 9, 2020

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 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.2MB 1.2MB +326.0B

Distributable file count

id before after diff
default 46984 47744 +760

History

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

@nchaulet nchaulet merged commit 2355dde into elastic:master Dec 9, 2020
@nchaulet nchaulet deleted the feature-support-bool-while-editing-config branch December 9, 2020 19:50
nchaulet added a commit to nchaulet/kibana that referenced this pull request Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add bool type to config form builder
4 participants