Skip to content

refactor: remove JSON database backend and update db dump workflow#560

Merged
adibarra merged 5 commits into
masterfrom
refactor/remove-json-db
Jul 11, 2026
Merged

refactor: remove JSON database backend and update db dump workflow#560
adibarra merged 5 commits into
masterfrom
refactor/remove-json-db

Conversation

@adibarra

@adibarra adibarra commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Note

High Risk
Large architectural change: local dev and all read paths now require DATABASE_READONLY_URL, and the backup/restore format changed from JSON tar parts to pg_dump/pg_restore.

Overview
Removes the JSON dump / DUMP_DIR dev path so the app and API routes always read through PostgreSQL (getDb()). That drops JSON_MODE, the in-memory json-provider, admin:db:dump / admin:db:load-dump, and the related tests and TABLE_INSERT_ORDER helper.

API and caching are simplified: routes no longer branch to json-provider; cachedQuery no longer bypasses cache in dump mode. E2E fixtures (FIXTURES_MODE) are unchanged.

Docs and env now describe only live Postgres (standard TCP or Neon); README setup no longer mentions downloading JSON dumps for local dev.

Weekly DB backup no longer uses Node/pnpm dump scripts. It runs pg_dump (custom format) from a pinned Postgres 18 Docker image against DATABASE_WRITE_URL, excludes user_feedback data, xz-compresses and splits parts, and documents pg_restore in release notes.

Reviewed by Cursor Bugbot for commit a21fd44. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Jul 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
inferencemax-app Ready Ready Preview, Comment Jul 11, 2026 7:17pm

Request Review

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 7dce630. Configure here.

Comment thread .github/workflows/db-backup.yml
@adibarra adibarra changed the title refactor: remove JSON database backend refactor: remove JSON database backend and update db dump workflow Jul 11, 2026
@adibarra adibarra merged commit 7cadb24 into master Jul 11, 2026
24 checks passed
@adibarra adibarra deleted the refactor/remove-json-db branch July 11, 2026 19:59
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