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!: refactor upload-api #154

Merged
merged 21 commits into from
Mar 8, 2023
Merged

feat!: refactor upload-api #154

merged 21 commits into from
Mar 8, 2023

Conversation

Gozala
Copy link
Contributor

@Gozala Gozala commented Mar 8, 2023

This PR depends on storacha/w3up#504, which will require release and update here. With local symlink it works as expected.

@seed-deploy seed-deploy bot temporarily deployed to pr154 March 8, 2023 06:45 Inactive
@seed-deploy seed-deploy bot temporarily deployed to pr154 March 8, 2023 06:55 Inactive
@seed-deploy
Copy link

seed-deploy bot commented Mar 8, 2023

View stack outputs
  • pr154-w3infra-CarparkStack

    Name Value
    BucketName carpark-pr154-0
    Region us-east-2
  • pr154-w3infra-SatnavStack

    Name Value
    BucketName satnav-pr154-0
    Region us-east-2
  • pr154-w3infra-UploadApiStack

    Name Value
    ApiEndpoint https://rm4iqlgw6j.execute-api.us-east-2.amazonaws.com
    CustomDomain https://pr154.up.web3.storage
  • pr154-w3infra-BusStack

  • pr154-w3infra-ReplicatorStack

  • pr154-w3infra-UcanInvocationStack

  • pr154-w3infra-UploadDbStack

@Gozala
Copy link
Contributor Author

Gozala commented Mar 8, 2023

I have no idea why do test runner here says

npm ERR! Missing: @ucanto/[email protected] from lock file
npm ERR! Missing: [email protected] from lock file

or how to fix it. I'm not sure why does it even expects @ucanto/[email protected] in the lock file 🤷‍♂️

@seed-deploy seed-deploy bot temporarily deployed to pr155 March 8, 2023 07:27 Inactive
Gozala added a commit to storacha/w3up that referenced this pull request Mar 8, 2023
This PR makes changes needed for
storacha/w3infra#154 namely:

1. Fixes type mappings in `package.json`, otherwise TS is confused in
w3infra.
2. Removes obsolete `index.js` file that lives in w3infra now.
3. Exports types so they can be used from w3infra.
4. Updates return type from `undefined` to `null` to match what w3infra
implementation returns.
@alanshaw
Copy link
Member

alanshaw commented Mar 8, 2023

🙏 please next time submit formatting changes as a separate PR to make reviewing easier.

@seed-deploy seed-deploy bot temporarily deployed to pr154 March 8, 2023 22:32 Inactive
@seed-deploy seed-deploy bot temporarily deployed to pr154 March 8, 2023 22:41 Inactive
@Gozala Gozala merged commit ac2a4a7 into main Mar 8, 2023
@Gozala Gozala deleted the feat/refactor-upload-api branch March 8, 2023 22:45
@vasco-santos
Copy link
Contributor

vasco-santos commented Mar 9, 2023

Can we next time have formatting changes in a new PR and discussed please? 🙏🏼

We previously agreed and decided to not use prettier in this repo... Also important to raise that we are not even installing prettier nor the lint script is using it. So, follow up PRs will not follow these rules unless we change these

gobengo pushed a commit to storacha/w3up that referenced this pull request Apr 11, 2023
This PR makes changes needed for
storacha/w3infra#154 namely:

1. Fixes type mappings in `package.json`, otherwise TS is confused in
w3infra.
2. Removes obsolete `index.js` file that lives in w3infra now.
3. Exports types so they can be used from w3infra.
4. Updates return type from `undefined` to `null` to match what w3infra
implementation returns.
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.

4 participants