-
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
fix(sanity): allow global search "contains" filter to match inside words #7572
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
No changes to documentation |
Component Testing Report Updated Oct 2, 2024 10:12 AM (UTC) ✅ All Tests Passed -- expand for details
|
⚡️ Editor Performance ReportUpdated Wed, 02 Oct 2024 10:18:40 GMT
Detailed information🏠 Reference resultThe performance result of
🧪 Experiment resultThe performance result of this branch
📚 Glossary
|
c48024a
to
d4be476
Compare
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 to me, tested it in the dev studio and it now returns accurate results. Thanks @juice49 !
Description
This branch adjusts the global search "contains" filter to allow matches inside words. Although this filter is named
stringMatches
internally, it is publicly named "contains", which suggests it should match inside words.The match expression is wrapped in wildcard
*
operators to achieve this.Example: searching for documents by title containing "blo"
What to review
Testing
packages/sanity/src/core/studio/components/navbar/search/definitions/operators/stringOperators.test.ts
.Notes for release