From 9f55cafdf3edfb7cae5effecf5cf5dc7432f2a76 Mon Sep 17 00:00:00 2001 From: CJ Cenizal Date: Thu, 2 May 2019 17:20:32 -0700 Subject: [PATCH] [ILM] Surface shrink action in edit form if it's already been set on the policy (#35987) (#35995) * Set PHASE_SHRINK_ENABLED to true if the action has been specified on the phase. --- .../public/store/selectors/policies.js | 1 + 1 file changed, 1 insertion(+) diff --git a/x-pack/plugins/index_lifecycle_management/public/store/selectors/policies.js b/x-pack/plugins/index_lifecycle_management/public/store/selectors/policies.js index 78b3d7d88875c..79aaacab96325 100644 --- a/x-pack/plugins/index_lifecycle_management/public/store/selectors/policies.js +++ b/x-pack/plugins/index_lifecycle_management/public/store/selectors/policies.js @@ -196,6 +196,7 @@ export const phaseFromES = (phase, phaseName, defaultEmptyPolicy) => { } if (actions.shrink) { + policy[PHASE_SHRINK_ENABLED] = true; policy[PHASE_PRIMARY_SHARD_COUNT] = actions.shrink.number_of_shards; } if (actions.freeze) {