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] Surface shrink action in edit form if it's already been set on the policy #35987

Merged
merged 2 commits into from
May 2, 2019

Conversation

cjcenizal
Copy link
Contributor

@cjcenizal cjcenizal commented May 2, 2019

Fixes #35674

If you create an Index Lifecycle Policy with a "shrink" action set and attempt to edit it, the "Shrink" toggle will now accurately reflect the action being set.

@cjcenizal cjcenizal added Feature:ILM v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.2.0 v7.0.2 v7.1.0 labels May 2, 2019
@cjcenizal cjcenizal requested a review from bmcconaghy May 2, 2019 21:27
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui

@@ -196,11 +198,14 @@ export const phaseFromES = (phase, phaseName, defaultEmptyPolicy) => {
}

if (actions.shrink) {
policy[PHASE_SHRINK_ENABLED] = true;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This line contains the actual fix.

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.

LGTM

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@cjcenizal cjcenizal merged commit a5fe1f2 into elastic:master May 2, 2019
@cjcenizal cjcenizal deleted the ilm/shrink-action branch May 2, 2019 22:47
cjcenizal added a commit to cjcenizal/kibana that referenced this pull request May 2, 2019
…the policy (elastic#35987)

* Set PHASE_SHRINK_ENABLED to true if the action has been specified on the phase.
cjcenizal added a commit to cjcenizal/kibana that referenced this pull request May 2, 2019
…the policy (elastic#35987)

    * Set PHASE_SHRINK_ENABLED to true if the action has been specified on the phase.
cjcenizal added a commit to cjcenizal/kibana that referenced this pull request May 2, 2019
…the policy (elastic#35987)

    * Set PHASE_SHRINK_ENABLED to true if the action has been specified on the phase.
cjcenizal added a commit that referenced this pull request May 3, 2019
…the policy (#35987) (#35992)

* Set PHASE_SHRINK_ENABLED to true if the action has been specified on the phase.
cjcenizal added a commit that referenced this pull request May 3, 2019
…the policy (#35987) (#35996)

* Set PHASE_SHRINK_ENABLED to true if the action has been specified on the phase.
cjcenizal added a commit that referenced this pull request May 3, 2019
…the policy (#35987) (#35995)

* Set PHASE_SHRINK_ENABLED to true if the action has been specified on the phase.
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

cjcenizal added a commit to cjcenizal/kibana that referenced this pull request May 3, 2019
…the policy (elastic#35987)

    * Set PHASE_SHRINK_ENABLED to true if the action has been specified on the phase.
cjcenizal added a commit that referenced this pull request May 3, 2019
…the policy (#35987) (#36068)

* Set PHASE_SHRINK_ENABLED to true if the action has been specified on the phase.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:ILM release_note:fix Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v6.8.0 v7.0.2 v7.1.0 v7.2.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Shrink action is lost in Kibana ILM UI
3 participants