-
Notifications
You must be signed in to change notification settings - Fork 430
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: Start in Create type exclusion now recursively checks for sanityCreate.exclude options #7890
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
No changes to documentation |
Component Testing Report Updated Nov 27, 2024 1:01 PM (UTC) ✅ All Tests Passed -- expand for details
|
⚡️ Editor Performance ReportUpdated Wed, 27 Nov 2024 13:07:22 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
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.
Thanks for this!
…Create.exclude options (#7890)
Description
Turns out that "Start in Create" button did not correctly check for
options.sanityCreate.exclude: true
, and it was essentially not possible to opt-out per document type.This new implementation checks options recursively (and more importantly maybe; it checks the base type 🤦 ). Recursion stops at the first boolean
sanityCreate.exclude
. This allows alias types to override parent options.What to review
Read the unit-tests and 👍 👎
Testing
I deployed a new version of the test studio for this:
https://create-integration-test.sanity.studio/
Check that:
Notes for release
Fixes an issue where the
options.sanityCreate.exclude: true
was not respected when determining if the "Start in Sanity Create" button should be shown for studios withbeta.create.startInCreateEnabled: true
set in sanity.config.Setting
options.sanityCreate.exclude: true
on a document type will now correctly hide "Start in Sanity Create" for new documents of that type.