-
Notifications
You must be signed in to change notification settings - Fork 427
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
refactor: move to system-only release documents #7824
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
const RELEASE_METADATA_TMP_DOC_PATH = 'system-tmp-releases' | ||
// todo: remove this after first tagged release | ||
function migrateWith(client: SanityClient) { | ||
return client.observable.fetch(`*[_id in path('${RELEASE_METADATA_TMP_DOC_PATH}.**')]`).pipe( |
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 migrates from old system-tmp-releases docments in the background (for projects that may have created them during testing). We should remove this shortly
No changes to documentation |
releases.map( | ||
(releaseDoc: ReleaseDocument): ReleaseDocument => ({ | ||
...releaseDoc, | ||
metadata: {...(releaseDoc as any).userMetadata, ...releaseDoc.metadata}, |
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.
userMetadata is going to be renamed to metadata
very soon – this makes sure both works
return useMemo( | ||
() => | ||
createReleaseOperationsStore({ | ||
client: studioClient, | ||
// todo: is this non-null assertion safe? | ||
currentUser: currentUser!, |
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.
release store doesn't require current user anymore
3d404cd
to
dee38fb
Compare
⚡️ Editor Performance ReportUpdated Fri, 15 Nov 2024 15:24:33 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
Component Testing Report Updated Nov 15, 2024 3:21 PM (UTC) ✅ All Tests Passed -- expand for details
|
dae4e00
to
942212f
Compare
No description provided.