Stop a removed state pinning the freshness warning on, and make the whole Explorer day cell clickable (#204) #205
No reviewers
Labels
No labels
area:ai
area:ci-cd
area:notifications
area:observability
area:public-pages
backlog
bug
duplicate
enhancement
help wanted
invalid
question
security
type:decision
type:feature
type:infra
type:maintenance
type:security
v1.0.1
v1.1.0
v1.2.0
v1.3.0
v2.0.0
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rbrooks/WeatherBot!205
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/freshness-banner-and-explorer-day-target"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #204. Both items were reported by @rbrooks while checking rc5 on dev.
Freshness warning that says the data is 0 minutes old
Two defects combined:
nws_alerts:TXat 148 days old, which held the dashboard banner and the stale-product admin alert on permanently.Changes:
prune_nws_alert_freshness(active_states)inapp/services/observability.py, called frompoll_alerts_jobwith the states it is about to poll. It only touches thenws_alertscategory. With no monitored states it clears all of that category, which is also what keeps the heartbeat watchdog quiet when nothing is being polled.dashboard_freshness_summaryreports the age of the degraded feed (the oldest, if several).On dev this needs no manual cleanup: the first poll after deploy removes the orphan row.
Freshness samples for a pruned state are left to age out on the existing 14-day retention.
Explorer calendar click target
Only the day number was a link. The link now stretches over the whole cell (
a::afterwithinset: 0inside aposition: relativecell), and the cell gets hover and keyboard-focus styling. Markup is unchanged, so there is still exactly one link per day.Verification
New tests: banner shows the stale feed's age beside a fresh sibling; prune removes the orphan and keeps the monitored state and other categories; prune with no monitored states;
poll_alerts_jobprunes;poll_alerts_jobstill fetches when the prune raises.Not verified: the click target has not been exercised in a browser. No browser is available in this session, so it wants a look on dev after the next release candidate.
🤖 Generated with Claude Code