diff --git a/CURATOR-REPORT.md b/CURATOR-REPORT.md index da5e47019..af7b95e94 100644 --- a/CURATOR-REPORT.md +++ b/CURATOR-REPORT.md @@ -12,7 +12,7 @@ open an issue on the WebsiteAngular repository — either reaches us. A screensh and the URL is usually enough; if a diagram is involved, the pathway's stable id saves us guessing. -Last updated: 2026-08-22 +Last updated: 2026-09-20 ## Please check on beta.reactome.org @@ -39,6 +39,22 @@ Each of these was broken when curators last looked, and each is now covered by a test — `RELEASE-TESTING.md` names the spec for every row, and says plainly where a check can only be made by eye. +- **Downloading an illustrated pathway produced nothing at all.** All 218 + illustrated pathways sent their SVG, PNG and JPEG downloads to the content + service's exporter, which draws nothing and reads pre-made files from disk — + and the files are not on this machine. The page draws the illustration itself, + so it now makes the file from what is already on screen, at a higher + resolution than the server was offering. **Worth a click on any illustrated + pathway other than Apoptosis**, which is the one the tests happened to use and + the one that kept passing. +- **96 of the 218 illustrations rendered as a picture of the zoom control.** A + 140×140 image of four arrows where the pathway should be, on downloads and on + the picture a content detail page shows — Signal Transduction, Developmental + Biology and Cytokine Signaling in Immune System among them. The renderer + decided it was finished as soon as any drawing existed, and the zoom control + is drawn before the illustration arrives, so the heavier the illustration the + likelier it lost. It now waits for the illustration. Re-scanned after the fix: + 1 of 218 left, and that one is the artwork question below. - **Diagrams for every species other than human were blank.** One node without graph data threw for the whole diagram build, so switching species left an empty canvas with the rest of the page updated around it. @@ -188,6 +204,20 @@ named after papers (Dunn2005, Kaufman2002 ×3, Rutter2006) had been withdrawn fo licensing, and whether `man7a.png` should be renamed. Both questions are closed: the fix happened elsewhere. +**Circadian clock's illustration cannot be saved as PNG or JPEG, and this one +needs an artwork change rather than a code change.** +`R-HSA-9909396.svg` builds six of its shapes out of `` — an +element that embeds an HTML box inside the drawing, which is how a design tool +exports a conic gradient, since SVG has no such gradient of its own. A browser +refuses to turn any drawing containing one into a picture file; it is a security +rule, not a bug we can work around. SVG downloads fine, and the page displays +normally. + +It is the only one of the 218 that does this. If the file is re-exported with +those six shapes flattened — or the gradient redrawn with the radial gradients +SVG does have — every format works again. Until then the download says exactly +that rather than failing with a browser error. + **A protein page shows the experimental structure whenever there is one.** Decided on a sitewide call, 19 Sep 2026, and implemented: if the entity carries a PDB cross-reference the viewer opens on it, and AlphaFold's predicted model is diff --git a/RELEASE-TESTING.md b/RELEASE-TESTING.md index c7cc63568..13bf84a36 100644 --- a/RELEASE-TESTING.md +++ b/RELEASE-TESTING.md @@ -160,17 +160,17 @@ offer it. ## Downloads and figures -| Item | Status | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| Every diagram format produces a file of the type it claims | **auto** — `downloads.spec.ts` checks magic bytes, not just that a file arrived | -| Illustrated pathways export the whole illustration | **auto** — `downloads.spec.ts` | -| GIF animates one frame per analysis sample | **auto** — `downloads.spec.ts`, skipped with a message when the render service is not running | -| PPTX opens in PowerPoint and converts to editable shapes | **human** — needs PowerPoint. This is the one item we cannot close | -| Sub-pathway highlighting checkbox changes the exported figure | **auto** — `downloads.spec.ts` | -| Animated SVG timeline: play/pause, click to seek, hover names the sample | **human** — the timeline scrubs a canvas, so seeking and hovering can only be judged by eye. Asserting pixels fails on font rendering rather than on behaviour, as with the sub-pathway hover row | -| A pathway page's figure is drawn by the site's own renderer | **auto** — `detail-contents.spec.ts`, for a cytoscape diagram and an illustration. _It came from the old server-side exporter until 21 Aug, so the picture on the page and the one the download gave you were in different styles_ | -| Figures on entity pages render, from the release bucket | **auto** — `e2e/release/download-files.spec.ts` checks the host and that the image really drew. _Every figure on the site was broken before 21 Aug: they were served from a legacy path, and our origin answers those paths with index.html — a 200 that is not an image_ | -| PNG quality tiers produce three different sizes | **auto** — `downloads.spec.ts` reads the width out of each PNG's header and checks all three differ | +| Item | Status | +| ------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Every diagram format produces a file of the type it claims | **auto** — `downloads.spec.ts` checks magic bytes, not just that a file arrived | +| Illustrated pathways export the whole illustration | **auto** — `downloads.spec.ts`, for a light illustration and a heavy one. _The heavy case is the row that matters: every illustration test used Apoptosis, which is 502 SVG elements and arrives quickly, while 96 of the 218 illustrations came out as a 140×140 picture of the zoom control_ | +| GIF animates one frame per analysis sample | **auto** — `downloads.spec.ts`, skipped with a message when the render service is not running | +| PPTX opens in PowerPoint and converts to editable shapes | **human** — needs PowerPoint. This is the one item we cannot close | +| Sub-pathway highlighting checkbox changes the exported figure | **auto** — `downloads.spec.ts` | +| Animated SVG timeline: play/pause, click to seek, hover names the sample | **human** — the timeline scrubs a canvas, so seeking and hovering can only be judged by eye. Asserting pixels fails on font rendering rather than on behaviour, as with the sub-pathway hover row | +| A pathway page's figure is drawn by the site's own renderer | **auto** — `detail-contents.spec.ts`, for a cytoscape diagram and an illustration. _It came from the old server-side exporter until 21 Aug, so the picture on the page and the one the download gave you were in different styles_ | +| Figures on entity pages render, from the release bucket | **auto** — `e2e/release/download-files.spec.ts` checks the host and that the image really drew. _Every figure on the site was broken before 21 Aug: they were served from a legacy path, and our origin answers those paths with index.html — a 200 that is not an image_ | +| PNG quality tiers produce three different sizes | **auto** — `downloads.spec.ts` reads the width out of each PNG's header and checks all three differ | ## Post-release diff --git a/e2e/downloads.spec.ts b/e2e/downloads.spec.ts index 53884cd66..19f5c584a 100644 --- a/e2e/downloads.spec.ts +++ b/e2e/downloads.spec.ts @@ -19,6 +19,24 @@ import { unzipSync, strFromU8 } from 'fflate'; const DIAGRAM = 'R-HSA-109606'; // Intrinsic Pathway for Apoptosis: a cytoscape diagram const ILLUSTRATION = 'R-HSA-109581'; // Apoptosis: an EHLD +/** + * A heavy illustration, which is the one that catches the bug this file missed. + * + * Apoptosis' illustration is 502 SVG elements and arrives quickly. Signal + * Transduction's is 2,490 and is one of the 96 illustrations out of 218 that the + * render service drew as a 140x140 picture of the zoom control instead of the + * pathway: the readiness probe accepted any `svg` inside `cr-ehld`, the control + * is in the DOM from the first frame, and a heavy illustration is still loading + * when the light one has arrived. Every existing test here used the light one + * and stayed green throughout. + */ +const HEAVY_ILLUSTRATION = 'R-HSA-162582'; // Signal Transduction: a large EHLD + +/** A PNG's own idea of its size, from the IHDR chunk. */ +function pngSize(bytes: Buffer) { + return { width: bytes.readUInt32BE(16), height: bytes.readUInt32BE(20) }; +} + /** What each format's bytes have to start with, and a floor for "not empty". */ const SIGNATURES: Record boolean; floor: number }> = { SVG: { @@ -70,7 +88,10 @@ function slideOf(bytes: Buffer) { async function openDownloadTab(page: Page, pathway: string) { await page.goto(`/PathwayBrowser/${pathway}`); - await page.waitForSelector('#cytoscape canvas, cr-ehld svg', { timeout: 90_000 }); + // `#ehld` specifically: `cr-ehld svg` also matches the component's 70x70 zoom + // control, which is there from the first frame, so waiting on it returns + // before the illustration exists. + await page.waitForSelector('#cytoscape canvas, cr-ehld #ehld svg', { timeout: 90_000 }); await page .locator('[role="tab"]') .filter({ hasText: /Download/i }) @@ -120,6 +141,41 @@ test.describe('Diagram downloads', () => { }); } + test('a heavy illustration downloads the illustration, not the zoom control', async ({ + page, + }) => { + await openDownloadTab(page, HEAVY_ILLUSTRATION); + const bytes = await grab(page, 'PNG'); + assertLooksLike('PNG', bytes); + + // The failure had a shape: the control is 70x70 CSS pixels, so it came out + // at 140x140 and 8,091 bytes -- comfortably over the 5,000-byte floor this + // file already applied, which is why a size check alone never caught it. + // An illustration is 1600x1000 before scaling. + const { width, height } = pngSize(bytes); + expect( + Math.min(width, height), + `the PNG is ${width}x${height}, which is the zoom control rather than the illustration` + ).toBeGreaterThan(500); + }); + + test('a figure that cannot be made says so, rather than doing nothing', async ({ page }) => { + // Circadian clock builds six of its shapes out of , which is + // how a design tool exports a conic gradient. Chromium taints a canvas the + // moment one is drawn onto it and refuses toDataURL, so this illustration + // cannot be turned into a picture in any browser. + // + // That part is not fixable here. What was fixable: the click produced no + // file, no message and no sign it had registered, because every client-side + // exporter reported failure with console.error and nothing else. + await openDownloadTab(page, 'R-HSA-9909396'); + await page.locator('.container.diagram').getByText('PNG', { exact: true }).first().click(); + + const reason = page.locator('.download-failure'); + await expect(reason, 'the reader is told why no file arrived').toBeVisible({ timeout: 30_000 }); + await expect(reason).toContainText('foreignObject'); + }); + test('leaving out sub-pathway highlighting changes the figure', async ({ page }) => { await openDownloadTab(page, DIAGRAM); const withTints = await grab(page, 'SVG'); @@ -161,6 +217,26 @@ test.describe('Server-rendered figures', () => { } }); } + + test('a heavy illustration renders as the illustration', async ({ request }) => { + const renderServiceUp = await serves(request, '/RenderService/health'); + test.skip(!renderServiceUp, 'the render service is not running'); + + // Not only the download tab: a content detail page takes its picture from + // this service too, so 96 of 218 illustrated pathways showed a 140x140 + // zoom control where the pathway should be. Asked here rather than through + // the page because the service caches by URL, and a wrong render was kept + // and served for as long as the cache lived. + const response = await request.get(`/RenderService/render/${HEAVY_ILLUSTRATION}.png`); + expect(response.ok(), 'the render service answers for a heavy illustration').toBe(true); + + const bytes = Buffer.from(await response.body()); + const { width, height } = pngSize(bytes); + expect( + Math.min(width, height), + `rendered ${width}x${height}, which is the zoom control rather than the illustration` + ).toBeGreaterThan(500); + }); }); // The reaction page's own downloads. diff --git a/e2e/har/420119b1718a98f62bd1186d4235d2d7b8589221.json b/e2e/har/420119b1718a98f62bd1186d4235d2d7b8589221.json new file mode 100644 index 000000000..97fd1fbf4 --- /dev/null +++ b/e2e/har/420119b1718a98f62bd1186d4235d2d7b8589221.json @@ -0,0 +1 @@ +[[{"dbId":162582,"displayName":"Signal Transduction","stId":"R-HSA-162582","name":["Signal Transduction","Signaling Pathways"],"stIdVersion":"R-HSA-162582.13","oldStId":"REACT_111102","schemaClass":"TopLevelPathway","speciesName":"Homo sapiens","releaseDate":"2011-09-20","releaseStatus":"UPDATED","hasDiagram":true,"hasEHLD":true,"diagramWidth":631,"diagramHeight":589,"inferred":false,"inDisease":false}]] \ No newline at end of file diff --git a/e2e/har/4e6845bc507dcb7cce3bd0e7a074966c3bcbd757.json b/e2e/har/4e6845bc507dcb7cce3bd0e7a074966c3bcbd757.json new file mode 100644 index 000000000..c3e4c84df --- /dev/null +++ b/e2e/har/4e6845bc507dcb7cce3bd0e7a074966c3bcbd757.json @@ -0,0 +1 @@ +[[{"dbId":9909396,"displayName":"Circadian clock","stId":"R-HSA-9909396","name":["Circadian clock"],"stIdVersion":"R-HSA-9909396.2","schemaClass":"TopLevelPathway","doi":"10.3180/R-HSA-9909396.1","speciesName":"Homo sapiens","releaseDate":"2025-03-26","hasDiagram":true,"hasEHLD":true,"diagramWidth":655,"diagramHeight":552,"inferred":false,"inDisease":false}]] \ No newline at end of file diff --git a/e2e/har/5121a5bb1c914420b5a6df94ba3586b8492bd6cd.json b/e2e/har/5121a5bb1c914420b5a6df94ba3586b8492bd6cd.json new file mode 100644 index 000000000..f09266a2d --- /dev/null +++ b/e2e/har/5121a5bb1c914420b5a6df94ba3586b8492bd6cd.json @@ -0,0 +1 @@ +[{"stId":"R-HSA-9909396","name":"Circadian clock","species":"Homo sapiens","url":"/PathwayBrowser/#/R-HSA-9909396","type":"TopLevelPathway"}] \ No newline at end of file diff --git a/e2e/har/downloads--diagram-downloads-a-figure-that-cannot-be-made-says-so-rathe-ab20f9.har b/e2e/har/downloads--diagram-downloads-a-figure-that-cannot-be-made-says-so-rathe-ab20f9.har new file mode 100644 index 000000000..b77359432 --- /dev/null +++ b/e2e/har/downloads--diagram-downloads-a-figure-that-cannot-be-made-says-so-rathe-ab20f9.har @@ -0,0 +1 @@ +{"log":{"version":"1.2","creator":{"name":"Playwright","version":"1.63.0"},"browser":{"name":"chromium","version":"153.0.8010.12"},"entries":[{"startedDateTime":"2026-09-20T03:56:43.301Z","time":2.85,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/database/version","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/database/version"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3dde6e2c83b16a7-IAD"},{"name":"content-length","value":"2"},{"name":"content-type","value":"text/plain;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:56:43 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=Pc6OrXCXA5iJxKGHsZLS18xIShv2YXhdPi9KyAxlN5nXh3aSnjNHjHYGQDIQlIZjTnO%2FIs1BlmO%2BnUNuS8qKSOdqA67WTgV0Udz4Ew7Ef5LmNHkD5fYjS6m7QzhOgd5k9PqiHA%3D%3D\"}]}"},{"name":"server","value":"cloudflare"}],"content":{"size":-1,"mimeType":"text/plain;charset=UTF-8","_file":"812ed4562d3211363a7b813aa9cd2cf042b63bb2.txt"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":2.85},"_frameref":"frame@8a3bd4063aa635b73d278f7616963c6f","_monotonicTime":3779.348,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:56:43.305Z","time":1.781,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/species/main","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/species/main"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3dde6e2c84016a7-IAD"},{"name":"content-encoding","value":"gzip"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:56:44 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=Rn%2FdlgTegPVse5DUhs%2FL45bSwF01r1SYw0UZGIrpwTl5U%2FCz33bPq0wDgkePRBq2NTfS%2BHvDXPng7k9t5vmTCrqCRorELXfvsJay1LXCNTg9y%2BeTCBPJtOMXp3Jm4pA9vX7d%2Fg%3D%3D\"}]}"},{"name":"server","value":"cloudflare"},{"name":"vary","value":"accept-encoding"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"b1aee4d715fbe327136decb78e604b0ab8464ced.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":1.781},"_frameref":"frame@8a3bd4063aa635b73d278f7616963c6f","_monotonicTime":3780.113,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:56:43.306Z","time":1.996,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/query/enhanced/v2/R-HSA-9909396?fetchIncomingRelationships=true&summariseReferenceEntity=false&includeDisease=true&includeRef=true&view=nested-aggregated","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/query/enhanced/v2/R-HSA-9909396?fetchIncomingRelationships=true&summariseReferenceEntity=false&includeDisease=true&includeRef=true&view=nested-aggregated"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[{"name":"fetchIncomingRelationships","value":"true"},{"name":"summariseReferenceEntity","value":"false"},{"name":"includeDisease","value":"true"},{"name":"includeRef","value":"true"},{"name":"view","value":"nested-aggregated"}],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3dde6e2c84216a7-IAD"},{"name":"content-encoding","value":"gzip"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:56:43 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=sfGPtx8yue2eHqxi7FRTdFVdPBH2rGwcuct13yOQt4TEomHb61xCA18eCyO2pa1oxPzD9lQqBQ81gime0lGnFcWn1EWSjayrX1id5JGs%2FuoLsXHMQ527o1rgpLeC%2BccTdRVAcg%3D%3D\"}]}"},{"name":"server","value":"cloudflare"},{"name":"vary","value":"accept-encoding"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"e062604f920e512f60ed70e0dcbf3947d307e661.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":1.996},"_frameref":"frame@8a3bd4063aa635b73d278f7616963c6f","_monotonicTime":3780.523,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:56:43.306Z","time":1.344,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/event/R-HSA-9909396/ancestors?includeRef=true&view=nested-aggregated","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/event/R-HSA-9909396/ancestors?includeRef=true&view=nested-aggregated"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[{"name":"includeRef","value":"true"},{"name":"view","value":"nested-aggregated"}],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3dde6e2c84416a7-IAD"},{"name":"content-encoding","value":"zstd"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:56:44 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=Tn4JizRbDGTYqO4960vSfOqpF6Z8EtCw6bG75OVveNLEx2xQ8M7wRGYdhNVYrYD9Wm8rTwZ9RRfMJpE%2Blo1gRpLfu2C%2FJ9V1stbsWIQZ2NuH2Ma1Ths9%2FgN1WvFq%2B%2BHs32L4%2BQ%3D%3D\"}]}"},{"name":"server","value":"cloudflare"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"4e6845bc507dcb7cce3bd0e7a074966c3bcbd757.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":1.344},"_frameref":"frame@8a3bd4063aa635b73d278f7616963c6f","_monotonicTime":3780.873,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:56:43.307Z","time":4.274,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/query/enhanced/v2/R-HSA-9909396?fetchIncomingRelationships=true&summariseReferenceEntity=true&includeDisease=true&includeRef=true&view=nested-aggregated","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/query/enhanced/v2/R-HSA-9909396?fetchIncomingRelationships=true&summariseReferenceEntity=true&includeDisease=true&includeRef=true&view=nested-aggregated"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[{"name":"fetchIncomingRelationships","value":"true"},{"name":"summariseReferenceEntity","value":"true"},{"name":"includeDisease","value":"true"},{"name":"includeRef","value":"true"},{"name":"view","value":"nested-aggregated"}],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3dde6e2c84716a7-IAD"},{"name":"content-encoding","value":"gzip"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:56:43 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=T2iP2cuO6pjNe3qNI6uK6cZpMdWtlkXR2vLHr45R2aiPUAGNSPoEh%2BTXq9ONh8npnUNjdlpbaTgJ1IICrtUbEAiZXy4r61aYFt76qDRFxQsx0EgVWi%2FMtu7%2FqhtHnngT18Jljg%3D%3D\"}]}"},{"name":"server","value":"cloudflare"},{"name":"vary","value":"accept-encoding"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"e062604f920e512f60ed70e0dcbf3947d307e661.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":4.274},"_frameref":"frame@8a3bd4063aa635b73d278f7616963c6f","_monotonicTime":3781.151,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:56:43.311Z","time":2.367,"request":{"method":"GET","url":"http://localhost:4200/ExperimentDigester/experiments/summaries","httpVersion":"HTTP/1.1","cookies":[],"headers":[{"name":"Accept","value":"application/json, text/plain, */*"},{"name":"Accept-Encoding","value":"gzip, deflate, br, zstd"},{"name":"Accept-Language","value":"en-US"},{"name":"Connection","value":"keep-alive"},{"name":"Host","value":"localhost:4200"},{"name":"Referer","value":"http://localhost:4200/PathwayBrowser/R-HSA-9909396"},{"name":"Sec-Fetch-Dest","value":"empty"},{"name":"Sec-Fetch-Mode","value":"cors"},{"name":"Sec-Fetch-Site","value":"same-origin"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""}],"queryString":[],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"OK","httpVersion":"HTTP/1.1","cookies":[],"headers":[{"name":"connection","value":"close"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:56:43 GMT"},{"name":"transfer-encoding","value":"chunked"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"5e25288a19ddb81e5e80ee5d8aa56f19cd68dd6e.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":2.367},"_frameref":"frame@8a3bd4063aa635b73d278f7616963c6f","_monotonicTime":3781.521,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:56:43.334Z","time":5.59,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/pathways/top/9606","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/pathways/top/9606"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3dde6e2d89016a7-IAD"},{"name":"content-encoding","value":"gzip"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:56:43 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=3PrGYfQZ19uhUxueJEvzB5JG517wORVRO4EFFLh1Ab1qkyY9J7X1dgwHhinrj6sUYhxJUv797IYCJ7IsHyeF%2FDOHbMS8zFQXtDvtAqmiabS%2FcBA%2Fa57EFdyjk0gJfXqEXcVz1w%3D%3D\"}]}"},{"name":"server","value":"cloudflare"},{"name":"vary","value":"accept-encoding"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"28a2743b73a578fbfc87d6ec212f2dababf479e3.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":5.59},"_frameref":"frame@8a3bd4063aa635b73d278f7616963c6f","_monotonicTime":3783.579,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:56:43.538Z","time":15.614,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/interactors/psicquic/resources/","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/interactors/psicquic/resources/"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3dde6e43c3816a7-IAD"},{"name":"content-encoding","value":"gzip"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:56:43 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=D6it226y2uw8xv4XBAhIjtVSd5OCKXY%2FJdQKVrJLSt0keFkpqcGLhQs3rRS5uoQagAgD0DjKBm17aE2qorI%2FfWnrhvUB6Hbn5%2B3dL9C84mdq8WCyxIA%2FQe5G9GxQJX2L6r2WtA%3D%3D\"}]}"},{"name":"server","value":"cloudflare"},{"name":"vary","value":"accept-encoding"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"49ce5806850fd0553fd0b952f09c20c83ecbd520.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":15.614},"_frameref":"frame@8a3bd4063aa635b73d278f7616963c6f","_monotonicTime":3793.19,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:56:44.149Z","time":2.449,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/query/enhanced/v2/R-HSA-9909396?includeRef=true&view=nested-aggregated&summariseReferenceEntity=false&includeDisease=true","httpVersion":"h3","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/query/enhanced/v2/R-HSA-9909396?includeRef=true&view=nested-aggregated&summariseReferenceEntity=false&includeDisease=true"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[{"name":"includeRef","value":"true"},{"name":"view","value":"nested-aggregated"},{"name":"summariseReferenceEntity","value":"false"},{"name":"includeDisease","value":"true"}],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"h3","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3dde6e7ff5ccec0-IAD"},{"name":"content-encoding","value":"gzip"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:56:44 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"priority","value":"u=1,i"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=Ln0uZu%2BkYikKpRrGGHe35dfQ6TCU%2Fkv6gTS0ggLGF%2BcqaKyYJ6Ju4rhsissgQ0RiiuFmNmp3X8ywpgtdX3tkPtnIXh8EX9OQKb63izWcfzkcr77BWPQ9i7Magk0Gvr%2BSgooAFQ%3D%3D\"}]}"},{"name":"server","value":"cloudflare"},{"name":"server-timing","value":"cfExtPri"},{"name":"vary","value":"accept-encoding"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"e062604f920e512f60ed70e0dcbf3947d307e661.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":2.449},"_frameref":"frame@8a3bd4063aa635b73d278f7616963c6f","_monotonicTime":4184.259,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:56:44.258Z","time":2.965,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/detail/R-HSA-9909396/locationsInPWB","httpVersion":"h3","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/detail/R-HSA-9909396/locationsInPWB"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"h3","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3dde6e8af6bcec0-IAD"},{"name":"content-encoding","value":"zstd"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:56:44 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"priority","value":"u=1,i"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=1WrT9NZylMnlLeO0B49hryuFAzZDTcRD7tWJHAxipFUFSvvIG21jShQCsgY92Z65paea5j8hK6zwhLG%2B7QBnhvh5JARCzTg6mplEnYlcZbHx9IemuJ9mwqWLJyG38E%2FBstNPtA%3D%3D\"}]}"},{"name":"server","value":"cloudflare"},{"name":"server-timing","value":"cfExtPri"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"5121a5bb1c914420b5a6df94ba3586b8492bd6cd.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":2.965},"_frameref":"frame@8a3bd4063aa635b73d278f7616963c6f","_monotonicTime":4571.57,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:56:44.662Z","time":1.728,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/event/R-HSA-9909396/ancestors","httpVersion":"h3","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/event/R-HSA-9909396/ancestors"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"h3","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3dde6eb2fa3cec0-IAD"},{"name":"content-encoding","value":"zstd"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:56:45 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"priority","value":"u=1,i"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=knbG89wXM1yI%2B63FUblSujy1SBqUKWWF5XqS0zd8XF2kobNGZR22vz2PPcugEuhFUc4G0GkialxIiz%2FTLXGMYIX7RwvTDKZPM%2FTkemZoWjnQS%2BgaUI7DTAcilC2mH8P0%2BmHT1Q%3D%3D\"}]}"},{"name":"server","value":"cloudflare"},{"name":"server-timing","value":"cfExtPri"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"4e6845bc507dcb7cce3bd0e7a074966c3bcbd757.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":1.728},"_frameref":"frame@8a3bd4063aa635b73d278f7616963c6f","_monotonicTime":4695.534,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:56:44.715Z","time":5.425,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/eventsHierarchy/9606?pathwaysOnly=true&view=nested-aggregated","httpVersion":"h3","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/eventsHierarchy/9606?pathwaysOnly=true&view=nested-aggregated"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[{"name":"pathwaysOnly","value":"true"},{"name":"view","value":"nested-aggregated"}],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"h3","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3dde6eb8fabcec0-IAD"},{"name":"content-disposition","value":"inline; swaggerDownload=\"attachment\"; filename=\"9606.json\""},{"name":"content-encoding","value":"gzip"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:56:44 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"priority","value":"u=1,i"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=eZXGh0ioVW%2FOKsrCzT169JjuJJH040cZgxUz82Iv6LLHebLigorIobvsfg1FqGTp0%2BoyAiAc9vgUa0at%2Fthv0VQaAVrqnNRjG30dMQjx8pgjnwLFcBseyxjwv7Q%2FJs7qdj%2F4uQ%3D%3D\"}]}"},{"name":"server","value":"cloudflare"},{"name":"server-timing","value":"cfExtPri"},{"name":"vary","value":"accept-encoding"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"70588a05ec802f3b42d4de1136192d2ff069b195.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":5.425},"_frameref":"frame@8a3bd4063aa635b73d278f7616963c6f","_monotonicTime":4780.545,"_resourceType":"fetch"}]}} \ No newline at end of file diff --git a/e2e/har/downloads--diagram-downloads-a-heavy-illustration-downloads-the-illustr-bd7e3c.har b/e2e/har/downloads--diagram-downloads-a-heavy-illustration-downloads-the-illustr-bd7e3c.har new file mode 100644 index 000000000..6c18a503f --- /dev/null +++ b/e2e/har/downloads--diagram-downloads-a-heavy-illustration-downloads-the-illustr-bd7e3c.har @@ -0,0 +1 @@ +{"log":{"version":"1.2","creator":{"name":"Playwright","version":"1.63.0"},"browser":{"name":"chromium","version":"153.0.8010.12"},"entries":[{"startedDateTime":"2026-09-20T03:32:08.640Z","time":1.898,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/database/version","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/database/version"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3ddc2e22b74e6e8-IAD"},{"name":"content-length","value":"2"},{"name":"content-type","value":"text/plain;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:32:08 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=ayUN8j%2BH10sApNuFaeqx59e6WtDw7J1w0N9OoTalHhBFQ17cRFq%2FGQ3CyT1GXCp6RxUY6IJF6utko9V%2Bqeq%2BkL%2FAN5w9d%2FmElOnYKEQR9BFC9cv%2BDzpHiSHjm57zOm2eB0x9qw%3D%3D\"}]}"},{"name":"server","value":"cloudflare"}],"content":{"size":-1,"mimeType":"text/plain;charset=UTF-8","_file":"812ed4562d3211363a7b813aa9cd2cf042b63bb2.txt"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":1.898},"_frameref":"frame@6103be98901eec95baaff621ebbe0a0e","_monotonicTime":3775.944,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:32:08.645Z","time":1.496,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/species/main","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/species/main"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3ddc2e22b6de6e8-IAD"},{"name":"content-encoding","value":"gzip"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:32:09 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=U%2BLCe%2Ft33QuLwprTY7EbKyTyDTAl1gDU5GFogPF%2Bh7gNz3a4K0hBGSRYQ0pija6rDLvvrxhiqbZR6DB9QKM0Xw5BQ6%2Byya3Ks4oqTxwXmoMcRX5rS%2B9WUy8tt%2BnGMS%2BmqxwuiA%3D%3D\"}]}"},{"name":"server","value":"cloudflare"},{"name":"vary","value":"accept-encoding"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"b1aee4d715fbe327136decb78e604b0ab8464ced.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":1.496},"_frameref":"frame@6103be98901eec95baaff621ebbe0a0e","_monotonicTime":3780.202,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:32:08.646Z","time":2.95,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/query/enhanced/v2/R-HSA-162582?fetchIncomingRelationships=true&summariseReferenceEntity=false&includeDisease=true&includeRef=true&view=nested-aggregated","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/query/enhanced/v2/R-HSA-162582?fetchIncomingRelationships=true&summariseReferenceEntity=false&includeDisease=true&includeRef=true&view=nested-aggregated"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[{"name":"fetchIncomingRelationships","value":"true"},{"name":"summariseReferenceEntity","value":"false"},{"name":"includeDisease","value":"true"},{"name":"includeRef","value":"true"},{"name":"view","value":"nested-aggregated"}],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3ddc2e22b78e6e8-IAD"},{"name":"content-encoding","value":"gzip"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:32:09 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=j%2B%2FDtvMKRN4v7dgguj%2BnwfwIGDX3Wo6AzyResqAVm0n7PYKSskGmN%2BhcMAl%2B0lbl%2B9KFyX4xn5zwGq0CwQp39qIvsW5isw5DH8pPQExUsB8%2BnQQ8zZSLJS1nKtEnO7UD0VwTbQ%3D%3D\"}]}"},{"name":"server","value":"cloudflare"},{"name":"vary","value":"accept-encoding"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"916da5b08378c97ca97a6601d5a55ea900bc5824.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":2.95},"_frameref":"frame@6103be98901eec95baaff621ebbe0a0e","_monotonicTime":3780.755,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:32:08.646Z","time":1.865,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/event/R-HSA-162582/ancestors?includeRef=true&view=nested-aggregated","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/event/R-HSA-162582/ancestors?includeRef=true&view=nested-aggregated"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[{"name":"includeRef","value":"true"},{"name":"view","value":"nested-aggregated"}],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3ddc2e22b72e6e8-IAD"},{"name":"content-encoding","value":"zstd"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:32:09 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=G6zRSxVgZaQvJMn4C9LwTPHQAVjFoOZuWbq%2Bt84Bgmw2XCJZ303%2BJP1Ci83fHMFV9YFpMaplE5jyoClJcex8HHHekDLQAETPA2TTtc4OTrHJfxDghC%2FzNzbxsC61wtx2iTb%2Blw%3D%3D\"}]}"},{"name":"server","value":"cloudflare"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"420119b1718a98f62bd1186d4235d2d7b8589221.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":1.865},"_frameref":"frame@6103be98901eec95baaff621ebbe0a0e","_monotonicTime":3781.117,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:32:08.647Z","time":2.923,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/query/enhanced/v2/R-HSA-162582?fetchIncomingRelationships=true&summariseReferenceEntity=true&includeDisease=true&includeRef=true&view=nested-aggregated","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/query/enhanced/v2/R-HSA-162582?fetchIncomingRelationships=true&summariseReferenceEntity=true&includeDisease=true&includeRef=true&view=nested-aggregated"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[{"name":"fetchIncomingRelationships","value":"true"},{"name":"summariseReferenceEntity","value":"true"},{"name":"includeDisease","value":"true"},{"name":"includeRef","value":"true"},{"name":"view","value":"nested-aggregated"}],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3ddc2e22b76e6e8-IAD"},{"name":"content-encoding","value":"gzip"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:32:09 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=YnZBG%2FhwsLb9rFJilfZ5AzRwsjJvrvWfeuu1u1pOtos3JKwK4xKFcTaCnu7XRVeJqfQG4t2YoEx4xSEIPCjfjdD6raFXQ%2FseohroieXbEUx6C3pNYnxrMmslBKtyMo4brgDPRw%3D%3D\"}]}"},{"name":"server","value":"cloudflare"},{"name":"vary","value":"accept-encoding"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"916da5b08378c97ca97a6601d5a55ea900bc5824.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":2.923},"_frameref":"frame@6103be98901eec95baaff621ebbe0a0e","_monotonicTime":3781.459,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:32:08.650Z","time":1.752,"request":{"method":"GET","url":"http://localhost:4200/ExperimentDigester/experiments/summaries","httpVersion":"HTTP/1.1","cookies":[],"headers":[{"name":"Accept","value":"application/json, text/plain, */*"},{"name":"Accept-Encoding","value":"gzip, deflate, br, zstd"},{"name":"Accept-Language","value":"en-US"},{"name":"Connection","value":"keep-alive"},{"name":"Cookie","value":"_ga_EDHZ92GXZP=GS2.1.s1789875128$o1$g0$t1789875128$j60$l0$h0; _ga=GA1.1.52744065.1789875128"},{"name":"Host","value":"localhost:4200"},{"name":"Referer","value":"http://localhost:4200/PathwayBrowser/R-HSA-162582"},{"name":"Sec-Fetch-Dest","value":"empty"},{"name":"Sec-Fetch-Mode","value":"cors"},{"name":"Sec-Fetch-Site","value":"same-origin"},{"name":"User-Agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""}],"queryString":[],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"OK","httpVersion":"HTTP/1.1","cookies":[],"headers":[{"name":"connection","value":"close"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:32:08 GMT"},{"name":"transfer-encoding","value":"chunked"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"5e25288a19ddb81e5e80ee5d8aa56f19cd68dd6e.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":1.752},"_frameref":"frame@6103be98901eec95baaff621ebbe0a0e","_monotonicTime":3781.65,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:32:08.671Z","time":4.639,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/pathways/top/9606","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/pathways/top/9606"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3ddc2e23b8de6e8-IAD"},{"name":"content-encoding","value":"gzip"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:32:08 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=xMD3wxWE9Izd4WUVu2X1VPZa%2FaxP0UL4WglR5Hx0H91qIgan1DlJiy3WLHIdgRnyroTXolXvKewX43u0LI7%2B7%2B5y%2Bp2Ie5ODRHD931c4kkBCT1Qzjs%2BTmQF8Ifzx3ISRKCGfdQ%3D%3D\"}]}"},{"name":"server","value":"cloudflare"},{"name":"vary","value":"accept-encoding"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"28a2743b73a578fbfc87d6ec212f2dababf479e3.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":4.639},"_frameref":"frame@6103be98901eec95baaff621ebbe0a0e","_monotonicTime":3785.742,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:32:08.880Z","time":16.57,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/interactors/psicquic/resources/","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/interactors/psicquic/resources/"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"HTTP/2.0","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3ddc2e39e09e6e8-IAD"},{"name":"content-encoding","value":"gzip"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:32:08 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=7jn3pOC9dO9bSxCwyuVUm3hQRH0EBAiXjfiRp%2FZPFz3sXxXiA7ydwla38rHiY0zUnhwvYSQ5ggzLOEch3Q1%2F8dtrgMCumQWDFuKMETePMzrpIWfYVJMssuA9xlxy867rter8VA%3D%3D\"}]}"},{"name":"server","value":"cloudflare"},{"name":"vary","value":"accept-encoding"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"49ce5806850fd0553fd0b952f09c20c83ecbd520.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":16.57},"_frameref":"frame@6103be98901eec95baaff621ebbe0a0e","_monotonicTime":3790.293,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:32:09.532Z","time":2.734,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/query/enhanced/v2/R-HSA-162582?includeRef=true&view=nested-aggregated&summariseReferenceEntity=false&includeDisease=true","httpVersion":"h3","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/query/enhanced/v2/R-HSA-162582?includeRef=true&view=nested-aggregated&summariseReferenceEntity=false&includeDisease=true"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[{"name":"includeRef","value":"true"},{"name":"view","value":"nested-aggregated"},{"name":"summariseReferenceEntity","value":"false"},{"name":"includeDisease","value":"true"}],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"h3","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3ddc2e79974c56e-IAD"},{"name":"content-encoding","value":"gzip"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:32:09 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"priority","value":"u=1,i"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=XmHOe9uesDx62YJCz7aeNiMl6tKz9q%2Bj%2BUqzhEsx9ZiXRgyq%2BEDDAOejh%2B9xqbxOdIOvXIJL9feJmUCS5g5ZJpSU27URqbxN3tXY7U2xwpE1NTmDn%2BXEZpFR95ImLjnMQGQTrQ%3D%3D\"}]}"},{"name":"server","value":"cloudflare"},{"name":"server-timing","value":"cfExtPri"},{"name":"vary","value":"accept-encoding"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"916da5b08378c97ca97a6601d5a55ea900bc5824.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":2.734},"_frameref":"frame@6103be98901eec95baaff621ebbe0a0e","_monotonicTime":4248.33,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:32:09.589Z","time":2.288,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/detail/R-HSA-162582/locationsInPWB","httpVersion":"h3","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/detail/R-HSA-162582/locationsInPWB"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"h3","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3ddc2e7f976c56e-IAD"},{"name":"content-encoding","value":"zstd"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:32:09 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"priority","value":"u=1,i"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=TnF%2BRbT3vSByzRWKIuo4BT7QQBHmTi%2B%2BpH7TrbrJsANM4BlKv0sHTx5QiCQNvGPN9Z5%2FRORNLFw5cGyM9jVqDJZCGM%2BdGrfl5NCImCCPyzgvzILJEymzJMFhpLC1RvPcfIY91g%3D%3D\"}]}"},{"name":"server","value":"cloudflare"},{"name":"server-timing","value":"cfExtPri"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"f1ce0b5a347857f93456f236120720213713a8e2.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":2.288},"_frameref":"frame@6103be98901eec95baaff621ebbe0a0e","_monotonicTime":4646.217,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:32:10.114Z","time":1.898,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/event/R-HSA-162582/ancestors","httpVersion":"h3","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/event/R-HSA-162582/ancestors"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"h3","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3ddc2eb397ac56e-IAD"},{"name":"content-encoding","value":"zstd"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:32:11 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"priority","value":"u=1,i"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=JAvRePjzvoL%2FG3sXEhxLWck3T5pcBj5b1d1i7FVYVb8MlZFmEvkT86PlULpgsfZANP7TQLxhOGYlVvecD6sbIrxLIrF9umQaxFmSuXX9qHW9SDVvfl3hmR5UyKO3EhGPCtUeKw%3D%3D\"}]}"},{"name":"server","value":"cloudflare"},{"name":"server-timing","value":"cfExtPri"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"420119b1718a98f62bd1186d4235d2d7b8589221.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":1.898},"_frameref":"frame@6103be98901eec95baaff621ebbe0a0e","_monotonicTime":4825.085,"_resourceType":"fetch"},{"startedDateTime":"2026-09-20T03:32:10.220Z","time":3.981,"request":{"method":"GET","url":"https://beta.reactome.org/ContentService/data/eventsHierarchy/9606?pathwaysOnly=true&view=nested-aggregated","httpVersion":"h3","cookies":[],"headers":[{"name":":authority","value":"beta.reactome.org"},{"name":":method","value":"GET"},{"name":":path","value":"/ContentService/data/eventsHierarchy/9606?pathwaysOnly=true&view=nested-aggregated"},{"name":":scheme","value":"https"},{"name":"accept","value":"application/json, text/plain, */*"},{"name":"accept-encoding","value":"gzip, deflate, br, zstd"},{"name":"accept-language","value":"en-US"},{"name":"origin","value":"http://localhost:4200"},{"name":"priority","value":"u=1, i"},{"name":"referer","value":"http://localhost:4200/"},{"name":"sec-ch-ua","value":"\"HeadlessChrome\";v=\"153\", \"Not_A Brand\";v=\"8\", \"Chromium\";v=\"153\""},{"name":"sec-ch-ua-mobile","value":"?0"},{"name":"sec-ch-ua-platform","value":"\"Windows\""},{"name":"sec-fetch-dest","value":"empty"},{"name":"sec-fetch-mode","value":"cors"},{"name":"sec-fetch-site","value":"cross-site"},{"name":"user-agent","value":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/153.0.8010.12 Safari/537.36"}],"queryString":[{"name":"pathwaysOnly","value":"true"},{"name":"view","value":"nested-aggregated"}],"headersSize":-1,"bodySize":-1},"response":{"status":200,"statusText":"","httpVersion":"h3","cookies":[],"headers":[{"name":"access-control-allow-origin","value":"*"},{"name":"alt-svc","value":"h3=\":443\"; ma=86400"},{"name":"cf-cache-status","value":"DYNAMIC"},{"name":"cf-ray","value":"a3ddc2ebe97dc56e-IAD"},{"name":"content-disposition","value":"inline; swaggerDownload=\"attachment\"; filename=\"9606.json\""},{"name":"content-encoding","value":"gzip"},{"name":"content-type","value":"application/json;charset=UTF-8"},{"name":"date","value":"Sun, 20 Sep 2026 03:32:10 GMT"},{"name":"nel","value":"{\"report_to\":\"cf-nel\",\"success_fraction\":0.0,\"max_age\":604800}"},{"name":"priority","value":"u=1,i"},{"name":"report-to","value":"{\"group\":\"cf-nel\",\"max_age\":604800,\"endpoints\":[{\"url\":\"https://a.nel.cloudflare.com/report/v4?s=Mol1yWV%2F9qq37%2B6xBaWjtdGyX3Andl123Oc1HOJiM2x9%2ByadRemzVNOHjj48hyYfNplnYlM4e3%2FM89%2BfyCSXd1Rsl4HLbpZcMY3c5lsahOZjIjic5Hezy71ZcKq%2BBBgIknRQAg%3D%3D\"}]}"},{"name":"server","value":"cloudflare"},{"name":"server-timing","value":"cfExtPri"},{"name":"vary","value":"accept-encoding"}],"content":{"size":-1,"mimeType":"application/json;charset=UTF-8","_file":"70588a05ec802f3b42d4de1136192d2ff069b195.json"},"headersSize":-1,"bodySize":-1,"redirectURL":""},"cache":{},"timings":{"send":-1,"wait":-1,"receive":3.981},"_frameref":"frame@6103be98901eec95baaff621ebbe0a0e","_monotonicTime":4981.802,"_resourceType":"fetch"}]}} \ No newline at end of file diff --git a/e2e/har/f1ce0b5a347857f93456f236120720213713a8e2.json b/e2e/har/f1ce0b5a347857f93456f236120720213713a8e2.json new file mode 100644 index 000000000..19051e0d8 --- /dev/null +++ b/e2e/har/f1ce0b5a347857f93456f236120720213713a8e2.json @@ -0,0 +1 @@ +[{"stId":"R-HSA-162582","name":"Signal Transduction","species":"Homo sapiens","url":"/PathwayBrowser/#/R-HSA-162582","type":"TopLevelPathway"}] \ No newline at end of file diff --git a/projects/pathway-browser/src/app/details/tabs/download-tab/download-tab.component.html b/projects/pathway-browser/src/app/details/tabs/download-tab/download-tab.component.html index c7958f3af..d51d94e92 100644 --- a/projects/pathway-browser/src/app/details/tabs/download-tab/download-tab.component.html +++ b/projects/pathway-browser/src/app/details/tabs/download-tab/download-tab.component.html @@ -41,6 +41,10 @@

