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(cli): add note about webhooks in migration run command #6112

Merged
merged 4 commits into from
Apr 12, 2024
Merged

Conversation

jtpetty
Copy link
Contributor

@jtpetty jtpetty commented Mar 21, 2024

Fixes SDX-1156

Description

Adds a message to warn users that migrations will trigger web hooks.

image

What to review

Is this the right message?

Testing

No behavioral change

Notes for release

@jtpetty jtpetty requested a review from a team as a code owner March 21, 2024 21:07
@jtpetty jtpetty requested review from juice49 and removed request for a team March 21, 2024 21:07
Copy link

vercel bot commented Mar 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
performance-studio ✅ Ready (Inspect) Visit Preview Apr 4, 2024 7:49pm
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 4, 2024 7:49pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview Apr 4, 2024 7:49pm

Copy link
Contributor

No changes to documentation

Copy link
Contributor

github-actions bot commented Mar 21, 2024

Component Testing Report Updated Apr 4, 2024 7:53 PM (UTC)

File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 37s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 6s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 26s 6 0 0
formBuilder/inputs/PortableText/copyPaste/CopyPaste.spec.tsx ✅ Passed (Inspect) 12s 4 2 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 12s 6 0 0
formBuilder/inputs/PortableText/FocusTracking.spec.tsx ✅ Passed (Inspect) 32s 15 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 1m 2s 13 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ✅ Passed (Inspect) 1m 2s 18 0 0
formBuilder/inputs/PortableText/RangeDecoration.spec.tsx ✅ Passed (Inspect) 12s 6 0 0
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 13s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 20s 9 0 0

Copy link
Contributor

@juice49 juice49 left a 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.

Copy link
Contributor

@juice49 juice49 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@jtpetty jtpetty added this pull request to the merge queue Apr 12, 2024
Merged via the queue into next with commit 9baf406 Apr 12, 2024
36 checks passed
@jtpetty jtpetty deleted the sdx-1156 branch April 12, 2024 14:34
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