Skip to content

feat: admin database page with purge and vacuum#379

Merged
neoneye merged 1 commit intomainfrom
admin-database-page
Mar 21, 2026
Merged

feat: admin database page with purge and vacuum#379
neoneye merged 1 commit intomainfrom
admin-database-page

Conversation

@neoneye
Copy link
Member

@neoneye neoneye commented Mar 21, 2026

Summary

  • Rename /admin/db-size to /admin/database for future extensibility
  • Add purge action: NULL out run_track_activity_jsonl for older rows, with radio buttons (10/25/50/100/250/500) showing MB savings per retention level
  • Add vacuum button: runs VACUUM FULL task_item to rewrite the table and reclaim disk space after purging

Test plan

  • Navigate to /admin/database — page loads with size info and purge options
  • Verify each radio button shows correct purgeable row count and MB savings
  • Purge with a retention level and verify success banner
  • Click Vacuum and verify the per-table breakdown reflects reclaimed space
  • Verify old URL /admin/db-size no longer works (404)
  • Verify non-admin users get 403

🤖 Generated with Claude Code

Rename /admin/db-size to /admin/database. Add purge action to NULL out
run_track_activity_jsonl for older rows with radio buttons showing
savings per retention level. Add vacuum button to run VACUUM FULL and
reclaim disk space.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@neoneye neoneye merged commit e4a9be9 into main Mar 21, 2026
3 checks passed
@neoneye neoneye deleted the admin-database-page branch March 21, 2026 12:44
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