Pathway Diagram

} + @if (downloadFailure(); as reason) { + + } + diff --git a/projects/pathway-browser/src/app/details/tabs/download-tab/download-tab.component.scss b/projects/pathway-browser/src/app/details/tabs/download-tab/download-tab.component.scss index 5cfba93c8..ba6766a82 100644 --- a/projects/pathway-browser/src/app/details/tabs/download-tab/download-tab.component.scss +++ b/projects/pathway-browser/src/app/details/tabs/download-tab/download-tab.component.scss @@ -76,3 +76,12 @@ width: 100cqw; margin-top: 20px; } + +// A figure that could not be made says so here, in the panel the button is in. +// `--negative` is the theme's own token for this and is redefined for dark +// mode, so the text stays readable in both. +.download-failure { + color: var(--negative); + font-size: 0.85rem; + margin: 8px 0 0; +} diff --git a/projects/pathway-browser/src/app/details/tabs/download-tab/download-tab.component.ts b/projects/pathway-browser/src/app/details/tabs/download-tab/download-tab.component.ts index 272b1dd81..84e3f66eb 100644 --- a/projects/pathway-browser/src/app/details/tabs/download-tab/download-tab.component.ts +++ b/projects/pathway-browser/src/app/details/tabs/download-tab/download-tab.component.ts @@ -78,6 +78,15 @@ export class DownloadTabComponent { private dataState: DataStateService = inject(DataStateService); public analysis: AnalysisService = inject(AnalysisService); private download: DownloadService = inject(DownloadService); + + /** + * Why the last figure did not download, if it did not. + * + * A figure made in the browser can fail for a reason worth reading -- one + * illustration cannot be rasterised at all -- and until this was here the + * button simply did nothing and said so only to the console. + */ + readonly downloadFailure = this.download.failure; protected readonly includeSubpathways = includeSubpathways; public ehld: EhldService = inject(EhldService); private dialog: MatDialog = inject(MatDialog); @@ -144,20 +153,27 @@ export class DownloadTabComponent { const formats = isEHLD ? this.reacfoamFormats : this.formats; return formats.map((format) => { - const hasAnalysis = isEHLD && !this.hasResult() ? format : false; - const isExportable = isEHLD - ? hasAnalysis - : [DownloadFormat.PPTX, DownloadFormat.GIF].includes(format); + // An illustration is drawn in the page as inline SVG, so the browser can + // always produce the file itself and does it better: `downloadImage` + // rasterises at scale 3 against the render service's 2, and handles + // JPEG's lack of an alpha channel. That path was already taken whenever + // an analysis was running; the other branch sent an illustration with no + // analysis to the content service instead. + // + // Which was a 404 for all 218 illustrated pathways on a box where + // `download/current/ehld/` is empty -- the exporter reads those files + // from disk and cannot draw anything without them. Asking the page, which + // already has the illustration on screen, depends on nothing being + // present anywhere. + const isExportable = !isEHLD && [DownloadFormat.PPTX, DownloadFormat.GIF].includes(format); // server side if (isExportable) { return { format, - // A diagram's GIF and PowerPoint come from the render service, which - // drives the site's own renderer; an illustration's still go through - // the content service, which serves the same illustration file either - // way. That is why a downloaded GIF used to look like the old site - // and no longer does. - url: signal(isEHLD ? this.getExportUrl(format) : this.getRenderUrl(format)), + // GIF and PowerPoint come from the render service, which drives the + // site's own renderer. That is why a downloaded GIF used to look like + // the old site and no longer does. + url: signal(this.getRenderUrl(format)), icon: { id: 'image' }, download: true, }; @@ -302,12 +318,6 @@ export class DownloadTabComponent { return url.toString(); } - getExportUrl(format: string) { - const analysisUrl = `${CONTENT_SERVICE}/exporter/diagram/${this.pathwayId()}.${format}?token=${this.token()}`; - const url = `${CONTENT_SERVICE}/exporter/diagram/${this.pathwayId()}.${format}`; - return this.hasResult() ? analysisUrl : url; - } - onReacfoamDownload(format: DownloadFormat) { this.download.requestDownload(DownloadTarget.REACFOAM, format); } diff --git a/projects/pathway-browser/src/app/diagram/diagram.component.ts b/projects/pathway-browser/src/app/diagram/diagram.component.ts index 730a5933e..5e64b7464 100644 --- a/projects/pathway-browser/src/app/diagram/diagram.component.ts +++ b/projects/pathway-browser/src/app/diagram/diagram.component.ts @@ -210,7 +210,7 @@ export class DiagramComponent implements AfterViewInit, OnDestroy { // Nothing here awaits, so the effect never needed to be async. The // export runs on its own and reports its own failure. void this.export(request.format).catch((error) => - console.error('Diagram export failed', request.format, error) + this.download.failed(error, `Diagram ${request.format} export failed`) ); this.download.resetDownload(); } diff --git a/projects/pathway-browser/src/app/ehld/ehld.component.ts b/projects/pathway-browser/src/app/ehld/ehld.component.ts index b43c99d0a..dac4c1006 100644 --- a/projects/pathway-browser/src/app/ehld/ehld.component.ts +++ b/projects/pathway-browser/src/app/ehld/ehld.component.ts @@ -124,7 +124,7 @@ export class EhldComponent implements AfterViewInit, OnDestroy { void this.ehldService .downloadImage(request.format) .then(() => this.download.resetDownload()) - .catch((error) => console.error('EHLD image export failed', error)); + .catch((error) => this.download.failed(error, 'EHLD image export failed')); } else if (request?.format === DownloadFormat.SVG) { void this.svgExporter .exportEHLD(this, options) @@ -132,7 +132,7 @@ export class EhldComponent implements AfterViewInit, OnDestroy { this.download.export(svg, request.format, pathwayId); this.download.resetDownload(); }) - .catch((error) => console.error('EHLD SVG export failed', error)); + .catch((error) => this.download.failed(error, 'EHLD SVG export failed')); } }); } diff --git a/projects/pathway-browser/src/app/reacfoam/reacfoam.component.ts b/projects/pathway-browser/src/app/reacfoam/reacfoam.component.ts index 551e999dd..4bea17db8 100644 --- a/projects/pathway-browser/src/app/reacfoam/reacfoam.component.ts +++ b/projects/pathway-browser/src/app/reacfoam/reacfoam.component.ts @@ -240,7 +240,7 @@ export class ReacfoamComponent implements OnDestroy { this.select.set(flaggingResult.matches[0]); } } - })().catch((error) => console.error('Reacfoam update failed', error)); + })().catch((error) => console.error('Reacfoam selection update failed', error)); }); effect( () => @@ -406,7 +406,7 @@ export class ReacfoamComponent implements OnDestroy { this.download.resetDownload(); } loader.close(); - })().catch((error) => console.error('Reacfoam update failed', error)); + })().catch((error) => this.download.failed(error, 'Genome-wide view export failed')); }); } diff --git a/projects/pathway-browser/src/app/render/render.component.ts b/projects/pathway-browser/src/app/render/render.component.ts index 211bcdd40..e7f2fb69a 100644 --- a/projects/pathway-browser/src/app/render/render.component.ts +++ b/projects/pathway-browser/src/app/render/render.component.ts @@ -46,6 +46,18 @@ import type { * interactor overlays and its fonts, and how long that takes is not knowable * from outside. */ + +/** + * The illustration itself, as opposed to anything else drawn by `cr-ehld`. + * + * `#ehld` is the div `ehld.component.html` injects the fetched SVG into. The + * component also renders a 70x70 zoom control, which is an `svg` too and is + * present from the first frame -- so a looser selector finds the control while + * the illustration is still in flight, and both the readiness probe and the + * exporters must agree on which one they mean. + */ +const EHLD_SVG = 'cr-ehld #ehld svg'; + @Component({ selector: 'cr-render', standalone: true, @@ -269,7 +281,18 @@ export class RenderComponent { return null; } - const svg = host.querySelector('cr-ehld svg'); + // `#ehld` is the div the illustration is injected into, and the selector + // has to say so. `cr-ehld svg` matched the component's 70x70 zoom control + // as well, which is in the DOM from the first frame while the illustration + // is still being fetched -- so this reported ready, `exportPng` rasterised + // the control, and the service cached a 140x140 picture of four arrows as + // the pathway. It cleared the 5000-byte floor at 8091 bytes and answered + // 200, so nothing downstream had any reason to doubt it. + // + // Exactly the fault the comment above this describes for the diagram's + // legend, in the branch immediately below it. Gate on the thing the + // exporter reads, not on something near it. + const svg = host.querySelector(EHLD_SVG); if (svg) return { view: 'ehld', nodes: svg.querySelectorAll('*').length }; const reacfoam = this.reacfoam(); @@ -395,7 +418,7 @@ export class RenderComponent { // rasterised. That belongs to the illustration's own service, which knows // that its styling comes from the page's stylesheets and has to be inlined // before the markup means anything on its own. - const svg = document.querySelector('cr-render cr-ehld svg'); + const svg = document.querySelector(`cr-render ${EHLD_SVG}`); if (svg) { return await this.ehldService.rasterise(svg, scale, this.wantsDark ? '#0d1617' : '#ffffff'); } @@ -1366,7 +1389,7 @@ export class RenderComponent { // Through the illustration's own service, which knows that its styling has // to be inlined and its size written down before the markup stands alone. - const svg = document.querySelector('cr-render cr-ehld svg'); + const svg = document.querySelector(`cr-render ${EHLD_SVG}`); if (svg) return this.ehldService.svgMarkup(svg).markup; // The genome-wide view draws to a canvas via FoamTree, so it has its own @@ -1417,7 +1440,7 @@ export class RenderComponent { // same rasteriser the animation frames use. Without this a .png of any // illustrated pathway was a 500 -- and illustrations are the top-level // pathways, so it was the ones a report is most likely to want. - const svg = document.querySelector('cr-render cr-ehld svg'); + const svg = document.querySelector(`cr-render ${EHLD_SVG}`); if (svg) { // No background: a PNG has an alpha channel, and a figure that can sit on // any page is more useful than one with a colour baked in. diff --git a/projects/pathway-browser/src/app/services/download.service.ts b/projects/pathway-browser/src/app/services/download.service.ts index 3b7a460f4..43b767850 100644 --- a/projects/pathway-browser/src/app/services/download.service.ts +++ b/projects/pathway-browser/src/app/services/download.service.ts @@ -59,7 +59,26 @@ export type DownloadRequest = { export class DownloadService { readonly downloadRequest = signal(null); + /** + * Why the last download did not happen, for the reader rather than the console. + * + * A figure made in the browser is produced by whichever component draws the + * view, and all three of them reported a failure with `console.error` and + * nothing else. So a download that could not be made looked exactly like a + * button that does nothing: no file, no message, and no reason to think the + * click had registered. + * + * Found on the one illustration a browser refuses to rasterise -- Circadian + * clock embeds HTML in a ``, which taints the canvas -- where + * the reason was known, specific and useful, and went to a console nobody + * had open. + */ + readonly failure = signal(null); + requestDownload(target: DownloadTarget, format: DownloadFormat, options?: DownloadOptions) { + // A new request clears the last one's complaint; otherwise a reason that has + // been dealt with sits under a download that is working. + this.failure.set(null); this.downloadRequest.set({ target, format, options: options || defaultDownloadOptions }); } @@ -67,6 +86,17 @@ export class DownloadService { this.downloadRequest.set(null); } + /** + * A download that could not be produced: say why, and stop saying it is on its + * way. `whatFailed` names the exporter for the console; the reader gets the + * error's own message when it has one, because those are written to be read. + */ + failed(error: unknown, whatFailed: string) { + console.error(whatFailed, error); + this.failure.set(error instanceof Error && error.message ? error.message : whatFailed); + this.resetDownload(); + } + constructor() {} isRasterFormat(format: DownloadFormat): format is ImageType { diff --git a/projects/pathway-browser/src/app/services/ehld.service.ts b/projects/pathway-browser/src/app/services/ehld.service.ts index 9ae97660d..f67bc1dcf 100644 --- a/projects/pathway-browser/src/app/services/ehld.service.ts +++ b/projects/pathway-browser/src/app/services/ehld.service.ts @@ -522,6 +522,24 @@ export class EhldService { async rasterise(svg: SVGSVGElement, scale: number, background?: string) { const { markup, width, height } = this.svgMarkup(svg); + + // Chromium marks a canvas tainted once an SVG carrying a `foreignObject` is + // drawn onto it, because that element renders arbitrary HTML. `toDataURL` + // then throws a SecurityError, several frames away from the cause, and the + // render service answered a bare "Tainted canvases may not be exported". + // + // One illustration does this: Circadian clock (R-HSA-9909396) carries six, + // each a div with a conic-gradient, which is how a drawing tool exports a + // gradient SVG has no primitive for. The other 217 have none. There is no + // way to rasterise it in a browser -- so this says which file and why, + // rather than leaving a stack trace to be traced back. + if (markup.includes(', which a browser refuses to ' + + 'rasterise; download it as SVG, and ask for the artwork to be re-exported without one' + ); + } + const url = URL.createObjectURL(new Blob([markup], { type: 'image/svg+xml;charset=utf-8' })); try { diff --git a/projects/website-angular/src/app/content/detail/detail-diagram/detail-diagram.component.ts b/projects/website-angular/src/app/content/detail/detail-diagram/detail-diagram.component.ts index 519784a1a..3f1f09aa9 100644 --- a/projects/website-angular/src/app/content/detail/detail-diagram/detail-diagram.component.ts +++ b/projects/website-angular/src/app/content/detail/detail-diagram/detail-diagram.component.ts @@ -43,10 +43,17 @@ export class DetailDiagramComponent { /** * Where the picture comes from when the renderer cannot answer. * - * A cold render takes seconds and a service can be down; the old exporter is - * still there and still draws something for every pathway. Falling back keeps - * the page useful rather than blank -- and once, not repeatedly, because the - * fallback failing would fire error again. + * A cold render takes seconds and a service can be down, so falling back + * keeps the page useful rather than blank -- and once, not repeatedly, + * because the fallback failing would fire error again. + * + * How much it is worth depends on the machine. The Java exporter reads its + * pictures from `download/current/` on disk rather than drawing them, so it + * answers for exactly the pathways whose files are there: all of them on + * production, and on a dev box with a pruned download directory, close to + * none. Worth knowing before treating a green page here as proof the fallback + * works -- 11 of 9,559 diagram files and no illustrations at all, on the box + * this was written on. */ fallback(event: Event) { const image = event.target as HTMLImageElement;