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 uploadCAR in uploader #517

Merged
merged 3 commits into from
May 17, 2023
Merged

feat: implement uploadCAR in uploader #517

merged 3 commits into from
May 17, 2023

Conversation

alanshaw
Copy link
Member

This exposes the upload-client's uploadCAR function in the UploaderProvider.

I need to be able to access this to upload merkle clock events generated by bucket mutations to w3up.

@alanshaw alanshaw requested a review from travis May 17, 2023 15:12
Copy link
Member

@travis travis left a comment

Choose a reason for hiding this comment

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

I think it's worth checking if manual proof inclusion is necessary, but can always do that post-merge - this looks great!

issuer: agent,
with: space.did(),
audience: servicePrincipal,
proofs: await getProofs([
Copy link
Member

Choose a reason for hiding this comment

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

If I recall correctly you don't actually need to include these proofs manually - access-client should look through its list of proofs and include relevant proofs automatically. Could be misremembering so worth testing....

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, I thought that was w3up-client? Remember we're using upload-client here...

Copy link
Member

@travis travis May 17, 2023

Choose a reason for hiding this comment

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

oh right - what I'm thinking of is actually in agent.js in access-client which is I think what getProofs ends up calling into - what you've got is exactly right!

this is probably another argument in favor of refactoring this to use w3up-client rather than using the upload and access clients separately...

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@alanshaw alanshaw merged commit 40036ea into main May 17, 2023
@alanshaw alanshaw deleted the feat/uploadCAR branch May 17, 2023 20:09
travis pushed a commit that referenced this pull request Jun 20, 2023
🤖 I have created a release *beep* *boop*
---


##
[5.2.0](uploader-core-v5.1.0...uploader-core-v5.2.0)
(2023-05-19)


### Features

* implement `uploadCAR` in uploader
([#517](#517))
([40036ea](40036ea))

---
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: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
travis pushed a commit that referenced this pull request Jun 20, 2023
🤖 I have created a release *beep* *boop*
---


##
[4.2.0](react-uploader-v4.1.0...react-uploader-v4.2.0)
(2023-06-20)


### Features

* implement `uploadCAR` in uploader
([#517](#517))
([40036ea](40036ea))


### Bug Fixes

* missing `dataCID` in `onUploadComplete` callback
([#525](#525))
([fb048a9](fb048a9))

---
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: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
travis added a commit that referenced this pull request Jun 20, 2023
🤖 I have created a release *beep* *boop*
---


##
[4.2.0](solid-uploader-v4.1.0...solid-uploader-v4.2.0)
(2023-06-20)


### Features

* implement `uploadCAR` in uploader
([#517](#517))
([40036ea](40036ea))

---
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: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Travis Vachon <[email protected]>
travis added a commit that referenced this pull request Jun 20, 2023
🤖 I have created a release *beep* *boop*
---


##
[4.2.0](vue-uploader-v4.1.0...vue-uploader-v4.2.0)
(2023-06-20)


### Features

* implement `uploadCAR` in uploader
([#517](#517))
([40036ea](40036ea))


### Bug Fixes

* inferred type error
([#516](#516))
([1bf4cf2](1bf4cf2))

---
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: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Travis Vachon <[email protected]>
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