mirror of
https://github.com/morluto/rea.git
synced 2026-12-04 05:51:06 +00:00
refactor(evidence): derive artifact comparison status from counts (#16531)
This commit is contained in:
1 parent
471c94c908
commit
e32bb0e3ac
1 file changed
+5
-9
@@ -211,17 +211,13 @@ export const compareArtifacts = (
|
||||
status:
|
||||
!leftComplete || !rightComplete
|
||||
? "truncated"
|
||||
: changes.some(
|
||||
({ classification }) => classification === "contradiction",
|
||||
)
|
||||
: summary.contradiction > 0
|
||||
? "contradiction"
|
||||
: !fullyCovered
|
||||
: !fullyCovered || summary.unknown > 0
|
||||
? "unknown"
|
||||
: changes.some(({ classification }) => classification === "unknown")
|
||||
? "unknown"
|
||||
: changes.length === 0
|
||||
? "unchanged"
|
||||
: "changed",
|
||||
: changes.length === 0
|
||||
? "unchanged"
|
||||
: "changed",
|
||||
left_manifest_id: left.inventory.manifest.manifest_id,
|
||||
right_manifest_id: right.inventory.manifest.manifest_id,
|
||||
summary,
|
||||
|
||||
Reference in new issue
Block a user