-
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
[ILM] Fix delete phase serialization bug #84870
[ILM] Fix delete phase serialization bug #84870
Conversation
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
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.
Hi @jloleysens , thanks for fixing the serializer! Do you think it would be possible to view JSON request without providing the policy name as before? here's CJ's comment about it.
Also, I tested a related issue that delete phase doesn't add the delete action, and can confirm that a policy without delete action will not delete indices when reaching the phase.
@elasticmachine merge upstream |
Thanks for the review @yuliacech
I'd like to punt on this change for now as I think it is separate and perhaps a bit more involved.
Interesting! This is pre the serialization changes here, but I think it would be good to include the fix for this for sure. |
💚 Build SucceededMetrics [docs]Async chunks
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.
Hi @jloleysens , changes LGTM!
Agree to leave the JSON request view for later, do we need to open a separate issue for that? Thanks a lot for fixing the delete
action as well, I also opened an issue in ES so that backend would reject empty actions
request in the future.
@yuliacech another issue sounds reasonable! Weird that this was surfaced now! We will need to make another PR to backport this for 7.10.2 (I think it deserves to be fixed in the patch release). |
The issue to track JSON preview #85030 |
…fields * 'master' of github.com:elastic/kibana: [ILM] Fix delete phase serialization bug (elastic#84870) chore(NA): removes auto install of pre-commit hook (elastic#83566) chore(NA): upgrade node-sass into last v4.14.1 to stop shipping old node-gyp (elastic#84935) [Alerting] Enables AlertTypes to define the custom recovery action groups (elastic#84408) [ML] Functional tests - add missing test data cleanup (elastic#84998) Migrate privilege/role/user-related operations to a new Elasticsearch client. (elastic#84641) # Conflicts: # x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/form/deserializer_and_serializer.test.ts # x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/form/serializer/serializer.ts
* added test for correctly deserializing delete phase, and added fix * clarify test comment * fix serialization of hot phase to include delete action Co-authored-by: Kibana Machine <[email protected]>
* added test for correctly deserializing delete phase, and added fix * clarify test comment * fix serialization of hot phase to include delete action Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Summary
Fix #84830
Fix for 7.11 #84442
👆🏻we will need a separate fix to backport this to 7.10.x
Checklist