Respond to github configuration issues - #1890
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) |
⏱️ Performance report(No performance test durations collected. Mark tests with |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Uh oh!
There was an error while loading. Please reload this page.
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.
✨ תיאור קצר
תיקנו את ולידציית קבצי הקונפיגורציה (כמו
alerts.yml) כדי לטפל נכון במספרים שלמים ולספק הודעות שגיאה ברורות יותר. בנוסף, שיפרנו את ממשק המשתמש כך שיציג את כל רשימת בעיות הקונפיגורציה במקום הודעה מקוצרת.📦 שינויים עיקריים
פירוט נקודות:
pyyaml==6.0.2ל־requirements/base.txtו־requirements/minimal.txtלטיפול בפענוח YAML.alerts.yml,error_signatures.yml,image_settings.yaml) ב־webapp/config_radar.pyלזיהוי כשלים בפענוח YAML/JSON והצגת הודעות שגיאה מפורטות.webapp/templates/settings.htmlלהצגת רשימה מלאה וממוספרת של כל בעיות הוולידציה, במקום הודעת "ועוד בעיות נוספות...".tests/test_config_radar_api.pyלוודא שהמערכת מדווחת נכון על חוסר במודולPyYAML.🧪 בדיקות
test_config_radar_api.pyהמדמה חוסר ב־PyYAMLומוודא שהודעת השגיאה המתאימה מוצגת.python3 -m pytest tests/test_config_radar_api.pyלאחר התקנת התלויות.🧪 בדיקות נדרשות ב‑PR
📝 סוג שינוי
✅ צ'קליסט
🧩 השפעות/סיכונים
🔗 קישורים
🧯 סיכון / החזרה לאחור (Rollback)
Note
Strengthens YAML/JSON parsing and error reporting for Config Radar, updates UI to show full numbered issues, adds PyYAML dependency, and includes a test for missing PyYAML.
_parse_yaml_or_jsonto return(data, issue)with explicit YAML/JSON error messages; handle missingPyYAMLgracefully._load_mappingto validation output; improve integer coercion/validation flow untouched elsewhere.alerts.yml,error_signatures.yml,image_settings.yamlinwebapp/config_radar.py.webapp/templates/settings.html, display full, numbered validation issues with total count and accessibility hint (aria-live), plus minor styling tweaks for.radar-issues.tests/test_config_radar_api.py::test_config_radar_reports_missing_yamlto verify error messaging whenPyYAMLis unavailable.pyyaml==6.0.2torequirements/base.txtandrequirements/minimal.txt.Written by Cursor Bugbot for commit ac53999. This will update automatically on new commits. Configure here.