Skip to content

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

}

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