Skip to content
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 4 commits into from
Jul 25, 2023
Merged

Conversation

lann
Copy link
Collaborator

@lann lann commented Jul 14, 2023

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 for localhost environments as it makes port numbers significant for on-disk paths and the keyring.

@lann lann changed the title Update missing content Update missing content API Jul 14, 2023
@lann lann marked this pull request as draft July 14, 2023 19:49
Copy link
Member

@peterhuene peterhuene left a 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.

crates/server/openapi.yaml Outdated Show resolved Hide resolved
crates/server/openapi.yaml Outdated Show resolved Hide resolved
crates/server/openapi.yaml Outdated Show resolved Hide resolved
crates/server/openapi.yaml Outdated Show resolved Hide resolved
lann added 3 commits July 24, 2023 10:19
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 lann marked this pull request as ready for review July 24, 2023 18:49
@lann lann requested a review from peterhuene July 24, 2023 19:45
Copy link
Member

@peterhuene peterhuene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 👍

crates/client/src/registry_url.rs Show resolved Hide resolved
@lann lann merged commit f143b25 into bytecodealliance:main Jul 25, 2023
6 checks passed
@lann lann deleted the update-missing-content branch July 25, 2023 13:21
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.

2 participants