-
Notifications
You must be signed in to change notification settings - Fork 374
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: add blobs-migrate
recipe
#6418
Conversation
try { | ||
return await runRecipe({ config, recipeName: sanitizedRecipeName, repositoryRoot }) | ||
return await runRecipe({ args, command, config, recipeName: sanitizedRecipeName, repositoryRoot }) |
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.
We were previously not passing the command arguments to recipes, but it's useful when a recipe needs to take input from the user.
package.json
Outdated
@@ -72,7 +72,7 @@ | |||
"dependencies": { | |||
"@bugsnag/js": "7.20.2", | |||
"@fastify/static": "6.10.2", | |||
"@netlify/blobs": "6.5.0", | |||
"@netlify/blobs": "^7.0.0", |
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.
why is this the only dependency with a caret?
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.
Good catch! We're pinning the exact versions of dependencies to avoid issues with transitive dependencies. It shouldn't be an issue here, since @netlify/blobs
doesn't have any dependencies, but I've pinned it anyway in b0572b1.
...clientOptions, | ||
name: storeName, | ||
}) | ||
const { blobs } = await oldStore.list() |
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.
does this really return all blobs? no pagination?
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.
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.
i haven't tested this locally. this review is just to say the code looks fine
Summary
Adds a new
blobs-migrate
recipe that lets folks migrate a Netlify Blobs store as they update to version 7.0.0 of@netlify/blobs
.Keeping this as draft until netlify/blobs#148 is merged and the
@netlify/blobs
dependency is updated.Part of ADN-370.