fix: restrict log retrieval to superusers#13873
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughThe log endpoints now require a superuser dependency for both ChangesLog access superuser requirement
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 9✅ Passed checks (9 passed)
✨ 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 |
✅ Test Coverage AdvisorNo source changes detected without accompanying tests. Thanks for keeping coverage up! 🎉
|
|
Build successful! ✅ |
|
Caution Review failedAn error occurred during the review process. Please try again later. ✨ Finishing Touches🧪 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-1.10.2 #13873 +/- ##
=================================================
Coverage ? 58.70%
=================================================
Files ? 2306
Lines ? 220278
Branches ? 33042
=================================================
Hits ? 129325
Misses ? 89473
Partials ? 1480
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Summary
/logsand/logs-streamValidation
uv run pytest src/backend/tests/unit/api/test_log_router.py -quv run pytest src/backend/tests/unit/test_chat_endpoint.py::test_private_job_id_blocked_on_public_events_endpoint src/backend/tests/unit/test_chat_endpoint.py::test_private_job_id_blocked_on_public_cancel_endpoint -quv run ruff check src/backend/base/langflow/api/log_router.py src/backend/tests/unit/api/test_log_router.pygit diff --checkSummary by CodeRabbit
Bug Fixes
Tests