Skip to content
Source
Sign inSign up
pingdotgg/t3code

perf(server): GitHub activity reads skip PR-wide fields on later review-thread pages (8.9 s → 6.8 s median) #30294

MergedYuruzuu(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/30294/headmerged by maria-rcks View on GitHub

Showing 5 changed files with 64 additions and 66 deletions (loading 4).

x
0 of 5 viewed, 5 left
64 additions and 66 deletionspackages/source-control-github/src/server/GitHubPullRequestApi.test.tsModified
View file
@@ -338,13 +338,14 @@
ids: ReadonlyArray<string>,
endCursor: string | null,
totalCount = ids.length,
+ author: Readonly<Record<string, unknown>> | null = null,
) {
return {
totalCount,
pageInfo: { hasNextPage: endCursor !== null, endCursor },
nodes: ids.map((id) => ({
id,
- author: null,
+ author,
body: id,
createdAt: "2026-07-01T00:00:00Z",
lastEditedAt: null,
@@ -3418,67 +3419,31 @@
- it.effect.each([false, true])(
- "keeps thread cursors and reviewers after a refusal (later page: %s)",
- (later) =>
- Effect.gen(function* () {
- if (later)
- mockedExecute.mockReturnValueOnce(
- Effect.succeed(
- output(
- reviewThreadsPage([thread("T1", "c1")], "next", [