-
Notifications
You must be signed in to change notification settings - Fork 206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tag pagination #470
Tag pagination #470
Conversation
b0b7fb0
to
ac58658
Compare
There is a proposal to replace this with #496. |
Why is this not merged after so many months? It's pretty obvious the current spec is broken and should be fixed. |
9610caf
to
2243be7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggest avoiding promotion of the somewhat arbitrary number to a SHOULD value..
Also suggest allowing the maximum limit for the number of requests to be determined for a particular request.. Thus suggest not limiting with MUST language that a registry may have only one maximum limit.
654a2fd
to
c882c18
Compare
Updating tag listing to prefer the Link header. This aligns with the behavior of actual registries, but will break clients implementing the current spec. Breaking the spec was preferred over breaking existing registries and clients that work with them. Signed-off-by: Brandon Mitchell <[email protected]>
c882c18
to
37a73f4
Compare
Documenting the community decision made today: We are making a breaking change to clients that followed the spec to document the majority of real world implementations. There are three different groups of clients to consider:
The community felt that the second group was larger than the first, and did not want to break those users even if it meant the first group would be silently broken. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Registries must still support the n=100 and last query parameters. Clients may use the Link header.When registries cannot return all requested tags, an error must be returned.
This adds support for the Link header, and prefers it when available. Registries returning the Link header may return fewer than the requested number of tags per request.
Fixes #461.