diff --git a/x-pack/plugins/index_lifecycle_management/public/_index_lifecycle_management.scss b/x-pack/plugins/index_lifecycle_management/public/_index_lifecycle_management.scss index 341ed8a576d4a..c9220b5f1e8bb 100644 --- a/x-pack/plugins/index_lifecycle_management/public/_index_lifecycle_management.scss +++ b/x-pack/plugins/index_lifecycle_management/public/_index_lifecycle_management.scss @@ -1,7 +1,6 @@ .policyTable__horizontalScrollContainer { overflow-x: auto; max-width: 100%; - height: 100vh; } .policyTable__horizontalScroll { min-width: 800px; diff --git a/x-pack/plugins/index_lifecycle_management/public/store/selectors/lifecycle.js b/x-pack/plugins/index_lifecycle_management/public/store/selectors/lifecycle.js index 632048748b07c..5265590c6d927 100644 --- a/x-pack/plugins/index_lifecycle_management/public/store/selectors/lifecycle.js +++ b/x-pack/plugins/index_lifecycle_management/public/store/selectors/lifecycle.js @@ -165,7 +165,7 @@ export const validateLifecycle = state => { if (policyName.includes(' ')) { errors[STRUCTURE_POLICY_NAME].push(policyNameContainsSpaceErrorMessage); } - if (TextEncoder && new TextEncoder('utf-8').encode(policyName).length > 255) { + if (window.TextEncoder && new window.TextEncoder('utf-8').encode(policyName).length > 255) { errors[STRUCTURE_POLICY_NAME].push(policyNameTooLongErrorMessage); } } @@ -204,11 +204,6 @@ export const getLifecycle = state => { accum[phaseName] = phaseToES(state, phase); // These seem to be constants - // TODO: verify this assumption - if (phaseName === PHASE_HOT) { - accum[phaseName].min_age = '0s'; - } - if (phaseName === PHASE_DELETE) { accum[phaseName].actions = { ...accum[phaseName].actions, 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 57065812f4b6f..169230c9a2609 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 @@ -218,7 +218,6 @@ export const phaseToES = (state, phase) => { if (!phase[PHASE_ENABLED]) { return esPhase; } - if (isNumber(phase[PHASE_ROLLOVER_MINIMUM_AGE])) { esPhase.min_age = `${phase[PHASE_ROLLOVER_MINIMUM_AGE]}${phase[PHASE_ROLLOVER_MINIMUM_AGE_UNITS]}`; } @@ -269,5 +268,6 @@ export const phaseToES = (state, phase) => { number_of_shards: phase[PHASE_PRIMARY_SHARD_COUNT] }; } + console.log("PHASE", phase); return esPhase; };