Model Registry MLFlow compatibility: Experiment deletion
What does this MR do and why?
This MR adds the endpoint to delete an Experiment by using MLflow.
Delete Candidate query
DELETE FROM "ml_experiments"
WHERE "ml_experiments"."id" = 15
https://console.postgres.ai/gitlab/gitlab-production-main/sessions/32130/commands/99310
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- Open GDK: http://127.0.0.1:3000/flightjs/Flight/-/ml/models
- Perform the following cURL
curl -X POST --header "Authorization: Bearer glpat-<redacted>" "http://127.0.0.1:3000/api/v4/projects/7/ml/mlflow/api/2.0/mlflow/experiments/create?name=experiment1"
Response:
{"experiment_id":"13"}
- Optionally, verify that the experiment exists
curl -X GET --header "Authorization: Bearer glpat-<redacted>" "http://127.0.0.1:3000/api/v4/projects/7/ml/mlflow/api/2.0/mlflow/experiments/get?experiment_id=13""
Response:
{"experiment":{"experiment_id":"13","name":"experiment1","lifecycle_stage":"active","artifact_location":"not_implemented","tags":[]}}
- Delete the experiment with the following cURL
curl -X POST --header "Authorization: Bearer glpat-<redacted>" "http://127.0.0.1:3000/api/v4/projects/7/ml/mlflow/api/2.0/mlflow/experiments/delete?experiment_id=13"
- Verify that the experiment exists
curl -X GET --header "Authorization: Bearer glpat-<redacted>" "http://127.0.0.1:3000/api/v4/projects/7/ml/mlflow/api/2.0/mlflow/experiments/get?experiment_id=13""
Response:
{"error_code":"RESOURCE_DOES_NOT_EXIST"}
Related to #482876 (closed)
Edited by Fred de Gier