fix: 3 weitere Router-Import-Fehler aus Refactoring
Some checks failed
Build + Deploy / build-admin-compliance (push) Successful in 13s
Build + Deploy / build-backend-compliance (push) Successful in 16s
Build + Deploy / build-ai-sdk (push) Successful in 8s
Build + Deploy / build-developer-portal (push) Successful in 7s
Build + Deploy / build-tts (push) Successful in 7s
Build + Deploy / build-document-crawler (push) Successful in 7s
Build + Deploy / build-dsms-gateway (push) Successful in 7s
CI / branch-name (push) Has been skipped
CI / guardrail-integrity (push) Has been skipped
CI / loc-budget (push) Failing after 13s
CI / go-lint (push) Has been skipped
CI / secret-scan (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / nodejs-build (push) Successful in 2m31s
CI / dep-audit (push) Has been skipped
CI / sbom-scan (push) Has been skipped
CI / test-go (push) Successful in 40s
CI / test-python-backend (push) Successful in 33s
CI / test-python-document-crawler (push) Successful in 25s
CI / test-python-dsms-gateway (push) Successful in 23s
CI / validate-canonical-controls (push) Successful in 19s
Build + Deploy / trigger-orca (push) Successful in 1m58s

dsfa_routes: fehlender List Import (typing)
evidence_routes: try-Block ohne except/finally (SyntaxError)
vvt_routes: fehlender VVTActivityDB Import

Erwartet: 41/41 sub-routers laden (vorher 37/41, dann 38/41)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-04-25 22:48:04 +02:00
parent 390d32a9cb
commit 753b8f32c7
3 changed files with 5 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ versions). Module-level helpers re-exported for legacy tests.
"""
import logging
from typing import Any, Optional
from typing import Any, List, Optional
from fastapi import APIRouter, Depends, Query
from pydantic import BaseModel

View File

@@ -541,6 +541,9 @@ def _update_risks(db: Session, *, source: str, control_id: str, ci_job_id: str,
findings=findings_detail,
)
return risk_update_result
except Exception:
return None
# ============================================================================
# CI/CD Evidence Collection

View File

@@ -37,6 +37,7 @@ from compliance.schemas.vvt import (
VVTOrganizationUpdate,
VVTStatsResponse,
)
from compliance.db.vvt_models import VVTActivityDB
from compliance.services.vvt_service import (
VVTService,
_activity_to_response, # re-exported for legacy test imports