-
Notifications
You must be signed in to change notification settings - Fork 94
Slightly better typing and doc comment for query clickhouse #6607
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
} | ||
|
||
acc[row.pr_num].push(row.merge_commit_sha); | ||
acc.get(row.pr_num)!.push(row.merge_commit_sha); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idk what happened to the typing here, it starts out as a map, but then acc is {key: string} and the return value is also a map
so im just making it always a map
@@ -77,7 +77,7 @@ export async function fetchFlakyTestsAcrossFileReruns( | |||
if (!workflowJobMap.has(curr.job_id)) { | |||
return accum; | |||
} | |||
const job_info = workflowJobMap.get(curr.job_id); | |||
const job_info = workflowJobMap.get(curr.job_id)!; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't know why suddenly need ! but typechecker complains about undefined later
Move doc comment so that it is compatible with vscode hover
Also add example for output
More specific typing for the output of queryclickhouse, this results in a bunch of (mostly type related changes in other places)
not sure if this is a good idea