(feature) Add staff updater page #73

Merged
parkel merged 1 commits from issue-39-updater-ui into master 2026-05-28 22:11:07 +02:00
Owner

Summary

  • Add a staff-only /updater/ page for production update operations.
  • Show installed version, git branch, commit, describe output, app directory, configured remote, and update command.
  • Support optional Gitea release checks via POBSYNC_UPDATE_RELEASES_URL.
  • Add actions for git fetch --tags --prune, fast-forward-only git pull, and the configured native updater command.
  • Add updater env defaults to the installer and env example.
  • Document updater configuration and sudoers expectations in the README.
  • Cover updater status, release checks, command actions, nav visibility, and detached checkout handling with tests.

Tests

  • .venv/bin/python manage.py test src.pobsync_backend --verbosity 2
  • .venv/bin/python manage.py check
  • git diff --check

Closes #39

## Summary - Add a staff-only `/updater/` page for production update operations. - Show installed version, git branch, commit, describe output, app directory, configured remote, and update command. - Support optional Gitea release checks via `POBSYNC_UPDATE_RELEASES_URL`. - Add actions for `git fetch --tags --prune`, fast-forward-only git pull, and the configured native updater command. - Add updater env defaults to the installer and env example. - Document updater configuration and sudoers expectations in the README. - Cover updater status, release checks, command actions, nav visibility, and detached checkout handling with tests. ## Tests - `.venv/bin/python manage.py test src.pobsync_backend --verbosity 2` - `.venv/bin/python manage.py check` - `git diff --check` Closes #39
parkel added 1 commit 2026-05-28 22:11:02 +02:00
Add a Django updater view for checking configured Gitea releases, inspecting
the installed git checkout, fetching tags, pulling the current branch, and
running the configured native systemd update command.

Document the updater environment settings and keep the page staff-only so
readonly status users cannot trigger deployment actions.
parkel merged commit a61e3d8302 into master 2026-05-28 22:11:07 +02:00
parkel deleted branch issue-39-updater-ui 2026-05-28 22:11:07 +02:00
Sign in to join this conversation.