Repository navigation
feat(cli)!: remove db remote commit and the low-use inspect db aliases - #7109
Merged
Coly010 merged 3 commits intoOct 13, 2026
Conversation
`db remote commit`, `inspect db total-index-size`, `inspect db total-table-sizes` and `inspect db table-index-sizes` now exit 1 and name their replacement. BREAKING CHANGE: `supabase db remote commit` is removed (use `supabase db pull`), and `supabase inspect db total-index-size` (use `index-stats`), `total-table-sizes` and `table-index-sizes` (use `table-stats`) are removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
/ai-review |
Contributor
There was a problem hiding this comment.
🤖 AI Review
Confirmed both Claude findings as non-blocking nits: an unused pull option and a stale command count. Codex reported no findings. Inspection of the checked-out code found no additional concrete issues. Tests were not run.
Findings
| Severity | Location | Category | Sources | Claim |
|---|---|---|---|---|
| ⚪ NIT | apps/cli/src/commands/db/pull/pull.handler.ts:50 |
dead-code |
claude | The skipFinishedLine option is obsolete after removal of the db remote commit handler; no remaining caller sets it. |
| ⚪ NIT | apps/cli/src/commands/inspect/db/inspect-db-command.ts:37 |
documentation |
claude | The inspectDbCommandHandler JSDoc still says it is shared by all 25 command files, but only 22 use it after the three aliases become tombstones. |
Findings outside the diff
- ⚪ NIT
apps/cli/src/commands/db/pull/pull.handler.ts:50— The skipFinishedLine option is obsolete after removal of the db remote commit handler; no remaining caller sets it. - ⚪ NIT
apps/cli/src/commands/inspect/db/inspect-db-command.ts:37— The inspectDbCommandHandler JSDoc still says it is shared by all 25 command files, but only 22 use it after the three aliases become tombstones.
Stats
Claude findings: 2 · Codex findings: 0 · Confirmed: 2 · 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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Coly010
deleted the
columferry/cli-2595-bc-remove-deprecated-legacy-commands-db-remote-commit-and
branch
October 13, 2026 10:26
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
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 asdb remote changesandgen keys.db remote commitdb pullinspect db total-index-sizeinspect db index-statsinspect db total-table-sizesinspect db table-statsinspect db table-index-sizesinspect db table-statsRemovedSurfaceErrortelemetry fingerprint (removed_command), so remaining usage stays visible.DOCS_EXCLUDEDtable are updated.db remote commit, andconfig.schema.jsonis regenerated.inspect dbaliases (table-sizes,index-sizes,cache-hit, …) are unchanged.The matching "removed in v3" warning text for stable is in #7108 (develop).
Linked issue
Part of CLI-2595
Checklist
hidden-flag.unit.test.tsruns all four tombstones and asserts the removal message and suggestion, and checks they're absent frominspect db --help.pnpm check:allpasses.🤖 Generated with Claude Code
BREAKING CHANGE:
supabase db remote commitis removed; usesupabase db pull.supabase inspect db total-index-sizeis removed; usesupabase inspect db index-stats.supabase inspect db total-table-sizesandsupabase inspect db table-index-sizesare removed; usesupabase inspect db table-stats. Each removed command exits 1 and prints its replacement.