Repository navigation
Render page: not ready until the analysis is coloured - #770
Closed
adamjohnwright wants to merge 3 commits into
Closed
adamjohnwright wants to merge 3 commits into
adamjohnwright wants to merge 3 commits into
Conversation
With a token, the render page reported ready as soon as a view was drawn, before its analysis colouring arrived, and before a result holding one resource besides TOTAL was loaded again for that resource. The render service then cached the figure uncoloured, or coloured for TOTAL, under the token. A token whose result could not be read was dropped and the figure drawn with no colouring at all. - AnalysisService.settled: the result on show is the one the address settles on (the default resource's load included). - The diagram and the illustration say which analysis they last coloured; the overview says whether its tree is the one fetched for the current token and resource. The page waits on these, publishes the analysis in __renderState.analysis, and fails when the analysis cannot be read. - Render cache key v12, so figures cached without their colouring are not served. - e2e: each view held back for its default resource, and an unreadable token; each fails on the previous page code. pdf-export spec 002 needs this first (its plan's step 0). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new tests were recorded against the Release 98 graph, so their content service answers were new bodies of routes whose known type problems are counted (tools/api-types/known-problems.json), and two counts went up. Every answer they read is already recorded from Release 97, so they replay those, and the Release 98 bodies and release files are dropped. Moving the whole suite to Release 98 is its own change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and the reaction view - The tests held every UNIPROT load back alike, so a page ready on the result alone passed them: with the diagram's own check removed they stayed green. Each view now waits for the load its own colouring comes from, held back longer than the result, and the diagram's mutation fails. The illustration colours itself as its result arrives, which no timing here can separate; its check stays as a guard and the tests say so. Titles no longer claim a colour they do not check. - An unreadable analysis keeps the analysis service's own reason; an error's URL loses any token; the reaction view, never coloured, skips the analysis. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Replaced by the next PR (render-overlay-wait-4): this head did not build; see there. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This replaces #769 after its review (which replaced #768).
With an analysis token, the render page reported ready as soon as a view was drawn. That was before its analysis colouring arrived, and, for a result holding one resource besides TOTAL, before the second load that colours it for that resource, as the pathway browser shows it. The render service then cached the figure under the token, uncoloured or coloured for TOTAL. A token whose result could not be read was dropped, and the figure was drawn with no colouring at all and reported ready.
What changes
AnalysisService.settled: the result on show is the one the address settles on, including the default resource's second load.__renderState.analysis;v12, so figures cached without their colouring are not served.Tests (e2e, with a made-up token answered in the test, replaying the suite's Release 97 recordings)
Proofs
Belongs to pdf-export's spec 002 (the analysis report), whose plan makes this its step 0. It also fixes figures rendered with a token today. Moving the whole e2e suite to Release 98 is a separate change.
🤖 Generated with Claude Code