-
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
fix(sanity): use raw as default perspective #8586
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
@@ -54,7 +54,7 @@ function listen(id: string, fields: string[], store: DocumentStore) { | |||
} | |||
const params = {id, draftId: getDraftId(id)} | |||
return store.listenQuery(query, params, { | |||
perspective: 'previewDrafts', | |||
perspective: 'drafts', |
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.
not strictly related, but took the liberty of renaming this when I came across it.
) | ||
return source.getClient({apiVersion: '2021-06-07'}) | ||
return source.getClient({apiVersion: 'v2025-02-07'}) |
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.
We soon want to bump the version used by all internal code, so I think this change is sensible, esp. considering we've had the above warning throughout the lifetime of v3
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 makes sense to me, I wonder if we would want to use here the DEFAULT_STUDIO_CLIENT_OPTIONS instead of 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.
Yes, will make a separate PR for it – would prefer a change like that to be subjected to a bit more testing :)
No changes to documentation |
@@ -161,6 +161,7 @@ export function _createAuthStore({ | |||
useCdn: false, | |||
...(token && {token}), | |||
withCredentials: true, | |||
perspective: 'raw', |
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 client created here is the basis of the client used throughout the Studio, and its config is inherited by client instances returned by useClient()
etc.
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.
💡
⚡️ Editor Performance ReportUpdated Tue, 11 Feb 2025 10:06:16 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
Component Testing Report Updated Feb 11, 2025 10:31 AM (UTC) ❌ Failed Tests (3) -- expand for details
|
Coverage Report
File Coverage
|
(meta: wrong ticket id, should've been sapp-2049)
Description
This explicitly uses
raw
as perspective unless overridden (e.g. by perspective stack)This change should be safe, given that raw is currently the default on existing API versions.
What to review
Does the change make sense? As of this PR, Studio should longer do
/query
requests without a perspective param.Testing
Everything should work as before
Notes for release
n/a - not user facing