-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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] Added readonly field in hot phase #85419
Conversation
@elasticmachine merge upstream |
merge conflict between base and head |
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.
Great work @yuliacech! Thanks for adding support for this action. Tested locally and everything worked as expected. I left a couple nits, but nothing blocking.
title={ | ||
<h3> | ||
<FormattedMessage | ||
id="xpack.indexLifecycleMgmt.editPolicy.readonly.text" |
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.
Per the i18n guidelines, I think the end of this id should be something like ...editPolicy.readonlyTitle
...t/public/application/sections/edit_policy/components/phases/shared_fields/readonly_field.tsx
Outdated
Show resolved
Hide resolved
...ck/plugins/index_lifecycle_management/public/application/sections/edit_policy/form/schema.ts
Outdated
Show resolved
Hide resolved
...management/public/application/sections/edit_policy/components/phases/hot_phase/hot_phase.tsx
Outdated
Show resolved
Hide resolved
@@ -60,9 +60,16 @@ export const createSerializer = (originalPolicy?: SerializedPolicy) => ( | |||
if (_meta.hot.bestCompression && hotPhaseActions.forcemerge) { | |||
hotPhaseActions.forcemerge.index_codec = 'best_compression'; | |||
} | |||
|
|||
if (_meta.hot.readonlyEnabled) { | |||
hotPhaseActions.readonly = hotPhaseActions.readonly ?? {}; |
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.
Won't this always equal {}
, or is it possible to pass options to the readonly
action?
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.
Currently, the readonly
action is always empty, but I thought we should not overwrite the existing object in case ES will add any new properties.
@elasticmachine merge upstream |
…ections/edit_policy/components/phases/shared_fields/readonly_field.tsx Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
…ections/edit_policy/form/schema.ts Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
…ections/edit_policy/components/phases/hot_phase/hot_phase.tsx Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
Thanks a lot for your review and suggestions, @alisonelizabeth ! :) |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Distributable file count
History
To update your PR or re-run it, just comment with: |
* [ILM] Added readonly field in hot phase * [ILM] Added readonly field in warm phase * Update x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/phases/shared_fields/readonly_field.tsx Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com> * Update x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/form/schema.ts Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com> * Update x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/phases/hot_phase/hot_phase.tsx Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com> * Updated labels for the form Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
* [ILM] Added readonly field in hot phase * [ILM] Added readonly field in warm phase * Update x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/phases/shared_fields/readonly_field.tsx Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com> * Update x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/form/schema.ts Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com> * Update x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/phases/hot_phase/hot_phase.tsx Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com> * Updated labels for the form Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Alison Goryachev <alisonmllr20@gmail.com>
Summary
Fixes #82880.
This PR adds
readonly
action to hot and warm phases. Default is disabled and in hot phase it's only allowed if rollover is enabled.Screenshot
Checklist
Release note
Index Lifecycle Management app now includes readonly action.