Adds API to assign or change the policy for an index#31277
Merged
colings86 merged 3 commits intoelastic:index-lifecyclefrom Jun 13, 2018
colings86:ilm/update-policy
Merged
Adds API to assign or change the policy for an index#31277colings86 merged 3 commits intoelastic:index-lifecyclefrom colings86:ilm/update-policy
colings86 merged 3 commits intoelastic:index-lifecyclefrom
colings86:ilm/update-policy
Conversation
Collaborator
|
Pinging @elastic/es-core-infra |
Contributor
|
Overall Looks good, should we rename "changePolicy" to "setPolicy". It feels wrong to say change, when it effectively |
Contributor
Author
|
@talevy I renamed the action, could you look again? |
This api will change `index.lifecycle.name` for all indexes in the provided pattern as long as they are not currently in the shrink action. Later changes will loosen this restriction so an index is only reject if it is currently in the shrink action AND the diff between the old and new policy includes changes to the shrink action. Also later changes will detect if the current step is not present in the new policy and move the index onto the next available step
Also changes all related Classes and api endpoints
jasontedor
pushed a commit
that referenced
this pull request
Aug 17, 2018
* Adds API to assign or change the policy for an index This api will change `index.lifecycle.name` for all indexes in the provided pattern as long as they are not currently in the shrink action. Later changes will loosen this restriction so an index is only reject if it is currently in the shrink action AND the diff between the old and new policy includes changes to the shrink action. Also later changes will detect if the current step is not present in the new policy and move the index onto the next available step * Changes name to SetPolicyForIndexAction Also changes all related Classes and api endpoints * fixes tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This api will change
index.lifecycle.namefor all indexes in theprovided pattern as long as they are not currently in the shrink action.
Later changes will loosen this restriction so an index is only reject
if it is currently in the shrink action AND the diff between the old
and new policy includes changes to the shrink action.
Also later changes will detect if the current step is not present in
the new policy and move the index onto the next available step