Skip to content

fix(cli): say "removed in v3" in db remote commit and inspect db deprecation warnings - #7108

Merged
Coly010 merged 2 commits into
developfrom
columferry/cli-2598-say-removed-in-v3-in-the-db-remote-commit-and-inspect-db
Oct 13, 2026
Merged

Coly010 merged 2 commits into
developfrom
columferry/cli-2598-say-removed-in-v3-in-the-db-remote-commit-and-inspect-db

Conversation

@Coly010

@Coly010 Coly010 commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Summary

v3 removes db remote commit and three low-use inspect db aliases (CLI-2595, on next). This updates their stable deprecation warnings so users see the removal coming and know what to switch to:

Command Warning now says
db remote commit Command "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 db aliases keep their current notice because v3 doesn't remove them.

Linked issue

Linear: CLI-2598 (parent CLI-2595)

Checklist

  • The PR title follows Conventional Commits.
  • Tests added or updated for the change: integration tests assert the exact v3 text on stderr, and that it never reaches stdout.
  • From the repository root, pnpm check:all passes.

🤖 Generated with Claude Code

…ecation warnings

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Coly010

Coly010 commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

/ai-review

@Coly010 Coly010 self-assigned this Oct 13, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 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
Coly010 marked this pull request as ready for review October 13, 2026 09:27
@Coly010
Coly010 requested a review from a team as a code owner October 13, 2026 09:27
@Coly010
Coly010 added this pull request to the merge queue Oct 13, 2026
Merged via the queue into develop with commit f371bc9 Oct 13, 2026
51 checks passed
@Coly010
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>
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.

2 participants