-
Notifications
You must be signed in to change notification settings - Fork 29
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
Update missing content API #167
Merged
Merged
Conversation
This file contains 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
peterhuene
reviewed
Jul 14, 2023
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.
My feedback on just openapi.yaml
. Haven't looked over the rest of the changes yet.
lann
force-pushed
the
update-missing-content
branch
from
July 17, 2023 14:22
3ec6da0
to
9f57c67
Compare
This wraps a url::Url for a couple of purposes: - Asserts the invariant that the Url is a valid warg base URL - Provdies a `::safe_label` method which produces a mangled version of the URL appropriate for e.g. file paths This new type is used in client config and replaces the 'host' string used in keyring management.
lann
force-pushed
the
update-missing-content
branch
from
July 24, 2023 18:47
9f57c67
to
b000eb6
Compare
lann
commented
Jul 24, 2023
lann
commented
Jul 24, 2023
lann
force-pushed
the
update-missing-content
branch
from
July 24, 2023 19:10
b000eb6
to
c4f8640
Compare
lann
commented
Jul 24, 2023
peterhuene
approved these changes
Jul 25, 2023
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.
Looks good! 👍
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.
This implements the proposal here: #160 It adapts some of #137. Notably it does not add a "patch record" operation as I think that conflicts with #146.
I also fell down a bit of a rabbit hole to allow upload URLs to be specified relative to the registry URL which led to a refactor that adds a
RegistryUrl
type. Note that this will (probably) break existing client config forlocalhost
environments as it makes port numbers significant for on-disk paths and the keyring.