Skip to content

feat(catalog): add orderBy=RECOMMENDED to findModels, deprecate recommendations param#2819

Draft
pboyd wants to merge 1 commit into
kubeflow:mainfrom
pboyd:order-by-recommended
Draft

feat(catalog): add orderBy=RECOMMENDED to findModels, deprecate recommendations param#2819
pboyd wants to merge 1 commit into
kubeflow:mainfrom
pboyd:order-by-recommended

Conversation

@pboyd

@pboyd pboyd commented Jun 11, 2026

Copy link
Copy Markdown
Member

Description

Passing recommendations=true to GET /api/model_catalog/v1alpha1/models was confusing because it prevented using orderBy. This change makes orderBy=RECOMMENDED equivalent: Pareto filtering is applied and models are sorted by recommended latency, with sortOrder honored (ASC = lowest latency
first, DESC = highest latency first).

The recommendations boolean parameter is retained for backward compatibility but marked deprecated in the OpenAPI spec.

How Has This Been Tested?

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.

…mendations param

Passing recommendations=true to GET /api/model_catalog/v1alpha1/models was
confusing because it prevented using orderBy. This change makes
orderBy=RECOMMENDED equivalent: Pareto filtering is applied and models are
sorted by recommended latency, with sortOrder honored (ASC = lowest latency
first, DESC = highest latency first).

The recommendations boolean parameter is retained for backward compatibility
but marked deprecated in the OpenAPI spec. Note that sortOrder is now honored
when recommendations=true as well; the default ASC behavior is unchanged.

Assisted-by: Claude Opus 4.6
Signed-off-by: Paul Boyd <paul@pboyd.io>
@google-oss-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from pboyd. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

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.

1 participant