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

feat: implement admin/upload/inspect and admin/store/inspect capabilities #918

Merged
merged 12 commits into from
Sep 13, 2023

Conversation

travis
Copy link
Member

@travis travis commented Sep 11, 2023

  1. implementations of new capabilities proposed in feat: propose admin/upload/inspect and admin/store/inspect capabilities specs#77
  2. added a new getCID method to each of the {Upload|Store}Table interfaces, and updated the in-memory implementations of each.
  3. implementations of admin/upload/inspect and admin/store/inspect invocation handlers
  4. tests for all of the above

implementations of new capabilities proposed in storacha/specs#77
This will enable us to implement the invocation handlers for `root/get` and `shard/get`
including adding `/*` top level capabilities for both `root` and `shard`
This required a few more tweaks to the capabilities package types.

I've added test suites for both new namespaces and added a new `getCID` method to each of the `{Upload|Store}Table` interfaces, and updated the in-memory implementations of each.
this is strange because they don't seem to be necessary (and they aren't in Visual Studio!) but
a cheeky typecast fixes them for now
Copy link
Contributor

@Gozala Gozala left a comment

Choose a reason for hiding this comment

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

@travis I'm approving this as implementation of the spec looks good. That said I do think we need to iterate on the spec (sorry for not reviewing it sooner) to avoid taking up generic namespaces for system introspection capabilities.

Feel free to land as is and we can iterate on naming in followups, or we can align on naming and update this pr before landing.

@travis travis changed the title feat: introduce root/get and shard/get capabilities feat: introduce admin/upload/inspect and admin/store/inspect capabilities Sep 12, 2023
@travis
Copy link
Member Author

travis commented Sep 12, 2023

No worries at all @Gozala! I've updated this for the latest version of the spec - I'll hold off on merging until I've spiked this out full-stack, so feel free to re-review or not - the latest updates are basically just name changes and restructuring the match, but couldn't hurt to have more eyes.

@travis travis changed the title feat: introduce admin/upload/inspect and admin/store/inspect capabilities feat: implement admin/upload/inspect and admin/store/inspect capabilities Sep 12, 2023
it doesn't seem like we support Date types in Ucanto service return values?
@travis travis merged commit 5616a12 into main Sep 13, 2023
4 checks passed
@travis travis deleted the feat/cid-lookup-capabilities branch September 13, 2023 01:01
travis pushed a commit that referenced this pull request Sep 13, 2023
🤖 I have created a release *beep* *boop*
---


##
[9.3.0](capabilities-v9.2.1...capabilities-v9.3.0)
(2023-09-13)


### Features

* implement `admin/upload/inspect` and `admin/store/inspect`
capabilities ([#918](#918))
([5616a12](5616a12))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
travis added a commit that referenced this pull request Sep 13, 2023
🤖 I have created a release *beep* *boop*
---


##
[5.4.0](upload-api-v5.3.1...upload-api-v5.4.0)
(2023-09-13)


### Features

* implement `admin/upload/inspect` and `admin/store/inspect`
capabilities ([#918](#918))
([5616a12](5616a12))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: Travis Vachon <travis.vachon@protocol.ai>
travis added a commit to storacha/w3infra that referenced this pull request Sep 13, 2023
this enables the new capability invocation handlers in storacha/w3up#918
travis added a commit to storacha/w3infra that referenced this pull request Sep 18, 2023
this enables the new capability invocation handlers in
storacha/w3up#918
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