[TEST] bugfix/indexed-commit-display — resolve bytebell ls commit display#58
Merged
Dead-Bytes merged 1 commit intoMay 21, 2026
Conversation
Dead-Bytes
previously approved these changes
May 21, 2026
Collaborator
|
@Dorivika i am merging this on our testing branch for further testing and then will raise PR on main |
da6505f
into
ByteBell:merge-test/fix_index_Dorivika
2 checks passed
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 changed
/api/v1/reposresponse shaping so legacycommitId: "latest"values do not leak intobytebell ls.bytebell lsand repo selector details to display the resolved indexed commit SHA instead of trusting rawsource.commitId."latest"cannot be persisted throughsetKnowledgeCommitorupsertKnowledge."latest"metadata, mixed commit history shapes, invalid hashes, uppercase SHAs, dedupe, and empty/missing commit history.Why
Fixes #55.
bytebell lscould showlatestas the indexed commit for GitHub repositories. The issue was in the metadata/listing path: consumers trustedsource.commitIddirectly, so a stale sentinel value like"latest"was rendered as if it were a real commit.The fix makes commit display resolve only from valid 40-character Git SHAs. If
commitIdis invalid, ByteBell falls back to the newest valid SHA incommitHashes. Existing metadata is repaired at read time without requiring a Mongo migration, and future invalid writes are rejected.How to test
Install dependencies: