Skip to content

ADFA-5026: add /system/dashboard/update-check REST endpoint - #341

Merged
luisguzman-adfa merged 1 commit into
mainfrom
feat/ADFA-5026-restapi-update-check-endpoint
Aug 5, 2026
Merged

luisguzman-adfa merged 1 commit into
mainfrom
feat/ADFA-5026-restapi-update-check-endpoint

Conversation

@luisguzman-adfa

Copy link
Copy Markdown
Collaborator

New GET endpoint on the dash-node REST core that reports whether a newer build is available: installed version from package.json, latest from the mainline remote (git fetch origin main + git show
origin/main:static/dashboard/package.json), plus an updateAvailable flag.

  • Hard per-command timeouts; 503 (not 500) when the remote is unreachable so the app keeps its last-known state.
  • Skips the fetch while a rebuild owns the clone (avoids a git-lock race).
  • Returns a generic error string; git stderr (which can echo the clone's auth) stays server-side in the log.

New GET endpoint on the dash-node REST core that reports whether a newer
build is available: installed version from package.json, latest from the
mainline remote (git fetch origin main + git show
origin/main:static/dashboard/package.json), plus an updateAvailable flag.

- Hard per-command timeouts; 503 (not 500) when the remote is unreachable
  so the app keeps its last-known state.
- Skips the fetch while a rebuild owns the clone (avoids a git-lock race).
- Returns a generic error string; git stderr (which can echo the clone's
  auth) stays server-side in the log.
@luisguzman-adfa
luisguzman-adfa merged commit 40658ee into main Aug 5, 2026
4 checks passed
@luisguzman-adfa
luisguzman-adfa deleted the feat/ADFA-5026-restapi-update-check-endpoint branch August 5, 2026 14:31
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