v2.0.16 — oumta-dashboard: green dot for rollout-only clusters
Clusters with no state-transition events (e.g. a clean rollout that didn't cause a degradation) now show a green dot instead of blue. Rationale: absence of a transition means the workload stayed in its existing state — the rollout went through unscathed, which is the healthy outcome a reader is scanning for. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
bd5a462a1e
commit
985cd39b2a
2 files changed
+6
-4
No files matched your search
+1
-1
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
|
||||
define('APP_NAME', 'hyprcrd');
|
||||
define('APP_VERSION', '2.0.15');
|
||||
define('APP_VERSION', '2.0.16');
|
||||
|
||||
// APP_DEBUG: gates verbose error responses (curl traces, upstream bodies).
|
||||
// Off by default; enable via env for local troubleshooting only.
|
||||
|
||||
@@ -295,8 +295,10 @@ function dominantSev(events) {
|
||||
* workload ended up after the cluster, not the worst thing that
|
||||
* happened inside it — so a cluster that ends in "-> healthy" shows a
|
||||
* green dot even if it contains degraded/warning events along the way.
|
||||
* Returns null when no state-change event is present; callers fall
|
||||
* back to dominantSev in that case (e.g. rollout-only clusters). */
|
||||
* A cluster without any state transition (rollouts or image changes
|
||||
* that didn't flip state) counts as "uneventful" → also green, since
|
||||
* the absence of a transition means the workload stayed in whatever
|
||||
* state it was in. */
|
||||
function clusterOutcomeSev(events) {
|
||||
for (const e of events) {
|
||||
const m = /->\s*(\w+)\s*$/.exec(e.message || '');
|
||||
@@ -307,7 +309,7 @@ function clusterOutcomeSev(events) {
|
||||
case 'unavailable': return 'error';
|
||||
}
|
||||
}
|
||||
return null;
|
||||
return 'recovered';
|
||||
}
|
||||
|
||||
function sameDay(a, b) {
|
||||
|
||||
Reference in new issue
Block a user