Commit 14db2b8
authored
fix(review): compute public-stats accuracyPct from own-ledger merged/closed only (#7474)
getPublicStats computed the global totals.accuracyPct from the Orb-fleet-folded
totals.merged/closed (denominator) against the own-ledger-only totals.reversed
(numerator). getOrbGlobalStats has no reversal concept, so the denominator grew
with every newly registered install while the numerator stayed own-ledger-scoped,
trending the published accuracy toward 100% independent of real reversal behavior.
Snapshot the pre-fold own-ledger merged/closed (beside the existing ownLedgerReviewed
snapshot) and compute the global accuracyPct from those, so numerator and denominator
are drawn from the same population (option 1 of the issue). The fleet fold still
inflates reviewed/handled/minutesSaved, which have no numerator/denominator pairing;
accuracyPct's formula and byProject's per-project values are unchanged. Adds a
regression test asserting a huge Orb-fleet fold no longer pulls accuracyPct toward 100.
Closes #74491 parent 4314944 commit 14db2b8
2 files changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
380 | 387 | | |
381 | 388 | | |
382 | 389 | | |
| |||
398 | 405 | | |
399 | 406 | | |
400 | 407 | | |
401 | | - | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
402 | 412 | | |
403 | 413 | | |
404 | 414 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
314 | 336 | | |
315 | 337 | | |
316 | 338 | | |
| |||
0 commit comments