Repository navigation
Conversation
…ettings config push sent only the changed db.settings keys with a PUT, which replaces the project's whole set of Postgres config overrides. Push now sends the same body with PATCH, which merges it into the stored overrides.
CLI benchmark (Lightweight Commands): no changes foundCommit
API calls: unchanged for all 9 commands. Binary size: 134.1 MB, unchanged. Details: timing ranges, API calls per command, slowest phasesTiming ranges
API calls per command
Slowest phasesNo command moved beyond noise, so there are no phase deltas. Comment |
There was a problem hiding this comment.
🤖 AI Review
CLI reference prose guidance: snapshot supabase/supabase@b0254cf supplied to reviewers (advisory, not a style pass).
The PR switches config push to PATCH for db.settings and updates the permission declaration to match. One minor finding is confirmed: the integration test's name overstates what it verifies about remote overrides. The diff changes no CLI reference prose.
Findings
| Severity | Location | Category | Sources | Claim |
|---|---|---|---|---|
| 🟡 MINOR | apps/cli/src/commands/config/push/push.integration.test.ts:1245 |
test-coverage |
codex | The test name claims that other remote overrides are preserved. Its assertions cover the outgoing PATCH request and permission declaration. |
Stats
Claude findings: 0 · Codex findings: 1 · Confirmed: 1 · Refuted: 0 · Uncertain: 0
Models: claude-opus-5-5 + gpt-6.2-sol · Trigger: auto · Workflow run
This review runs once per PR. A maintainer can request another with a /ai-review comment.
| }); | ||
|
|
||
| it.effect("sends only the one differing db.settings key", () => { | ||
| it.effect("patches the one differing db.settings key and leaves other overrides alone", () => { |
There was a problem hiding this comment.
🟡 MINOR · test-coverage · source: codex
The test name claims that other remote overrides are preserved. Its assertions cover the outgoing PATCH request and permission declaration.
Evidence: apps/cli/src/commands/config/push/push.integration.test.ts:1245 says the push “leaves other overrides alone.” Lines 1273–1277 assert one PATCH with { statement_timeout: "8s" } and check permission drift. The mock at lines 352–357 returns a canned 200 {} without updating stored settings.
Suggested fix: Rename the test to “sends a PATCH with only the changed db.settings key.”
config pushsent only the changeddb.settingskeys with aPUT, which replaces the project's whole set of Postgres config overrides. Changing one setting removed every other stored override, including ones declared in the config file that had not changed.Push now sends the same body with
PATCH, which merges it into the stored overrides. The command's declared permission changes fromv1-update-postgres-configtov1-patch-postgres-configto match.