Skip to content
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

Merged

Conversation

benwtrent
Copy link
Member

In addition to creating and re-assigning model aliases, users should be able to delete existing and unused model aliases.

@elasticmachine elasticmachine added the Team:ML Meta label for the ML team label Feb 18, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@benwtrent
Copy link
Member Author

@elasticmachine update branch

Copy link
Member

@davidkyle davidkyle left a 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.
Copy link
Member

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"

Copy link
Member Author

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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused?

Copy link
Member Author

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

@benwtrent benwtrent merged commit 0af38bb into elastic:master Feb 18, 2021
@benwtrent benwtrent deleted the feature/ml-delete-trained-model-alias branch February 18, 2021 18:12
benwtrent added a commit to benwtrent/elasticsearch that referenced this pull request Feb 18, 2021
In addition to creating and re-assigning model aliases, users should be able to delete existing and unused model aliases.
benwtrent added a commit that referenced this pull request Feb 19, 2021
In addition to creating and re-assigning model aliases, users should be able to delete existing and unused model aliases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants