ReviewDecision domain model
This commit is contained in:
parent
5aa76af78c
commit
29e855e5b3
7 changed files with 130 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue