mirror of
https://github.com/morluto/rea.git
synced 2026-11-16 11:43:20 +00:00
fix(javascript): report version-comparison coverage unknown when a source graph cannot tell (#11206)
* fix(javascript): report version-comparison coverage unknown when a source graph cannot tell * refactor(javascript): name the unavailable-graph coverage mapping once * fix(javascript): give the version change graph and its edges the same unknown coverage * fix(javascript): report export-shape comparison coverage unknown when a source graph cannot tell (#11218) * fix(javascript): report export-shape comparison coverage unknown when a source graph cannot tell * test(javascript): keep unknown export-shape coverage beside a truncated projection * fix(javascript): read runtime-reconciliation input coverage once and report unknown when a static graph cannot tell (#11230) * fix(javascript): read runtime-reconciliation input coverage once and report unknown when a static graph cannot tell * fix(javascript): keep a known input truncation beside unknown reconciliation coverage * fix(javascript): report export-shape source omission counts unknown when a side has no projection (#11261) compare_export_shapes reported left/right_omitted_fields and omitted_property_coverage as 0 for a side whose export selection recovered no return-shape projection (missing, ambiguous or unavailable), while the sibling source_omitted_variants already reported null. Add Known<T> (src/domain/known.ts) and read each side's source coverage once through it; the counts are now null (unknown) with a limitation naming why. The runtime-reconciliation graph's omission sum and its parallel 'omissions known' flag become one Known<number> via sumKnownCounts (no output change).
This commit is contained in:
1 parent
8b7829e385
commit
90ce8bae4a
15 files changed
+665
-169
No files matched your search
@@ -285,7 +285,16 @@ export const javascriptRuntimeReconciliationResultSchema = z.strictObject({
|
||||
limitation: nonEmptyTextSchema,
|
||||
}),
|
||||
coverage: z.strictObject({
|
||||
status: z.enum(["complete-within-inputs", "partial", "truncated"]),
|
||||
/**
|
||||
* `unknown` when a static graph's coverage is unknown or unavailable;
|
||||
* `truncated` and `partial` are known gaps.
|
||||
*/
|
||||
status: z.enum([
|
||||
"complete-within-inputs",
|
||||
"partial",
|
||||
"truncated",
|
||||
"unknown",
|
||||
]),
|
||||
truncated: z.boolean(),
|
||||
omitted_runtime_entities: z.int().min(0),
|
||||
omitted_reconciliation_items: z.int().min(0),
|
||||
|
||||
Reference in new issue
Block a user