Skip to content

[stable35] fix: show when the page has stopped hearing from the server - #1131

Merged
kesselb merged 1 commit into
stable35from
backport/1122/stable35
Sep 9, 2026
Merged

kesselb merged 1 commit into
stable35from
backport/1122/stable35

Conversation

@kesselb

@kesselb kesselb commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Manual backport of #1122

Both composables handled their errors and then threw the result away.
useStaticData computed `loading` and `error`, but SettingsAdmin
destructured only `data`, so both flags were dead code; useLiveData's catch
block was empty by design. Every failure therefore looked the same from the
outside, and none of them looked like a failure:

- a failed /data request left the pulsing skeletons on screen forever,
  with no error, no explanation and no way to retry short of reloading
- a server that had been unreachable for an hour was still polled every
  two seconds, with the charts showing their last values and nothing
  saying those values had stopped moving

For a page whose whole job is to report the health of the server, quietly
showing stale numbers or a loading animation is the worst of the available
failure modes: it looks healthy.

A failed /data request now says so and offers to try again. Once two polls
in a row have failed -- one is usually a blip worth riding out -- a warning
names the time the values were last current. The values themselves stay on
screen, which is still the right call; what changes is that the page no
longer implies they are live.

Polling now also backs off while requests are failing, doubling up to a
minute and returning to normal on the first success, so a server that is
struggling is not asked for the same numbers thirty times a minute.

Signed-off-by: Frank Karlitschek <frank.karlitschek@nextcloud.com>
Assisted-by: Claude Code:claude-opus-5
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@kesselb kesselb changed the title fix: show when the page has stopped hearing from the server [stable35] fix: show when the page has stopped hearing from the server Sep 9, 2026
@kesselb
kesselb merged commit 2e0a40b into stable35 Sep 9, 2026
37 of 38 checks passed
@kesselb
kesselb deleted the backport/1122/stable35 branch September 9, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant