Skip to content

fix(diagnostics): preserve sufficient coverage across restart gaps - #705

Merged
nixuuu merged 1 commit into
devfrom
fix/diagnostics-range-coverage
Nov 14, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/diagnostics-range-coverage

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Diagnostics marked a computer with 14 of 15 minutes of coverage as “Not enough data” whenever any measurement had ever been dropped. Restore can legitimately shed older SQL details within its memory allowance; those lifetime drops incorrectly affected every later range.

Use 75% coverage of the selected range for sufficiency. Show partial measurements and suspended checks separately, with bounded reason codes and expandable gap times/durations. Attribute restored-history eviction to the evicted minute, expire losses with the selected window, and persist genuine loss metadata through minute/hour rollups. Restarting the gateway preserves the selected range and its saved measurements. The four reported pickers already use the kit's custom button/listbox Select; no native selects were found.

Fixes: #505
Related: #680

Validation:

  • Passed install, gen:check, typecheck, lint, format:check, web build and diff whitespace checks, using nice and /var/tmp for temporary files. All GitHub checks are green.
  • Focused gateway/history/hourly/SQL suites passed (33 tests), including a real gateway restart with 60 minutes of persisted data and a 30-second gap, retained sufficiency despite old-history shedding, persisted SQL-loss reasons, and steady RPC/API collection with no limits flag. Updated completeness/gateway suites passed again (13 tests).
  • Additional linked-computer/worker suites initially passed 16 tests with one offline-status readiness timeout. Rerunning the affected linked-computer suite passed all 7 tests; that suite also passed in CI on this head.
  • Completed remote browser review in light/dark themes at desktop and 390px phone widths. Persisted coverage above 75% displayed “No issues found” without a limits warning; expanded gaps showed measured durations/times. A persisted SQL-buffer loss displayed “Partial data” with its database-specific reason while retaining statistics. Long computer names wrapped without horizontal overflow. All four pickers rendered buttons/listboxes, with zero native select elements; desktop popovers and phone sheets worked. Linked computers were covered by integration tests rather than the single-home browser fixture.
  • Removed the review stack, container, browser tab, tunnel and temporary files after review.

Copy audit (§8):

  • “Some measurements are missing. Limits were reached.” → specific closed reasons (memory, database buffer, per-call series, coverage, history, collection, saved history, links, response size or validation) plus “Other measurements remain available.” Explains which measurements are affected and why; older computers without reason metadata receive an honest fallback.
  • “Not enough data” at adequate coverage → “No issues found”, “Partial data” or “Some checks are pending”, according to evidence. The insufficient-data label remains below 75%.
  • “No data during N periods.” → expandable period count plus “Gap of {duration} at {time}.” Shows measured gaps without inventing an update cause.
  • Sentence case, short sentences, English glossary, no duplicated facts, humour or colour-only meaning. No new action/confirmation/empty-state copy. Desktop/phone, light/dark, typical and long-name checks completed.

@nixuuu
nixuuu marked this pull request as ready for review November 14, 2026 11:41
@nixuuu
nixuuu merged commit 0fbff00 into dev Nov 14, 2026
11 checks passed
@nixuuu
nixuuu deleted the fix/diagnostics-range-coverage branch November 14, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant