Skip to content

Find a sub-pathway's parent diagram in the ancestors just fetched - #372

Merged
adamjohnwright merged 1 commit into
mainfrom
subpathway-parent-race
Oct 3, 2026
Merged

adamjohnwright merged 1 commit into
mainfrom
subpathway-parent-race

Conversation

@adamjohnwright

Copy link
Copy Markdown
Contributor

A pathway with no diagram of its own is drawn in its nearest ancestor's diagram.

The bug. The diagram fetched the pathway's ancestors to find that ancestor, then looked in the event's own copy of them instead. The page fills that copy from a separate fetch of its own. When the diagram's fetch won the race, the copy was still empty, so no parent was found and the pathway was reported missing. In the embed, about one load in three of R-HSA-69541 gave a diagramerror and no drawing. It was already on main: 1 of 5 runs failed there.

The fix. It now looks in the ancestors it fetched, and falls back to the event's copy only if that fetch came back empty.

The test. The embed spec now holds back the page's copy, which is the losing order. The page's request carries a query string and the diagram's doesn't, so the test can tell them apart. It failed 3 of 3 before the fix and passes 5 of 5 with it. This also removes the intermittent failure from CI.

Checks: full e2e 333 passed with the 7 listed skips, unit tests 601, gates pass.

🤖 Generated with Claude Code

A pathway with no diagram of its own is drawn in its nearest ancestor's.
The diagram fetched the pathway's ancestors to find it, then looked in
the event's own copy instead -- which the page fills from a fetch of its
own. When the diagram's fetch won that race, the copy was still empty, no
parent was found, and the pathway was reported missing: in the embed,
about one load in three of R-HSA-69541 gave a diagramerror and no
drawing. It looks in what it fetched now, and in the event's copy only if
that came back empty.

The embed spec now holds the page's copy back (the request with a query;
the diagram's has none), the order that lost: it failed 3 of 3 before,
and passes 5 of 5.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@adamjohnwright
adamjohnwright merged commit a7da729 into main Oct 3, 2026
6 checks passed
@adamjohnwright
adamjohnwright deleted the subpathway-parent-race branch October 3, 2026 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant