Repository navigation
Review of 25 Nov: what the content service lets the CDN store, made finite (spec 011 T035) - #1089
Merged
Merged
Conversation
- An empty answer (no body, empty text, []) is never stored: several endpoints answer a made-up id with an empty 200, as Java does, and any id of the right shape was cacheable. - The events hierarchy is stored only without `resource`, which Java ignores without a token but answers, 4 MB, for any text. - A diagram's entities are stored only without `pathways`, free text the site never sends. - Polymerisation and Depolymerisation no longer require eventOfPathways, which live answers leave out, as FailedReaction's fix did; the test now holds every event type to it. - Spec 011's research notes the decisions T034 superseded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1089) The Pathway Browser sends its resource filter with the events hierarchy even after an analysis is cleared, without a token, so storing only without one would have sent every such Reacfoam load to the origin. The analysis service's resource names are stored; any other text is not. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes from the 25 Nov review, slice B (content service and contract). Each has a test seen failing without it. Nothing is cached yet: the Cloudflare rule is turned on only at the production release.
cache-label.ts,server.ts): an empty answer (no body, empty text,[]) is never stored, ruleempty. Several endpoints answer a made-up id with an empty 200, as Java does:/data/participants/987654321is[], and so areinstance/{id}/referrersandentity/{id}/in-depth. Any id of the right shape was cacheable, so the stored set had no bound. Tested on the label and through the server.parameters.ts): stored only withoutresource. Without a token Java ignores it but answers the whole hierarchy, 3.9 MB, for any text. The site sends it only with a token, which is private.pathways, free text the site never sends.eventOfPathways, which live answers (R-HSA-874079, R-HSA-8952903) leave out. This is FailedReaction's fix carried to the two types it missed. The test now holds every event type to it.research.mdnotes the decisions T034 superseded;cache-labels.mdgains theemptyrow;CACHING.mdexplains it; T035 is ticked.🤖 Generated with Claude Code