-
Notifications
You must be signed in to change notification settings - Fork 167
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
chore: remove legacy upload codepath #2580
Conversation
this seems to fix the build errors I was seeing, and necessitates a small code change
Add a test for fetching filecoin deal info from w3up. This is definitely not my best work - ideally we'd abstract this w3up mocking logic in a way that makes it less stateful, but I'm hesitant to do that when we will likely not be making many changes here in the future.
this broke existing tests because it was returning w3up deals in all situations
plus feature flag and related tests
abstract w3up mocking a bit and use it in more places
Deploying nft-storage with Cloudflare Pages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Not sure if you are going for a second PR to remove linkdex, but I think we should/could also remove https://github.com/nftstorage/nft.storage/blob/feat/cleanup-w3up-feature-flag/packages/api/src/routes/nfts-upload.js#L219-L222
I think that once we write to R2 only that will fail, but I am not super aware on how linkdex is built
🤖 I have created a release *beep* *boop* --- ## [4.8.0](api-v4.7.0...api-v4.8.0) (2024-04-17) ### Features * show deal info from w3up ([#2573](#2573)) ([766a7c1](766a7c1)) ### Bug Fixes * more logging of upload get fail ([#2593](#2593)) ([35cc344](35cc344)) * one more typo ([de5582e](de5582e)) ### Other Changes * more deals get debugging ([#2594](#2594)) ([36a26f1](36a26f1)) * remove debugging ([#2595](#2595)) ([3dc7916](3dc7916)) * remove legacy upload codepath ([#2580](#2580)) ([88c05a9](88c05a9)) --- 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>
plus feature flag and related tests