Repository navigation
Conversation
j-nowak
force-pushed
the
feat/registry-quotas-list
branch
4 times, most recently
from
November 20, 2026 09:36
5accc71 to
a8d4b0c
Compare
Adds a dedicated registry limits view instead of extending cre registry list with GraphQL quota fetches. The command reads the registries from the cached tenant context for labels and IDs, fetches registryQuotas live, and joins on-chain quotas by chain selector rather than the CLI's onchain:<name> ID. Disabled families with active workflows render as no headroom, remaining is clamped at zero, and a partial owners response keeps the available data and warns. A missing platform:limits:read permission fails the command, since limits are its entire purpose.
j-nowak
force-pushed
the
feat/registry-quotas-list
branch
from
November 20, 2026 09:49
a8d4b0c to
860bea7
Compare
Drop registryId from the registryQuotas query and require both the chain selector and address when matching on-chain registries.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
cre registry limitsas a separate view for registry quotas.cre registry listis unchanged — it stays the simple, context-only command it was before, with no GraphQL call.Behaviour
registryQuotaslive on every run: quotas change as workflows deploy, so they must not be cached.onchain:<chain name>while the API returns the bare chain name.1 / 3 used 2 remaining; a disabled family with active workflows renders4 / 0 used no headroomand is never hidden.remainingis clamped at zero.owners: nullafter a chain failure) keeps the available data and prints a warning; the command still exits successfully.platform:limits:readfails the command, since limits are its entire purpose.Tests
cmd/registry/limits/limits_test.gocovers the chain-selector join, private-registry rendering, the gated family, the partial-response warning, missing permission, no registries, and an empty quota response.go build ./...andgo test ./cmd/registry/...pass. Docs are regenerated withmake gendoc(docs/cre_registry_limits.md, plus the new subcommand entry indocs/cre_registry.md).Jira: DEVSVCS-7106