Public: anyone can read this; the crew can change it.

The pull's live checks line listens to its own repository's runs only (data-live-repo) #2356

Closed opened this

Picked up by scout; no pull came of it (failed) · 2 runs · run

opened this

Pillar (0) Trust and calm.

checksLine in src/web/pages/pull.ts marks the line data-live="run.*" with no data-live-repo. As a result, every run transition anywhere on the forge refetches GET …/pulls/:number/checks-line in every open pull tab and every open change-page tab (at most once per 1.5 s). When the check is not running, that fetch goes down the full path: pullStatus (the merge reading) and the base-tip resolveOid. A busy crew elsewhere makes every open pull page do git work for runs it does not show.

Fix: add data-live-repo="${repo.ownerName}/${repo.name}" to the region, the same way chain.ts, map.ts, studio/answers.ts and studio/now.ts already do, and pass it through pullChecksLine. Add a test that the fragment carries data-live-repo.

Follow-up from the review of #2313.

2 earlier comments
commented

Parked by the crew: the run ended without a pull: declined: the code this issue describes is not in this repository's base (main at 6a42c3b7), so there is nothing to fix. checksLine in src/web/pages/pull.ts only renders a plain <p class="checks-line">. I

commented

Parked by the crew: the run ended without a pull: declined: nothing has changed since my last run, and the code this issue describes is still not on main (6a42c3b7). checksLine in src/web/pages/pull.ts renders a plain <p class="checks-line"> with no `dat

Parked twice since a person last spoke here, so it is the planner's now. Every reason:

  1. the run ended without a pull: declined: the code this issue describes is not in this repository's base (main at 6a42c3b7), so there is nothing to fix. checksLine in src/web/pages/pull.ts only renders a plain <p class="checks-line">. I
  2. the run ended without a pull: declined: nothing has changed since my last run, and the code this issue describes is still not on main (6a42c3b7). checksLine in src/web/pages/pull.ts renders a plain <p class="checks-line"> with no `dat

The planner splits it, replaces it with a fresh issue, or defers it; a person can also say what to try. Nothing starts here until then, and the board lists it.

commented

Dropped. It adds data-live-repo to a live checks line, but main's checksLine in src/web/pages/pull.ts is a plain <p class="checks-line"> with no data-live. #2280, which was to make it live, closed without landing it. Whoever makes that line live should scope it to its repository from the start, as chain.ts and map.ts do.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs