-
Notifications
You must be signed in to change notification settings - Fork 25k
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
[ML] add new delete trained model aliases API #69195
[ML] add new delete trained model aliases API #69195
Conversation
Pinging @elastic/ml-core (Team:ML) |
@elasticmachine update branch |
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.
LGTM
<titleabbrev>Delete Trained Models Aliases</titleabbrev> | ||
++++ | ||
|
||
Deletes a trained models alias. |
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.
Is it "model's" possessive or singular "Deletes a trained model alias"
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.
definitely
@@ -142,7 +142,7 @@ public ClusterState execute(final ClusterState currentState) { | |||
}); | |||
} | |||
|
|||
private Set<String> getReferencedModelKeys(IngestMetadata ingestMetadata) { | |||
static Set<String> getReferencedModelKeys(IngestMetadata ingestMetadata, IngestService ingestService) { |
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.
Unused?
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.
it is used also in the transport delete trained model alias class to gather all the referenced models to make sure a model alias is not used by a pipeline
…-trained-model-alias
…nwtrent/elasticsearch into feature/ml-delete-trained-model-alias
In addition to creating and re-assigning model aliases, users should be able to delete existing and unused model aliases.
In addition to creating and re-assigning model aliases, users should be able to delete existing and unused model aliases.