Skip to content

chore: pull the plug on Postgres 🔌 - #700

Open
nelitow wants to merge 2 commits into
mainfrom
nj/chore/drop-postgres-backend
Open

chore: pull the plug on Postgres 🔌#700
nelitow wants to merge 2 commits into
mainfrom
nj/chore/drop-postgres-backend

Conversation

@nelitow

@nelitow nelitow commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Summary

api-lite serves the explorer now (#699), so the Postgres GraphQL API, the syncer, the cosmos worker, and every chart, script and workflow that only existed to build, deploy or run them are gone. What is left of @fuel-explorer/graphql is the library both the frontend and api-lite import: schemas, generated SDK types, the domain layer and the value objects. The multi-megabyte block fixtures that were committed for parity checks go too; the fixture script still generates them on demand.

209 files changed, 179,476 lines deleted, 345 added. Nothing the explorer serves today changes.

Changes

Area Change
graphql package Deleted the Express and Yoga server, syncer, cosmos worker, pm2 configs, Postgres DAOs, repositories, migrations, workers and their tests; kept schemas, SDK, domain and value objects; runtime dependencies 36 to 9, dev dependencies 31 to 21
graphql config config.ts reads only FUEL_PROVIDER, FUEL_CHAIN and DEBUG; .env.example trimmed to those, .env.production deleted
Deployment Deleted the helm chart, cluster and minikube scripts, Tiltfile, deployment/Dockerfile, the docker-publish and helm-publish workflows, and the run and setup backend scripts
Local docker Dropped the Postgres service, the indexer env file and the DB variables from docker/docker-compose.yml and docker/envs; the bridge profile used by e2e is unchanged
Root scripts Removed run:backend, setup:backend, dev:graphql and dev:graphql:all
api-lite fixtures Removed the committed fuel-core block dumps and ignored the directory; pnpm --filter api-lite fixture <height> regenerates them for parity runs
Docs docs/GETTING_STARTED.md and the graphql README describe the api-lite setup

🤖 Generated with Claude Code

@nelitow
nelitow requested a review from helciofranco as a code owner August 29, 2026 11:09
@vercel

vercel Bot commented Aug 29, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
fuel-explorer-v2-vite Ready Ready Preview Sep 3, 2026 10:21pm UTC

Request Review

@cursor

cursor Bot commented Aug 29, 2026

Copy link
Copy Markdown

PR Summary

High Risk
Large deletion of production deployment (Helm, GHCR images, syncer/API) and local indexer paths; teams still on the old stack must migrate to api-lite or externalize those workflows.

Overview
Removes the Postgres-backed explorer backend now superseded by packages/api-lite (S3 block recorder + fuel-core, sqlite index). The @fuel-explorer/graphql package remains as a shared library (schemas, SDK, domain); the Express/Yoga server, syncer, workers, Postgres DAOs/migrations, and their tests are deleted per the broader PR.

Deployment and local dev paths for the old stack are dropped: Helm chart and publish workflow, Docker image build/publish workflow, deployment/Dockerfile, Tilt/minikube cluster/ tooling, and root scripts run:backend, setup:backend, dev:graphql*. Docker Compose no longer starts explorer Postgres or indexer GraphQL/syncer services; global.env and indexer.env lose DB/indexer settings. Docs (GETTING_STARTED, graphql README) point developers at api-lite and docker/vps/deploy.md.

Small api-lite hygiene: block parity fixtures (*.bin, *.fuelcore.json) are gitignored and fetched locally; measure-heap-multiplier.ts discovers fixtures from disk/CLI instead of hard-coded heights, with matching comment updates in BlockStore.ts.

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

@nelitow
nelitow force-pushed the nj/chore/drop-postgres-backend branch from 3725a9f to 2278c73 Compare August 29, 2026 11:24
@nelitow
nelitow force-pushed the nj/chore/drop-postgres-backend branch from 2278c73 to 6fc4493 Compare August 29, 2026 11:46
@nelitow nelitow self-assigned this Aug 29, 2026
@nelitow
nelitow force-pushed the nj/chore/drop-postgres-backend branch from 6fc4493 to 520232d Compare August 29, 2026 19:07
@nelitow
nelitow force-pushed the nj/chore/drop-postgres-backend branch from 520232d to a06432b Compare August 29, 2026 19:08
@nelitow
nelitow force-pushed the nj/chore/drop-postgres-backend branch from a06432b to 6f198d6 Compare August 29, 2026 19:11
@nelitow
nelitow force-pushed the nj/chore/drop-postgres-backend branch from 6f198d6 to 42f74cc Compare August 29, 2026 19:19
@nelitow
nelitow force-pushed the nj/chore/drop-postgres-backend branch from 42f74cc to 6855514 Compare August 29, 2026 20:42
@nelitow
nelitow force-pushed the nj/chore/drop-postgres-backend branch from 6855514 to ae60d2a Compare August 29, 2026 20:44
@nelitow
nelitow force-pushed the nj/chore/drop-postgres-backend branch from ae60d2a to 02622db Compare August 29, 2026 21:10
@nelitow
nelitow force-pushed the nj/chore/drop-postgres-backend branch from 02622db to 9240d8d Compare August 31, 2026 01:43
@nelitow
nelitow force-pushed the nj/chore/drop-postgres-backend branch from 9240d8d to f4e5136 Compare August 31, 2026 12:49
@cursor

cursor Bot commented Aug 31, 2026

Copy link
Copy Markdown

Bugbot is paused — on-demand spend limit reached

Bugbot uses usage-based billing for this team and has hit its on-demand spend limit.

A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue.

Base automatically changed from nj/feat/el-cheapo-explorer to main September 3, 2026 17:05
@nelitow
nelitow force-pushed the nj/chore/drop-postgres-backend branch from f4e5136 to e3be466 Compare September 3, 2026 17:47
Comment thread .github/workflows/api-lite-uptime.yml Fixed
Comment thread .github/workflows/pr-tests.yml Fixed

@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 e3be466. Configure here.

Comment thread docker/vps/Dockerfile.explorer
…i-lite

- delete the graphql package's server, syncer, cosmos worker, pm2 configs, Postgres DAOs, migrations and tests; keep schemas, generated SDK, domain layer and value objects as a library
- delete the helm chart, cluster/minikube scripts, Tiltfile, deployment/Dockerfile, the docker-publish and helm-publish workflows and the run/setup backend scripts
- drop the Postgres service and indexer env from docker/docker-compose.yml
- graphql package dependencies 36 to 9, devDependencies 31 to 21
Parity stays opt-in via `pnpm --filter api-lite fixture <height>`; the
multi-MB fuel-core JSON dumps were not a CI gate and bloated the PR diff.
@nelitow
nelitow force-pushed the nj/chore/drop-postgres-backend branch from eb03fee to 9005043 Compare September 3, 2026 22:20
@nelitow nelitow changed the title chore: remove the Postgres API and syncer chore: pull the plug on Postgres 🔌 Sep 3, 2026
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.

3 participants