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

[ILM] Delete min_age field if warm phase on rollover is enabled #45412

Merged

Conversation

alisonelizabeth
Copy link
Contributor

This PR fixes a bug in ILM where a user was not able to successfully enable Move to warm phase on rollover in edit mode after previously having this disabled.

Fixes #39328

Testing

Steps to reproduce are outlined in the issue. You will need to specify node attributes when you start up ES.

Release notes

Previously, a user was unable to successfully enable the Move to warm phase on rollover setting when editing an index lifecycle policy that previously had this setting disabled. This change fixes the issue.

@alisonelizabeth alisonelizabeth added bug Fixes for quality problems that affect the customer experience release_note:fix v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.5.0 v7.4.1 labels Sep 11, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui

@alisonelizabeth
Copy link
Contributor Author

FYI @bmcconaghy

Copy link
Contributor

@bmcconaghy bmcconaghy left a comment

Choose a reason for hiding this comment

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

Code LGTM.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

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

Code LGTM, didn't test locally.

delete esPhase.min_age;
}

{esPhase.actions = esPhase.actions || {};}
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry, actually, I just noticed this. Why is this wrapped in braces?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Strange! That was not intentional. Thanks for catching this! I removed it and did some quick manual testing again to verify everything is still working as expected.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience release_note:fix Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.4.1 v7.5.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ILM UI Move to warm phase on rollover not working.
4 participants