Skip to content

fix: auto-recovered incidents in insights, disabled checks in status page rollup - #893

Merged
fclairamb merged 2 commits into
mainfrom
feat/todos-2026-11-15-2
Nov 15, 2026
Merged

fclairamb merged 2 commits into
mainfrom
feat/todos-2026-11-15-2

Conversation

@fclairamb

Copy link
Copy Markdown
Owner

Summary

  • Incident insights: incidents closed by a check recovering never recorded a resolution type, so they were counted as "other" and "auto-recovered" showed 0. The recovery path now records auto, and insights count a resolved incident with no type as auto (fixes past data with no migration).
  • Status pages: disabled checks keep their last status (often down) and were counted in the overall status and the "x of y operational" total. They are now left out of both.

Closes fclairamb/solidping-business#82
Closes fclairamb/solidping-business#83
Closes fclairamb/solidping-business#84

Follow-up (not done)

A check disabled while down still shows its red card on the status page; hiding it or showing it as disabled is a product decision.

🤖 Generated with Claude Code

fclairamb and others added 2 commits November 15, 2026 23:59
…b/solidping-business#82, fclairamb/solidping-business#83)

The incident insights page showed 0 auto-recovered incidents. The check
state machine's recovery path (resolveIncident, server/internal/handlers/
incidents/service.go) never wrote resolution_type, so every incident closed
by its check recovering kept NULL and landed in "other". It now writes
"auto" (row, in-memory incident and resolved-event payload), and insights
reads a NULL type on a resolved row as auto so past data is right without a
backfill. Tests: TestCheckRecoveryResolvesWithAutoType and
TestCompute_NullResolutionTypeCountsAsAuto, both failing before the fix.

Closes fclairamb/solidping-business#82
Closes fclairamb/solidping-business#83

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…olidping-business#84)

A status page with disabled checks read "System outage, 189 of 200
operational": a disabled check keeps the status it had when it was turned
off (often down), and enrichResourceInfo (server/internal/handlers/
statuspages/service.go) fed every check resource to RollupPageStatus. A
disabled check is now skipped there, so it neither sets the overall status
nor counts in the total, matching how group rollups already ignore disabled
members. Test: new disabled-check case in TestViewStatusPage_OverallStatus,
failing before the fix.

Closes fclairamb/solidping-business#84

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@fclairamb fclairamb added autopilot frozen Batch PR under review: takes only its own fixes, new work goes to the next batch automerge autorelease labels Nov 15, 2026
@fclairamb
fclairamb enabled auto-merge (squash) November 15, 2026 23:16
@fclairamb
fclairamb merged commit 450955d into main Nov 15, 2026
38 checks passed
@fclairamb
fclairamb deleted the feat/todos-2026-11-15-2 branch November 15, 2026 23:30
@codecov

codecov Bot commented Nov 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.72%. Comparing base (55775c6) to head (63e8dd0).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #893      +/-   ##
==========================================
+ Coverage   90.71%   90.72%   +0.01%     
==========================================
  Files        1370     1370              
  Lines      140850   140857       +7     
==========================================
+ Hits       127769   127795      +26     
+ Misses      13072    13053      -19     
  Partials        9        9              
Files with missing lines Coverage Δ
server/internal/handlers/incidents/service.go 87.79% <100.00%> (-0.26%) ⬇️
server/internal/handlers/statuspages/service.go 92.71% <100.00%> (+0.01%) ⬆️
server/internal/incidentinsights/insights.go 93.61% <100.00%> (ø)

... and 17 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

fclairamb added a commit that referenced this pull request Nov 15, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.50.2](v0.50.1...v0.50.2)
(2026-11-15)


### Bug Fixes

* auto-recovered incidents in insights, disabled checks in status page
rollup ([#893](#893))
([450955d](450955d))
* **deps:** update go.opentelemetry.io/otel/sdk/log to v1.47.0
([#889](#889))
([55775c6](55775c6))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge autopilot autorelease frozen Batch PR under review: takes only its own fixes, new work goes to the next batch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant