feat(sssql): support correlated EXISTS/NOT EXISTS refresh relocation#773
Conversation
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 5 minutes and 33 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
refreshto relocate correlatedEXISTS/NOT EXISTSbranches.0candidates or multiple candidates now error explicitly).scaffold -> refresh,refresh -> refresh, andremove --allinterplay).rawsql-tsand@rawsql-ts/ztd-cli.Verification
pnpm --filter rawsql-ts test -- SSSQLFilterBuilder.test.ts(pass)pnpm --filter @rawsql-ts/ztd-cli test -- cliCommands.test.ts(pass; DB-dependent tests skipped as expected whenpg_dumpis missing)pnpm --filter rawsql-ts build(pass)pnpm --filter rawsql-ts lint(pass)Merge Readiness
Tracking issue: #768
Scoped checks run:
pnpm --filter rawsql-ts test -- SSSQLFilterBuilder.test.ts;pnpm --filter @rawsql-ts/ztd-cli test -- cliCommands.test.ts;pnpm --filter rawsql-ts build;pnpm --filter rawsql-ts lintWhy full baseline is not required: repository-wide baseline currently has pre-existing failures outside this change scope (for example
packages/ztd-cli/tests/directoryFinding.docs.test.ts,packages/ztd-cli/tests/setupEnv.unit.test.ts, andpackages/ztd-cli/tests/agentsPolicy.unit.test.ts) observed during pre-commit full-workspace test execution.CLI Surface Migration
No-migration rationale:
ztd query sssql refreshbehavior is extended for correlated branch relocation without introducing a new command or required flag change.Upgrade note: Existing
ztd query sssql refresh <sqlFile>now also handles correlatedEXISTS/NOT EXISTSrelocation with explicit fail-fast behavior on ambiguous/missing anchors.Deprecation/removal plan or issue: none
Docs/help/examples updated:
docs/guide/ztd-cli-sssql-reference.mdRelease/changeset wording:
.changeset/correlated-refresh-exists-relocation.mdScaffold Contract Proof
No-proof rationale: this PR does not change feature/query scaffold output contracts.
Non-edit assertion: parent boundary non-edit behavior is unchanged.
Fail-fast input-contract proof: covered by correlated anchor ambiguity/missing tests.
Generated-output viability proof: covered by updated core and CLI regression tests.