hub(D53): held apps reach the operator — mirror, Held apps list (host + Hosts page), reminder after the grace
gates / gates (push) Successful in 1m58s

app_held / app_hold_cleared allow-listed and operator-only; handleEvent mirrors them in held_apps; HeldAppsChecker
sends ONE app_held_reminder (warning, operator-only, per-app cooldown) after the grace per reason (6 h / 1 d / 3 d),
then weekly; recorded before sending; stale rows not reminded; the hub never clears a hold. Test-only
alerting.held_app_grace_override. TestD53_* in api/monitor/notify/web, red-proved by six mutations. Commit only.
This commit is contained in:
admin committed 2026-10-26 18:25:00 +01:00
1 parent ecd82abab8
commit 7e57e824a2
27 files changed
+935 -2

No files matched your search

+33
View File
@@ -34,6 +34,39 @@
</div>
{{end}}
<!-- Held apps across the fleet (D53, `08` §10). The hub never clears a hold; each row links to its host. -->
<section class="card" id="held-apps" style="margin-bottom: 1.5rem; padding: 0; overflow: hidden;">
<h2 style="padding: 1.25rem 1.25rem 0.5rem; margin-top: 0;">Held apps</h2>
{{if .HeldApps}}
<table class="data-table">
<thead>
<tr>
<th>Customer</th>
<th>App</th>
<th>Reason</th>
<th>Since</th>
<th>Who may clear it</th>
</tr>
</thead>
<tbody>
{{range .HeldApps}}
<tr data-held-app="{{.CustomerID}}/{{.Stack}}">
<td>{{if .HostID}}<a href="/hosts/{{.HostID}}#held-apps">{{.CustomerID}}</a>{{else}}{{.CustomerID}}{{end}}</td>
<td><code>{{.Stack}}</code></td>
<td><span class="severity-badge severity-warning">{{.Reason}}</span>{{if .Stale}} <span class="text-muted">(not confirmed for 2 days)</span>{{end}}</td>
<td>{{timeAgo .Since}}</td>
<td>{{.WhoClears}}</td>
</tr>
{{end}}
</tbody>
</table>
{{else}}
<div class="empty-state" style="border: none;">
<p>No app is held on any box.</p>
</div>
{{end}}
</section>
{{if .Unclaimed}}
<section class="card" style="margin-bottom: 1.5rem; border-color: var(--warn);">
<h2 style="margin-top: 0;">Unclaimed appliances <span class="text-muted" style="font-size: 0.8em; font-weight: normal;">(booted from the generic ISO, awaiting a bind)</span></h2>