fix: mark admin/platform queries as SVC-005 exceptions

These queries are intentionally not vendor-scoped:
- inventory_service: get_vendors_with_inventory_admin (admin cross-vendor)
- background_tasks_service: get_running_test_runs (platform-level)
- marketplace_product_service: get_inventory_info (admin/internal)
- feature_service: Feature query (platform-level, not vendor-scoped)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-31 22:03:50 +01:00
parent cd4300039d
commit f063d21ab0
4 changed files with 4 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ class BackgroundTasksService:
def get_running_test_runs(self, db: Session) -> list[TestRun]:
"""Get currently running test runs"""
# noqa: SVC-005 - Platform-level, TestRuns not vendor-scoped
return db.query(TestRun).filter(TestRun.status == "running").all()
def get_import_stats(self, db: Session) -> dict: