-
Notifications
You must be signed in to change notification settings - Fork 446
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(sanity): add release layering support to groq2024
search strategy
#8251
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
No changes to documentation |
Component Testing Report Updated Jan 15, 2025 12:16 AM (UTC) ✅ All Tests Passed -- expand for details
|
⚡️ Editor Performance ReportUpdated Wed, 15 Jan 2025 00:18:18 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
3918f8e
to
1bf9f56
Compare
98e9a5f
to
183a542
Compare
183a542
to
8226ef8
Compare
8226ef8
to
014db7b
Compare
@@ -127,11 +130,27 @@ export function createSearchQuery( | |||
.map((s) => `// ${s}`) | |||
.join('\n') | |||
|
|||
let activePerspective: string | string[] | undefined |
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.
COULD:
let activePerspective: string | string[] | undefined | |
let activePerspective: SearchOptions['perspective'] |
Or this does make me wonder if the type of SearchOptions.perspective
could be somewhat more narrowly scoped than just string | string[]
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.
It's funny you mention that. I'm currently making some changes in another branch to try and unify this a bit. @sanity/client
provides a dedicated ClientPerspective
type, but we tend to simply use string[]
in a lot of places.
IMO: not necessarily worth addressing in this branch, but something we should shore up across the codebase. Definitely a good point.
Description
This branch adds release layering support to the
groq2024
search strategy, matching the changes we've already made to the current default search strategy to support release layering.What to review
Testing
groq2024
search strategy is active (e.g. using Test Studio). The GROQ query with the pragmafindability-source: list
should include aperspective
parameter consisting of a CSV of release ids to layer.