Skip to content

fix: search channel releases so release image ls --version finds releases efficiently - #771

Open
xavpaice wants to merge 3 commits into
mainfrom
xavpaice/sc-139104/replicated-release-image-ls-with-version
Open

fix: search channel releases so release image ls --version finds releases efficiently#771
xavpaice wants to merge 3 commits into
mainfrom
xavpaice/sc-139104/replicated-release-image-ls-with-version

Conversation

@xavpaice

@xavpaice xavpaice commented Jul 28, 2026

Copy link
Copy Markdown
Member

When running replicated release image ls --channel ... --version ..., the CLI was only fetching the first page of channel releases (default page size of 20) and then filtering client-side by semver. This caused versions beyond the first page to fail with no release found with version ... in channel, even though the release existed and was visible in the UI.

This change:

  1. Uses the API's server-side versionLabel filter when a specific version is requested, so only matching releases are returned instead of paginating through the entire channel history.
  2. Keeps the previous pagination path as a fallback for edge cases where the version label differs from the semver.
  3. Keeps the broader fix to ListChannelReleases so it paginates through all pages (used by the fallback and by GetCurrentChannelRelease).
  4. Adds tests covering pagination behavior and the new versionLabel filter.

Fixes the reported issue where 2.17.12 in itrs-analytics/unstable could not be found via the CLI but was visible via the API on page 1.

@xavpaice
xavpaice marked this pull request as draft July 28, 2026 01:51
@xavpaice
xavpaice marked this pull request as ready for review July 28, 2026 01:59
@xavpaice xavpaice changed the title fix: paginate channel releases so release image ls --version finds releases beyond first page fix: search channel releases so release image ls --version finds releases efficiently Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant