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

fix: upload type in upload should be blob or directory #490

Merged

Conversation

vasco-santos
Copy link
Contributor

The PR to unify /car and /upload #480 was merged and changed the Upload type provided to the Database from Directory / Blob to Upload, keeping Car to when using the /car endpoint.

This is causing problems in production because enum type 'UploadType'. Known values are: Car, Blob, Multipart per https://github.com/web3-storage/web3.storage/blob/website-v1.4.0/packages/db/fauna/schema.graphql#L262-L274

This PR reverts this back to the original behaviour. However, given everything is going to be stored as a Car, maybe the best solution is to either drop this property, or really change its type to Upload in the Database schema.

@vasco-santos vasco-santos requested review from olizilla and alanshaw and removed request for olizilla September 23, 2021 13:07
@olizilla
Copy link
Contributor

olizilla commented Sep 23, 2021

Let's introduce a new Upload type to the schema, so we can distinguish between things that were uploaded as files but we turned them into a CAR, from older uploads that were raw files.

packages/db/fauna/schema.graphql Outdated Show resolved Hide resolved
@vasco-santos vasco-santos merged commit ed8f089 into main Sep 24, 2021
@vasco-santos vasco-santos deleted the fix/upload-type-in-upload-route-should-be-blob-or-directory branch September 24, 2021 09:51
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