GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — perf(linear): skip issue descriptions when loading list rows (#39180) · pingdotgg/t3code@e37e45f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/issue-tracker-linear/src/server
    • LinearApi.graphql.ts
    • LinearApi.graphql
    • LinearIssueTracker.test.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/issue-tracker-linear/src/server/LinearApi.graphql‎

Copy file name to clipboardExpand all lines: packages/issue-tracker-linear/src/server/LinearApi.graphql
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ fragment LinearIssue on Issue {
6060
number
6161
title
6262
url
63-
description
6463
createdAt
6564
updatedAt
6665
completedAt
@@ -122,6 +121,7 @@ query T3Issues($first: Int!, $after: String, $filter: IssueFilter!, $orderBy: Pa
122121
query T3Issue($id: String!, $comments: Int!) {
123122
issue(id: $id) {
124123
...LinearIssue
124+
description
125125
team {
126126
states(first: 100) {
127127
nodes {
Collapse file

‎packages/issue-tracker-linear/src/server/LinearApi.graphql.ts‎

Copy file name to clipboardExpand all lines: packages/issue-tracker-linear/src/server/LinearApi.graphql.ts
+5-7Lines changed: 5 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Collapse file

‎packages/issue-tracker-linear/src/server/LinearIssueTracker.test.ts‎

Copy file name to clipboardExpand all lines: packages/issue-tracker-linear/src/server/LinearIssueTracker.test.ts
+9-1Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ function fakeLinear(
7878
const requests: Array<{
7979
readonly authorization: string | undefined;
8080
readonly operation: string;
81+
readonly query: string;
8182
}> = [];
8283
const http = Layer.succeed(
8384
HttpClient.HttpClient,
@@ -88,7 +89,11 @@ function fakeLinear(
8889
body._tag === "Uint8Array" ? new TextDecoder().decode(body.body) : String(body._tag);
8990
const parsed = JSON.parse(text) as { query: string; variables: Record<string, unknown> };
9091
const operation = /^(?:query|mutation) (\w+)/.exec(parsed.query)?.[1] ?? "?";
91-
requests.push({ authorization: request.headers.authorization, operation });
92+
requests.push({
93+
authorization: request.headers.authorization,
94+
operation,
95+
query: parsed.query,
96+
});
9297
const answer = answers[operation];
9398
const answered = answer?.(parsed.variables);
9499
const response =
@@ -224,6 +229,8 @@ describe("LinearIssueTracker", () => {
224229
});
225230
// The stored key goes in as-is, not as a bearer token.
226231
expect(requests.map((request) => request.authorization)).toEqual(["lin_api_stored"]);
232+
// Rows never show a body, so the listing leaves descriptions to the detail query.
233+
expect(requests[0]?.query).not.toMatch(/\bdescription\b/);
227234

228235
// Linear's reset header is an absolute time in epoch milliseconds.
229236
const resetAt = 4_102_444_800_000;
@@ -362,6 +369,7 @@ describe("LinearIssueTracker", () => {
362369
const api = yield* tracker;
363370
const detail = yield* api.getIssue({ ...target, key: "eng-7" });
364371
expect(detail.viewer).toBe("julius");
372+
expect(detail.body).toBe("body");
365373
expect((yield* api.probeCredential("token")).workspace).toBe("acme");
366374
// The team's own workflow, in Linear's order, with the category each state falls in.
367375
expect(detail.states.map((entry) => [entry.name, entry.category])).toEqual([

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.