Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

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 requested review from calvinrp, macovedj and peterhuene July 14, 2023 15:11
@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.

@lann lann force-pushed the update-missing-content branch from 3ec6da0 to 9f57c67 Compare July 17, 2023 14:22
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 force-pushed the update-missing-content branch from 9f57c67 to b000eb6 Compare July 24, 2023 18:47
@lann lann marked this pull request as ready for review July 24, 2023 18:49
@lann lann force-pushed the update-missing-content branch from b000eb6 to c4f8640 Compare July 24, 2023 19:10
@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! 👍

@lann lann merged commit f143b25 into bytecodealliance:main Jul 25, 2023
@lann lann deleted the update-missing-content branch July 25, 2023 13:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants