Skip to content

chore(ui): remove license values UI mapping in model catalog#2596

Merged
google-oss-prow[bot] merged 2 commits intokubeflow:mainfrom
YuliaKrimerman:license-values-mapping
Apr 17, 2026
Merged

chore(ui): remove license values UI mapping in model catalog#2596
google-oss-prow[bot] merged 2 commits intokubeflow:mainfrom
YuliaKrimerman:license-values-mapping

Conversation

@YuliaKrimerman
Copy link
Copy Markdown
Contributor

Description

Now that the backend sends human-readable license names directly, the frontend no longer needs its own slug-to-readable-name mapping for license values.

This PR removes the ModelCatalogLicense enum, MODEL_CATALOG_LICENSE_NAME_MAPPING, and MODEL_CATALOG_LICENSE_DETAILS from the model catalog constants, and updates all consumers to treat license values as plain strings from the API. The ModelCatalogStringFilter component already had a fallback to the raw value when no mapping entry existed, so this change is seamless — the UI continues to display license names exactly as the API provides them.

**Changes across 6 files (20 additions, 110 deletions)

How Has This Been Tested?

  • Verified all ModelCatalogLicense references are fully removed (grep confirms zero remaining usages).
  • Unit test assertions updated to reflect the new human-readable license values.
  • No visual regression expected — the UI was already displaying the same readable names via the mapping; now it gets them directly from the API.

Merge criteria:

  • All the commits have been signed-off (To pass the DCO check)

  • The commits have meaningful messages

  • Automated tests are provided as part of the PR for major new functionalities; testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).

  • The developer has manually tested the changes and verified that the changes work.

  • Code changes follow the kubeflow contribution guidelines.

  • For first time contributors: Please reach out to the Reviewers to ensure all tests are being run, ensuring the label ok-to-test has been added to the PR.

Signed-off-by: Yulia Krimerman <juliapiterova@hotmail.com>
@YuliaKrimerman
Copy link
Copy Markdown
Contributor Author

/retest

Copy link
Copy Markdown
Contributor

@manaswinidas manaswinidas left a comment

Choose a reason for hiding this comment

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

The static_data_mock.go license values should be updated too to keep mock data consistent with the real API.

Copy link
Copy Markdown
Contributor

@manaswinidas manaswinidas left a comment

Choose a reason for hiding this comment

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

Clean removal overall. One inline suggestion (non-blocking).

title="License"
filterKey={filterKey}
filterToNameMapping={MODEL_CATALOG_LICENSE_NAME_MAPPING}
filterToNameMapping={{}}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

suggestion (nit): Consider making filterToNameMapping optional (with a default of {}) in ModelCatalogStringFilter so this prop can simply be omitted here rather than passing an empty object.

Signed-off-by: Yulia Krimerman <juliapiterova@hotmail.com>
@YuliaKrimerman
Copy link
Copy Markdown
Contributor Author

/retest

Copy link
Copy Markdown
Contributor

@manaswinidas manaswinidas left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

Thanks!! All review comments addressed.

@google-oss-prow google-oss-prow Bot added the lgtm label Apr 17, 2026
@google-oss-prow
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: manaswinidas

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow Bot merged commit bcf0562 into kubeflow:main Apr 17, 2026
30 of 32 checks passed
Taj010 pushed a commit to Taj010/model-registry that referenced this pull request Apr 21, 2026
…w#2596)

* removed UI mapping for licence values

Signed-off-by: Yulia Krimerman <juliapiterova@hotmail.com>

* addressed comments

Signed-off-by: Yulia Krimerman <juliapiterova@hotmail.com>

---------

Signed-off-by: Yulia Krimerman <juliapiterova@hotmail.com>
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.

2 participants