Skip to content

Displays ModelVersion data on the detail page and model page

What does this MR do and why?

Shows description and package data for a model version. This is displayed both on the model page (showing information about the latest version), and on model detail page. More information about the model version will be added in a follow up MR (!137045 (merged))

Screenshots or screen recordings

Before After
Model page image image
Model Version page image image

How to set up and validate locally

  1. Enable the feature flag

    Feature.enable("model_registry")
  2. Upload any file using the model registry API (README.md is an example found at the root of gitlab repo). This will create the a model and a package. Replace $PROJECT_ID and $GLAB_TOKEN:

    curl  --header "Authorization:$GLAB_TOKEN" --upload-file ./README.md "http://localhost:3000/api/v4/projects/$PROJECT_ID/packages/ml_models/gitlab_model/0.0.1/README.md"
  3. Navigate to path/to/project/-/ml/models, and select the created model. The data about the version should be displayed in the details tab.

  4. Select the versions tab, then the created version. The data will be displayed.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #428905 (closed)

Edited by Eduardo Bonet

Merge request reports

Loading