generated from coulomb/repo-seed
merge-duplicates slice and did a first polish
This commit is contained in:
@@ -394,6 +394,102 @@ class RegistryService:
|
||||
self.store.update_repository_status(repository_id, "reviewing")
|
||||
return self.store.get_candidate_graph(repository_id, analysis_run_id)
|
||||
|
||||
def merge_candidate_ability(
|
||||
self,
|
||||
repository_id: int,
|
||||
analysis_run_id: int,
|
||||
source_ability_id: int,
|
||||
*,
|
||||
target_ability_id: int,
|
||||
notes: str = "",
|
||||
) -> CandidateGraph:
|
||||
self.store.merge_candidate_ability(
|
||||
repository_id,
|
||||
analysis_run_id,
|
||||
source_ability_id,
|
||||
target_ability_id,
|
||||
)
|
||||
self.store.create_review_decision(
|
||||
repository_id,
|
||||
analysis_run_id,
|
||||
action="merge_candidate_ability",
|
||||
notes=notes,
|
||||
)
|
||||
self.store.update_repository_status(repository_id, "reviewing")
|
||||
return self.store.get_candidate_graph(repository_id, analysis_run_id)
|
||||
|
||||
def merge_candidate_capability(
|
||||
self,
|
||||
repository_id: int,
|
||||
analysis_run_id: int,
|
||||
source_capability_id: int,
|
||||
*,
|
||||
target_capability_id: int,
|
||||
notes: str = "",
|
||||
) -> CandidateGraph:
|
||||
self.store.merge_candidate_capability(
|
||||
repository_id,
|
||||
analysis_run_id,
|
||||
source_capability_id,
|
||||
target_capability_id,
|
||||
)
|
||||
self.store.create_review_decision(
|
||||
repository_id,
|
||||
analysis_run_id,
|
||||
action="merge_candidate_capability",
|
||||
notes=notes,
|
||||
)
|
||||
self.store.update_repository_status(repository_id, "reviewing")
|
||||
return self.store.get_candidate_graph(repository_id, analysis_run_id)
|
||||
|
||||
def merge_candidate_feature(
|
||||
self,
|
||||
repository_id: int,
|
||||
analysis_run_id: int,
|
||||
source_feature_id: int,
|
||||
*,
|
||||
target_feature_id: int,
|
||||
notes: str = "",
|
||||
) -> CandidateGraph:
|
||||
self.store.merge_candidate_feature(
|
||||
repository_id,
|
||||
analysis_run_id,
|
||||
source_feature_id,
|
||||
target_feature_id,
|
||||
)
|
||||
self.store.create_review_decision(
|
||||
repository_id,
|
||||
analysis_run_id,
|
||||
action="merge_candidate_feature",
|
||||
notes=notes,
|
||||
)
|
||||
self.store.update_repository_status(repository_id, "reviewing")
|
||||
return self.store.get_candidate_graph(repository_id, analysis_run_id)
|
||||
|
||||
def merge_candidate_evidence(
|
||||
self,
|
||||
repository_id: int,
|
||||
analysis_run_id: int,
|
||||
source_evidence_id: int,
|
||||
*,
|
||||
target_evidence_id: int,
|
||||
notes: str = "",
|
||||
) -> CandidateGraph:
|
||||
self.store.merge_candidate_evidence(
|
||||
repository_id,
|
||||
analysis_run_id,
|
||||
source_evidence_id,
|
||||
target_evidence_id,
|
||||
)
|
||||
self.store.create_review_decision(
|
||||
repository_id,
|
||||
analysis_run_id,
|
||||
action="merge_candidate_evidence",
|
||||
notes=notes,
|
||||
)
|
||||
self.store.update_repository_status(repository_id, "reviewing")
|
||||
return self.store.get_candidate_graph(repository_id, analysis_run_id)
|
||||
|
||||
def add_ability(
|
||||
self,
|
||||
repository_id: int,
|
||||
|
||||
Reference in New Issue
Block a user