Skip to content

Feat/restore from sqlite backup - #1

Merged
adarshdigievo merged 3 commits into
mainfrom
feat/restore-from-sqlite-backup
Oct 1, 2026
Merged

adarshdigievo merged 3 commits into
mainfrom
feat/restore-from-sqlite-backup

Conversation

@adarshdigievo

Copy link
Copy Markdown
Member
  • Add restore option from SQLite backups
  • Add DB storage stats and a cleanup option in settings

Copilot AI balanced review requested due to automatic review settings October 1, 2026 09:27

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Restore validation can create an unusable account, and deletion notices can inaccurately attribute naturally absent responses.

Review effort: Balanced
Findings: 1 High severity · 1 Medium severity

Open (2)
What changed in this PR

Adds SQLite backup restoration and storage management, including cleanup controls and omission notices.

Changes:

  • Adds validated, concurrency-safe backup restoration.
  • Adds storage metrics, cleanup APIs, and settings UI.
  • Adds tests, documentation, and a 1.0.0 version bump.
File Description
uv.lock Updates package version.
tests/​test_storage.py Tests storage metrics and cleanup.
tests/​test_storage_browser.py Tests storage UI workflows.
tests/​test_backups.py Tests backup and restore behavior.
tests/​test_backups_browser.py Tests restore UI workflows.
src/​apptrail/​worker.py Enables worker restart after maintenance.
src/​apptrail/​storage.py Implements usage measurement and cleanup.
src/​apptrail/​static/​style.css Styles storage and restore controls.
src/​apptrail/​static/​insights-ui.js Displays image omission notices.
src/​apptrail/​static/​auth.js Adds setup-time restoration.
src/​apptrail/​static/​auth.html Adds the setup restore form.
src/​apptrail/​static/​auth.css Styles setup restore controls.
src/​apptrail/​static/​app.js Adds settings storage and restore UI.
src/​apptrail/​listing_history.py Reports missing historical assets.
src/​apptrail/​db.py Adds compact backups and DB replacement.
src/​apptrail/​backups.py Validates and stages uploaded backups.
src/​apptrail/​auth.py Authorizes setup restoration uploads.
src/​apptrail/​api.py Exposes storage and restore endpoints.
src/​apptrail/​__init__.py Bumps runtime version.
README.md Documents compact backup behavior.
pyproject.toml Bumps project version.
docs/​SELF_HOSTING.md Documents persistence, cleanup, and restoration.
docs/​DEVELOPMENT.md Documents implementation and release details.
docs/​AUTHENTICATION.md Documents restore authorization and sessions.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/apptrail/backups.py
Comment thread src/apptrail/api.py
@adarshdigievo
adarshdigievo merged commit 1c5d690 into main Oct 1, 2026
7 of 8 checks passed
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.

2 participants