Repository navigation
Refresh only what changed, and skip annotations for service accounts - #289
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@claude please review. |
|
Claude finished @coryodaniel's task in 33s —— View job Review of #289: refresh only what changed, skip annotations for service accountsI read the diff against Verdict: The design is sound and I found nothing blocking. The status query selects the same sub-fields as Worth a look
Nits
TestsThe status merge and the annotation gating are covered. I'd add one case to |
…vents that land during a read Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Fixed in ea1cc0b, with #286 merged in:
No change:
@claude please review. |
|
Claude finished @coryodaniel's task in 2m 4s —— View job Review of #289 after ea1cc0bI read Verdict: All three fixes do what the comment says, and I found nothing blocking.
Things I checked
Nits
No change requested for the full-read triggers. Keeping them as described is reasonable. |
Each poll re-reads the last 30 seconds, so a busy org filled the read with events already shown and the footer said so on every poll. A full read also carries the newest status, so it clears a pending status read. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No change: @claude please review. |
|
Claude finished @coryodaniel's task in 2m 14s —— View job Review of #289 after f1abfdbI read the Verdict: Both changes are correct and I found nothing blocking. Cut-short toast (
Nits
No changes requested. |
|
Folded into #272. |
Stacked on #286.
Lighter on the API, from the platform team's notes.
Annotations and service accounts. A service account never sends
alphaAnnotations: the dashboard asksViewer.Getonce per session and skips annotations when the viewer isKindServiceAccount. For anyone else, a refusal (403, FORBIDDEN, or "permission"/"service account" in the message) stops further calls for the session. Refusals show no error. The legend's red "need a personal access token" line is gone, and other failures still get the muted note.What a refresh reads.
--refreshtick (default 30s)dashboardEnvironmentsfor each ring, plus runtimes, applications, annotationsdashboardEnvironmentStatusfor the environment ids already in viewinstance.created,instance.deleted,instance.moved,connection.created,connection.deletedin view; anyremote_reference.*orenvironment_default.*r, after approve or deployThe status query returns each instance's status, deployed version, available upgrade, firing alarm count, alarms, bundle, latest provision and latest deployment. It's merged into a copy of the snapshot. Environments, dependencies and instances it doesn't already know are ignored, so the graph keeps its shape and nothing on the map moves. The full query keeps its name,
dashboardEnvironments, so call counts compare by operation. Cost stays in the full read, since it's last month's figure. Both queries go through the complexity retry. The recorded and tutorial APIs serve the status query from their data.Forks (
environment.*) andlink.*events name no environment, so they trigger nothing. A new fork shows after a refocus orr.🤖 Generated with Claude Code