-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Fix downsample validation when downsample action disappears from the previous phase #140628
Fix downsample validation when downsample action disappears from the previous phase #140628
Conversation
...ck/plugins/index_lifecycle_management/public/application/sections/edit_policy/form/schema.ts
Outdated
Show resolved
Hide resolved
1071e9f
to
d3fb0af
Compare
Pinging @elastic/platform-deployment-management (Team:Deployment Management) |
Pinging @elastic/kibana-app-services (Team:AppServicesUx) |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Page load bundle
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.
LGTM! 👍 Thanks for fixing this issue @Dosant !
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.
Thanks for fixing this and updating the tests @Dosant! LGTM.
Fix #140714
Problem
The PR for downsampling action was merged, but there is this validation edge case that bothers me:
You can enable Downsample action in hot, warm, and cold phases. You can configure downsampling interval. The interval has validation where it depends on the interval in the previous phase:
There is currently the following bug that I struggle to fix:
See the video:
validation.bug.mov
Solution
The proper fix ended up being inside the lib itself.
When a field was unmounted, the corresponding value was changed, but this didn't trigger the validation of dependant fields from
fieldsToValidateOnChange
.The fix is to trigger validation of the fields from
fieldsToValidateOnChange
when a field is being unmounted.