OUT-4044: row state transitions + channel cascade soft-delete - #130
Open
SandipBajracharya wants to merge 1 commit into
Open
OUT-4044: row state transitions + channel cascade soft-delete#130SandipBajracharya wants to merge 1 commit into
SandipBajracharya wants to merge 1 commit into
Conversation
…e tests Direct-DB integration tests for MapFilesService against Testcontainers Postgres: markAttempt attempt increment-vs-reset (both AND branches) and the portal guard, markDeleted/markUpdated clear-fields + portal guards, markFailure truncation and its missing-row no-throw contrast, the deleteChannelMapsByIds cascade soft-delete transaction, and the soft-delete/portal guard difference between getAllFileMaps and getSingleFileMap. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryThis PR adds direct-Postgres integration coverage for
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains within the follow-up review scope. Important Files Changed
Reviews (2): Last reviewed commit: "test(OUT-4044): add row state-transition..." | Re-trigger Greptile |
Collaborator
Author
|
@greptileai review PR again |
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.
What
Direct-DB integration tests for
MapFilesServiceagainst Testcontainers Postgres — the row state-transition helpers, the channel cascade soft-delete transaction, and the guard asymmetry between the two read paths (OUT-4044).test/flows/row-state-transitions.integration.test.ts(17 tests):markAttemptmarkDeletedmarkUpdateddeletedAtstays null)markFailurependingActionLastAttemptAtmark*helpersdeleteChannelMapsByIdsdeletedAt+status=false) and its file rows in one transaction, leaving a sibling channel and its rows untouchedgetAllFileMapsvsgetSingleFileMapgetAllFileMapshides a soft-deleted row / another portal's row;getSingleFileMapreturns both (no soft-delete or portal guard) — same row id queried through both pathsWhy
Part of the DB-integration suite (parent OUT-4042). These are real-Postgres behaviors — the
CASEattempt logic, the portal filter, the transactional cascade, and the guard asymmetry — that mocks can't reproduce, so they run against a container DB.Verification
pnpm test:integration test/flows/row-state-transitions.integration.test.ts→ 17/17 passpnpm lintclean ·pnpm typecheckcleanNotes
OUT-4043(stacked: OUT-4041 → OUT-4043 → OUT-4044).getSingleFileMapcurrently has no production call sites (dead code). Left in place for now; flagged for a possible follow-up cleanup.🤖 Generated with Claude Code