fix(qa): 表头筛选并统一未覆盖正确性待确认
build / build (push) Successful in 1m17s

修正筛选入口位置:五项条件在表头就地选择,保持完整集筛选与无感续载。
统一固定规则:未覆盖一律待确认,原问答/人工模型证据不改写,已覆盖仍保留点踩优先。
验证:行为红绿、前端/Go全套及隔离PostgreSQL全mirror竞态通过;完整本地门禁与原生备份真实恢复通过。
This commit is contained in:
姚章浩
2026-10-25 13:58:08 +08:00
parent 80d5078363
commit 09b2c1dce5
26 changed files with 378 additions and 119 deletions
@@ -84,7 +84,7 @@ func TestMasterLiveCumulativeWeeksUseWholeLedgerAndWeeklyStrictRates(t *testing.
if !ok || len(points) != 4 {
t.Fatal("missing current master cumulative W40-W43; frozen snapshots are not a substitute")
}
expected := [][5]float64{{2, 2, 2, 1, 2}, {3, 2, 3, 2, 3}, {4, 2, 3, 2, 4}, {5, 3, 4, 2, 4}}
expected := [][5]float64{{2, 2, 2, 1, 2}, {3, 2, 3, 1, 2}, {4, 2, 3, 1, 3}, {5, 3, 4, 1, 3}}
for i, item := range points {
point := item.(map[string]any)
cov := point["coverage"].(map[string]any)
@@ -108,7 +108,7 @@ func TestMasterLiveCumulativeWeeksUseWholeLedgerAndWeeklyStrictRates(t *testing.
if e != nil {
t.Fatal(e)
}
if len(fresh.CumulativeWeeks) != 4 || fresh.CumulativeWeeks[0].Correctness.Numerator != 0 || fresh.CumulativeWeeks[1].Correctness.Numerator != 1 || fresh.CumulativeWeeks[3].Correctness.Numerator != 1 {
if len(fresh.CumulativeWeeks) != 4 || fresh.CumulativeWeeks[0].Correctness.Numerator != 0 || fresh.CumulativeWeeks[1].Correctness.Numerator != 0 || fresh.CumulativeWeeks[3].Correctness.Numerator != 0 {
t.Fatal("later source feedback did not update every affected cumulative week")
}
filtered, e := s.ReadMasterDashboard(ctx, dobotaiops.RecordQuery{Window: dobotaiops.Window{TenantKey: s.tenant, Start: start, End: end}, Keyword: "\n"})