Skip to content

fix(versioning): import CommitImportError in push-commits router - #19

Merged
SammyBytes merged 1 commit into
mainfrom
fix/push-commits-missing-import
Aug 31, 2026
Merged

fix(versioning): import CommitImportError in push-commits router#19
SammyBytes merged 1 commit into
mainfrom
fix/push-commits-missing-import

Conversation

@SammyBytes

Copy link
Copy Markdown
Owner

POST .../push-commits returned 500 with 'ReferenceError: CommitImportError is not defined' — the router's catch tested instanceof CommitImportError but the class wasn't in the import block. Hit on every real push from a fresh repo; missed by tests because none pushed a payload that triggered the error path. Same class of bug as Deltix-Client v0.7.6 (promptSecret-not-imported).

277 unit tests pass; lint clean.

`POST /api/v1/versioning/repos/:repoId/push-commits` returned 500
with 'ReferenceError: CommitImportError is not defined' because the
router's catch-block tested `instanceof CommitImportError` but the
class was never named in the import list. Hit on every real push
(deltix push to a fresh repo), missed by every test (none pushed a
payload that triggered the error path). Same class of bug as
promptSecret-not-imported (Deltix-Client v0.7.6).

277 unit tests pass; lint clean.
@SammyBytes
SammyBytes merged commit b8be9b2 into main Aug 31, 2026
2 checks passed
@SammyBytes
SammyBytes deleted the fix/push-commits-missing-import branch August 31, 2026 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant