User query response - #2508
Conversation
Co-authored-by: amirbiron <amirbiron@gmail.com>
Cursor Agent can help with this pull request. Just |
🧯 Dangerous deletes guard reportPolicy: see .cursorrules — dangerous deletions are blocked unless wrapped safely. Summary:
Flagged findings (file:line:snippet): Excluded matches (by path pattern) |
Co-authored-by: amirbiron <amirbiron@gmail.com>
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
⏱️ Performance report(No performance test durations collected. Mark tests with |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Increase default batch size and refine reporting for better migration management. Co-authored-by: amirbiron <amirbiron@gmail.com>
📖 Documentation PreviewThe documentation has been built successfully!
To view locally:
|
Uh oh!
There was an error while loading. Please reload this page.
✨ תיאור קצר
הוספנו שני אנדפוינטים חדשים לממשק הניהול (
/admin/fix-is-activeו-/admin/diagnose-slow-queries) כדי לפתור בעיית ביצועים קריטית של שאילתות איטיות. הבעיה נגרמת משימוש בדפוס$orשמונע שימוש יעיל באינדקסים, והפתרון הוא מיגרציה של מסמכים והחלפת דפוס השאילתה.📦 שינויים עיקריים
פירוט נקודות:
/admin/fix-is-activeהמאפשר בדיקה וביצוע מיגרציה של מסמכים בקולקציותcode_snippetsו-large_files. המיגרציה מוסיפה את השדהis_active: trueלמסמכים שחסר להם שדה זה, ומבוצעת בבאטצ'ים./admin/diagnose-slow-queriesהמספק אבחון מפורט של בעיית השאילתות האיטיות. האבחון כולל מצב אינדקסים, ספירת מסמכים ללאis_active, והשוואתexplainבין שאילתת ה-$or הבעייתית לשאילתה ישירה ומהירה.@admin_required.🧪 בדיקות
🧪 בדיקות נדרשות ב‑PR
📝 סוג שינוי
✅ צ'קליסט
services/register_jobs.py(כולל Callback/Trigger להפעלה ידנית — למשלcallback_name/trigger_funcלפי המבנה) כדי שיופיעו בדשבורדdocs/environment-variables.rstוגםservices/config_inspector_service.pydocs/webapp/theming_and_css.rst+FEATURE_SUGGESTIONS/theme_matrix.md🧩 השפעות/סיכונים
is_activeלאחר השלמת המיגרציה ועדכון דפוס השאילתות בקוד.🔗 קישורים
🧯 סיכון / החזרה לאחור (Rollback)
Note
Introduces admin tooling to resolve slow MongoDB queries by normalizing
is_activeand validating index usage.GET /admin/fix-is-activeto audit/migrateis_active: truefor missing documents incode_snippetsandlarge_files(batched), returning progress and next stepsGET /admin/diagnose-slow-queriesto report index state, counts of missingis_active, andexplaincomparisons for$orvs direct{is_active: true}queries with recommendationsGET /admin/force-index-creationto idempotently check/createactive_recent_idxoncode_snippets, return index list, and guide follow-up actions@admin_requiredand return JSON summariesWritten by Cursor Bugbot for commit 9b4a3e7. This will update automatically on new commits. Configure here.