Repository navigation
fix(cli): say "removed in v3" in db remote commit and inspect db deprecation warnings - #7108
Merged
Coly010 merged 2 commits intoOct 13, 2026
Conversation
…ecation warnings Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3 tasks done
Contributor
Author
|
/ai-review |
Contributor
There was a problem hiding this comment.
🤖 AI Review
Both independent reviews were available. Code inspection confirms Claude's single test-coverage nit: db remote commit tests verify the v3 notice on stderr but do not assert its absence from stdout. The handlers route notices correctly to stderr. No blocking defects or fundamental conflicts with pending next-branch work were found. Tests were not run.
Findings
| Severity | Location | Category | Sources | Claim |
|---|---|---|---|---|
| ⚪ NIT | apps/cli/src/commands/db/pull/pull.integration.test.ts:2389 |
test-coverage |
claude | The db remote commit tests check the new deprecation notice on stderr but do not assert that it is absent from stdout, unlike the inspect alias tests. |
Stats
Claude findings: 1 · Codex findings: 0 · Confirmed: 1 · Refuted: 0 · Uncertain: 0
Models: claude-opus-5-5 + gpt-6.1-sol · Trigger: manual · Workflow run
This review runs once per PR. A maintainer can request another with a /ai-review comment.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Coly010
marked this pull request as ready for review
October 13, 2026 09:27
jgoux
approved these changes
Oct 13, 2026
Coly010
deleted the
columferry/cli-2598-say-removed-in-v3-in-the-db-remote-commit-and-inspect-db
branch
October 13, 2026 10:15
AmitKulkarni23
pushed a commit
to AmitKulkarni23/supabase_cli
that referenced
this pull request
Nov 1, 2026
supabase#7109) ## Summary This removes four commands that have been deprecated for at least one stable cycle and have a direct replacement. They stay registered but are hidden from help. Running any of them now exits 1 and names the replacement. This uses the same `removedCommand()` tombstone as `db remote changes` and `gen keys`. | Command | Replacement | | -- | -- | | `db remote commit` | `db pull` | | `inspect db total-index-size` | `inspect db index-stats` | | `inspect db total-table-sizes` | `inspect db table-stats` | | `inspect db table-index-sizes` | `inspect db table-stats` | - The tombstones still accept their old flags, so existing invocations reach the removal error instead of a parse error. The inspect tombstones open no DB connection. - Each tombstone records a `RemovedSurfaceError` telemetry fingerprint (`removed_command`), so remaining usage stays visible. - Their handlers, handler tests and per-command docs pages are deleted. SIDE_EFFECTS.md and the `DOCS_EXCLUDED` table are updated. - The pg-delta config description no longer mentions `db remote commit`, and `config.schema.json` is regenerated. - The higher-use `inspect db` aliases (`table-sizes`, `index-sizes`, `cache-hit`, …) are unchanged. The matching "removed in v3" warning text for stable is in supabase#7108 (develop). ## Linked issue Part of CLI-2595 ## Checklist - [x] The PR title follows Conventional Commits. - [x] Tests added or updated: `hidden-flag.unit.test.ts` runs all four tombstones and asserts the removal message and suggestion, and checks they're absent from `inspect db --help`. - [x] From the repository root, `pnpm check:all` passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) BREAKING CHANGE: `supabase db remote commit` is removed; use `supabase db pull`. `supabase inspect db total-index-size` is removed; use `supabase inspect db index-stats`. `supabase inspect db total-table-sizes` and `supabase inspect db table-index-sizes` are removed; use `supabase inspect db table-stats`. Each removed command exits 1 and prints its replacement. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
v3 removes
db remote commitand three low-useinspect dbaliases (CLI-2595, onnext). This updates their stable deprecation warnings so users see the removal coming and know what to switch to:db remote commitCommand "commit" is deprecated and will be removed in v3, use "db pull" instead.inspect db total-index-size… will be removed in v3, use "index-stats" instead.inspect db total-table-sizes… will be removed in v3, use "table-stats" instead.inspect db table-index-sizes… will be removed in v3, use "table-stats" instead.The help descriptions also mention the v3 removal. The warnings still go to stderr only, never to stdout or JSON output. The higher-use
inspect dbaliases keep their current notice because v3 doesn't remove them.Linked issue
Linear: CLI-2598 (parent CLI-2595)
Checklist
pnpm check:allpasses.🤖 Generated with Claude Code