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

[ML] Transforms: Fix retention policy reset #124698

Merged

Conversation

walterra
Copy link
Contributor

@walterra walterra commented Feb 4, 2022

Summary

Fixes #123691.

The transform edit form was not able to reset the retention policy configuration by emptying the existing form field. This fix adds a switch similar to the creation wizard to allow the user to completely enable/disable the retention policy. The form state management was updated to support passing on { retention_policy: null } to reset the config.

transform-clear-retention-policy-0001

Checklist

@walterra walterra added bug Fixes for quality problems that affect the customer experience release_note:fix :ml Feature:Transforms ML transforms v8.1.0 v8.2.0 labels Feb 4, 2022
@walterra walterra requested a review from a team as a code owner February 4, 2022 15:24
@walterra walterra self-assigned this Feb 4, 2022
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@qn895
Copy link
Member

qn895 commented Feb 4, 2022

Tested and LGTM 🎉

Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

Tested and LGTM

@walterra
Copy link
Contributor Author

walterra commented Feb 7, 2022

@elasticmachine merge upstream

@walterra walterra added the auto-backport Deprecated - use backport:version if exact versions are needed label Feb 7, 2022
@walterra walterra enabled auto-merge (squash) February 7, 2022 11:09
@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
transform 374.5KB 375.4KB +964.0B

History

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

cc @walterra

@walterra walterra merged commit ca77565 into elastic:main Feb 7, 2022
@walterra walterra deleted the ml-transform-fix-reset-retention-policy branch February 7, 2022 12:19
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.1

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 7, 2022
The transform edit form was not able to reset the retention policy configuration by emptying the existing form field. This fix adds a switch similar to the creation wizard to allow the user to completely enable/disable the retention policy. The form state management was updated to support passing on `{ retention_policy: null }` to reset the config.

(cherry picked from commit ca77565)
kibanamachine added a commit that referenced this pull request Feb 7, 2022
The transform edit form was not able to reset the retention policy configuration by emptying the existing form field. This fix adds a switch similar to the creation wizard to allow the user to completely enable/disable the retention policy. The form state management was updated to support passing on `{ retention_policy: null }` to reset the config.

(cherry picked from commit ca77565)

Co-authored-by: Walter Rafelsberger <walter@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed bug Fixes for quality problems that affect the customer experience Feature:Transforms ML transforms :ml release_note:fix v8.1.0 v8.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] Transforms: It is not possible to clear retention policy on an existing transform
6 participants