fix: clarify repo: filter usage in search assist syntax description#1045
fix: clarify repo: filter usage in search assist syntax description#1045
Conversation
- Updated repo: filter description to explicitly state it should only be used to limit which repositories are searched, not for content searches - Added IMPORTANT note to distinguish between repo filter vs content search - Added 3 new examples showing correct usage: - Terraform files referencing deployment names (content search) - Files mentioning a service name (content search) - Python files in a specific repo using requests (repo + content) Fixes the issue where AI Search Assist incorrectly used repo: filter when users wanted to search for content containing specific keywords. Example: - User query: 'Find repos containing Terraform pertaining to glennbot' - Before: lang:Terraform repo:(glennbot|glenn-bot) (wrong - filters by repo name) - After: lang:Terraform (glennbot|glenn-bot) (correct - searches content) Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughDocumentation updates clarifying that the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Co-authored-by: Michael Sukkarieh <msukkari@users.noreply.github.com>
Summary
This PR fixes an issue where the AI Search Assistant incorrectly uses the
repo:filter when users want to search for content containing specific keywords.Problem:
lang:Terraform repo:(glennbot|glenn-bot)- filters by repository namelang:Terraform (glennbot|glenn-bot)- search for content within filesSolution:
repo:filter description to explicitly state it should only be used to limit which repositories are searched, not for content searchesChanges
packages/queryLanguage/src/syntaxDescription.ts: Enhanced documentation for therepo:filter with clarifying notes and examplesTesting
Fixes #762
Linear Issue: SOU-762
Summary by CodeRabbit
Bug Fixes
repo:filters when searching file contents.Documentation