ReviewDecision domain model

This commit is contained in:
2026-04-26 00:24:02 +02:00
parent 5aa76af78c
commit 29e855e5b3
7 changed files with 130 additions and 0 deletions

View File

@@ -36,6 +36,16 @@ class AnalysisRun:
scanner_version: str
@dataclass(frozen=True)
class ReviewDecision:
id: int
repository_id: int
analysis_run_id: int | None
action: str
notes: str
created_at: str
@dataclass(frozen=True)
class ObservedFact:
id: int

View File

@@ -10,6 +10,7 @@ from repo_registry.core.models import (
ObservedFact,
Repository,
RepositoryAbilityMap,
ReviewDecision,
ScanSummary,
SearchResult,
)
@@ -112,6 +113,13 @@ class RegistryService:
def list_capabilities(self) -> list[CapabilitySummary]:
return self.store.list_capabilities()
def list_review_decisions(
self,
repository_id: int,
analysis_run_id: int | None = None,
) -> list[ReviewDecision]:
return self.store.list_review_decisions(repository_id, analysis_run_id)
def list_observed_facts(
self,
repository_id: int,