-
Notifications
You must be signed in to change notification settings - Fork 449
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(cli): select org and add to sanity.cli.ts on initialization #8573
base: next
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
No changes to documentation |
Coverage Report
File CoverageNo changed files found. |
a9a66e7
to
93e1d1e
Compare
Component Testing Report Updated Feb 10, 2025 10:15 PM (UTC) ❌ Failed Tests (3) -- expand for details
|
⚡️ Editor Performance ReportUpdated Mon, 10 Feb 2025 22:12:46 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.
looks good overall. Only putting it as comment to solve for the question
api: { | ||
organizationId: '%organizationId%' | ||
}, |
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.
this might be worth discussing. Do we want to use the existing api
key or introduce a new one for the specific use case for this.
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.
Semantically I'm not sure. I can read the api
key as "these are the parameters that go into building the URL you need for operations" (so projectId
, dataset
), and organizationId
technically fits that requirement, since you need it for deployment for example.
But if we want to keep all core app logic located in one place, then maybe it belongs elsewhere.
93e1d1e
to
34c7aec
Compare
Description
FIXES SDK-180
Since core applications will not be attached to specific projects, they need to be attached to organizations instead. This PR updates the
sanity init --template core-app
process to use the "select organization" part of the CLI flow and pass the resulting organization ID to thesanity.cli.ts
template.What to review
This should hopefully be straightforward. I had to update some variable names in legacy code because of an ESLint
no-shadow
rule. If you disagree with this choice, please let me know!Testing
pnpx [email protected]+a9a66e73d5 init --template core-app
sanity.cli.ts
Notes for release
None, should be internal.