-
Notifications
You must be signed in to change notification settings - Fork 432
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(cli): add note about webhooks in migration run command #6112
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
No changes to documentation |
Component Testing Report Updated Apr 4, 2024 7:53 PM (UTC)
|
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.
The CLI has the ability to list project webhooks (sanity hook list
). It may be out of scope at this time, but it could be helpful to automatically check for active webhooks as part of the migration process, and only print a warning if any exist. This would be yet another guard rail that makes migrations safer than executing scripts directly.
packages/sanity/src/_internal/cli/commands/migration/runMigrationCommand.ts
Outdated
Show resolved
Hide resolved
packages/sanity/src/_internal/cli/commands/migration/runMigrationCommand.ts
Outdated
Show resolved
Hide resolved
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.
Looks great!
Fixes SDX-1156
Description
Adds a message to warn users that migrations will trigger web hooks.
What to review
Is this the right message?
Testing
No behavioral change
Notes for release