fix(rescan): delete commit record and files to enable full re-scan#501
Merged
philwinder merged 1 commit intomainfrom Mar 26, 2026
Merged
fix(rescan): delete commit record and files to enable full re-scan#501philwinder merged 1 commit intomainfrom
philwinder merged 1 commit intomainfrom
Conversation
When a commit rescan was triggered, the handler only cleared enrichments and associations but preserved the commit record and its files. This caused the subsequent scan step (which checks if the commit already exists) to skip, leaving git_commit_files empty. All downstream indexing steps then found nothing to process and skipped, leaving the repository in a partially broken state. Now the rescan handler deletes the commit record and all associated files, allowing the re-scan pipeline to recreate everything from scratch: 1. OperationRescanCommit - clears enrichments/associations/commit/files 2. OperationScanCommit - re-scans commit and extracts files from working copy 3. OperationExtractSnippetsForCommit - creates enrichments from files 4. (remaining indexing steps) Changes: - Rescan handler now accepts and uses commitStore and fileStore - Rescan pipeline now includes OperationScanCommit after OperationRescanCommit - Test updated to seed a commit and verify it's deleted after rescan Assisted by AI. Co-Authored-By: Helix <noreply@helix.ml>
Contributor
Go Test CoverageTotal coverage: 32.1% Full coverage report |
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
When a commit rescan was triggered, the handler only cleared enrichments and associations but preserved the commit record and its files. This caused the subsequent scan step (which checks if the commit already exists) to skip, leaving
git_commit_filesempty. All downstream indexing steps then found nothing to process and skipped.Now the rescan handler deletes everything associated with a commit, allowing the pipeline to re-scan and re-index from scratch.
Changes
commitStoreandfileStoreto delete the commit record and filesOperationScanCommitafterOperationRescanCommitto re-extract files from the working copyTest plan
TestRescan_DeletesOldStatusesnow verifies commit deletionmake checkmake buildAssisted by AI. Co-Authored-By: Helix noreply@helix.ml