Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/clickhouseClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ describe('clickhouseClient', () => {
inferenceId: 'abc-123',
episodeId: 'episode-123',
pullRequestId: 42,
Comment on lines 34 to 36

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge Pass originalPullRequestUrl to createPullRequestToInferenceRecord

The updated tests now call createPullRequestToInferenceRecord without the required originalPullRequestUrl field. The function’s signature still declares this property as mandatory and the implementation inserts it into the ClickHouse payload. As written, the test suite will fail to compile (TypeScript reports a missing property) and, if the calls were compiled with any, the insert would send undefined for original_pull_request_url, contradicting the expectations later in the test. Either the production code needs to infer this URL or the tests must continue to pass it explicitly.

Useful? React with 👍 / 👎.

originalPullRequestUrl: 'https://github.com/org/repo/pull/42'
},
defaultConfig,
{ client }
Expand Down Expand Up @@ -91,7 +90,6 @@ describe('clickhouseClient', () => {
inferenceId: 'abc',
episodeId: 'episode-123',
pullRequestId: 1,
originalPullRequestUrl: 'https://example.com/pr/1'
},
{ ...defaultConfig, table: 'invalid-table!' }
)
Expand All @@ -105,7 +103,6 @@ describe('clickhouseClient', () => {
inferenceId: 'abc',
episodeId: 'episode-123',
pullRequestId: 1,
originalPullRequestUrl: 'https://example.com/pr/1'
},
{ ...defaultConfig, url: ' ' }
)
Expand All @@ -121,7 +118,6 @@ describe('clickhouseClient', () => {
inferenceId: 'abc',
episodeId: 'episode-123',
pullRequestId: 1,
originalPullRequestUrl: 'https://example.com/pr/1'
},
defaultConfig,
{ client }
Expand Down
Loading