Skip to content

WSI molecular tables and enrichment child - #8

Closed
raylim wants to merge 23 commits into
codex/wsi-release-hardeningfrom
codex/wsi-molecular-context
Closed

raylim wants to merge 23 commits into
codex/wsi-release-hardeningfrom
codex/wsi-molecular-context

Conversation

@raylim

@raylim raylim commented Sep 19, 2026 •

Copy link
Copy Markdown
Owner

Scope

This fork-local child owns WSI mutation, copy-number alteration and structural-variant tables, frequency data, optional OncoKB/CIViC enrichment, transport, row types, orchestration, and tests. It does not own the viewer, slide hierarchy, patient timeline, study clinical-data presentation, or integration-only validation.

Dependency boundary

This PR targets cBioPortal/cbioportal-frontend#5708, branch codex/wsi-release-hardening, at 95ce1ecfd5fabf1cc0ab79fd4c2f33c46e533457.

Published child revision: e7be5157442aa217df4c95e43d22cfaa812a50d0.

OncoKB/CIViC requests use the portal's existing client/proxy contract. Enrichment is optional and failure is nonfatal to slide viewing and frequency data; tile-service endpoints are not used as annotation endpoints.

Validation evidence

The pinned cross-repository workflow run 36072091129 passed the isolated molecular child gate and the authenticated/unauthenticated molecular full-stack browser/API scenario. Local checks also passed: molecular typecheck, 19 focused molecular unit tests, the exact-child production build with the WSI OpenSeadragon bundle assertion, mocked proxy path/body and nonfatal-enrichment browser tests, and the Playwright TypeScript check.

@raylim raylim added the skip-changelog Do not include in release notes label Sep 19, 2026
@raylim
raylim force-pushed the codex/wsi-molecular-context branch from 4a1acbe to 012d07f Compare September 19, 2026 21:46
@raylim raylim changed the title Harden optional WSI molecular context WSI molecular enrichment child Sep 19, 2026
@raylim
raylim force-pushed the codex/wsi-molecular-context branch from 012d07f to 29029ad Compare September 19, 2026 22:17
@raylim raylim changed the title WSI molecular enrichment child WSI molecular tables and enrichment child Sep 19, 2026
@raylim
raylim force-pushed the codex/wsi-molecular-context branch 2 times, most recently from 55d7484 to ee87fee Compare September 20, 2026 00:18
@raylim
raylim force-pushed the codex/wsi-release-hardening branch from 4e3371c to e982b10 Compare September 21, 2026 15:17
@raylim
raylim force-pushed the codex/wsi-molecular-context branch 2 times, most recently from c92200e to 59bf500 Compare September 21, 2026 20:48
@raylim
raylim force-pushed the codex/wsi-release-hardening branch from 1a502be to aa653e9 Compare September 22, 2026 01:55
@raylim
raylim force-pushed the codex/wsi-molecular-context branch from 4762b9c to 764e1ae Compare September 22, 2026 02:01
@raylim
raylim changed the base branch from codex/wsi-release-hardening to master September 22, 2026 02:59
@raylim
raylim changed the base branch from master to codex/wsi-release-hardening September 22, 2026 02:59
@raylim
raylim force-pushed the codex/wsi-molecular-context branch 8 times, most recently from 860b027 to eb848c2 Compare September 23, 2026 18:37
@raylim
raylim force-pushed the codex/wsi-molecular-context branch from c741c67 to 45b3f01 Compare September 24, 2026 07:01
raylim added a commit that referenced this pull request Sep 30, 2026
Port of #8 (e7be515) onto the
cbioportal-wsi-viewer package.

- Molecular tables, portal molecular data fetches, OncoKB/CIViC
  annotation fetches and hierarchy enrichment move into the package.
- Portal molecular requests go through the runtime's buildApiUrl and
  fetchImpl instead of relative /api URLs.
- OncoKB/CIViC, the OncoKB client, CIViC CNA variant lookup and the
  simplified mutation type are host services: an optional
  WsiViewerConfig.molecular (WsiMolecularServices), installed once with the
  other host services. The app builds it in buildWsiMolecularServices() and
  adds it in buildWsiViewerConfig(), which the bootstrapper installs.
  Without it the tables show portal data unannotated.
- Enrichment updates the hierarchy's samples in place, so the viewer keeps
  hierarchyDataVersion: each merge bumps it, the sidebar row computeds read
  it, and the memoized sidebar and nav panel sample nodes take it as
  dataVersion. The sequencing rows are a computed like the other sidebar
  rows (buildSeqRows, no signature cache).
- cbioportal-utils, oncokb-frontend-commons, oncokb-ts-api-client and
  react-mutation-mapper are declared as workspace peers (external in the
  rollup build).
- Specs configure the runtime instead of mocking app modules; slide access
  mocks and expectations use the image-ID access URL, and caches are warmed
  through the shared fetch paths instead of the removed seeders. Metadata
  prefetch specs select a sample, since only its slides are prefetched.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@raylim

raylim commented Sep 30, 2026

Copy link
Copy Markdown
Owner Author

Resource-data successor: #18 (codex/wsi-rd-molecular, on the viewer package of cBioPortal#5732). This PR stays on the native foundation track.

raylim added a commit that referenced this pull request Sep 30, 2026
Port of #8 (e7be515) onto the
cbioportal-wsi-viewer package.

- Molecular tables, portal molecular data fetches, OncoKB/CIViC
  annotation fetches and hierarchy enrichment move into the package.
- Portal molecular requests go through the runtime's buildApiUrl and
  fetchImpl instead of relative /api URLs.
- OncoKB/CIViC, the OncoKB client, CIViC CNA variant lookup and the
  simplified mutation type are host services: an optional
  WsiViewerConfig.molecular (WsiMolecularServices), installed once with the
  other host services. The app builds it in buildWsiMolecularServices() and
  adds it in buildWsiViewerConfig(), which the bootstrapper installs.
  Without it the tables show portal data unannotated.
- Enrichment updates the hierarchy's samples in place, so the viewer keeps
  hierarchyDataVersion: each merge bumps it, the sidebar row computeds read
  it, and the memoized sidebar and nav panel sample nodes take it as
  dataVersion. The sequencing rows are a computed like the other sidebar
  rows (buildSeqRows, no signature cache).
- cbioportal-utils, oncokb-frontend-commons, oncokb-ts-api-client and
  react-mutation-mapper are declared as workspace peers (external in the
  rollup build).
- Specs configure the runtime instead of mocking app modules; slide access
  mocks and expectations use the image-ID access URL, and caches are warmed
  through the shared fetch paths instead of the removed seeders. Metadata
  prefetch specs select a sample, since only its slides are prefetched.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
raylim added a commit that referenced this pull request Sep 30, 2026
Port of #8 (e7be515) onto the
cbioportal-wsi-viewer package.

- Molecular tables, portal molecular data fetches, OncoKB/CIViC
  annotation fetches and hierarchy enrichment move into the package.
- Portal molecular requests go through the runtime's buildApiUrl and
  fetchImpl instead of relative /api URLs.
- OncoKB/CIViC, the OncoKB client, CIViC CNA variant lookup and the
  simplified mutation type are host services: an optional
  WsiViewerConfig.molecular (WsiMolecularServices), installed once with the
  other host services. The app builds it in buildWsiMolecularServices() and
  adds it in buildWsiViewerConfig(), which the bootstrapper installs.
  Without it the tables show portal data unannotated.
- Enrichment updates the hierarchy's samples in place, so the viewer keeps
  hierarchyDataVersion: each merge bumps it, the sidebar row computeds read
  it, and the memoized sidebar and nav panel sample nodes take it as
  dataVersion. The sequencing rows are a computed like the other sidebar
  rows (buildSeqRows, no signature cache).
- cbioportal-utils, oncokb-frontend-commons, oncokb-ts-api-client and
  react-mutation-mapper are declared as workspace peers (external in the
  rollup build).
- Specs configure the runtime instead of mocking app modules; slide access
  mocks and expectations use the image-ID access URL, and caches are warmed
  through the shared fetch paths instead of the removed seeders. Metadata
  prefetch specs select a sample, since only its slides are prefetched.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@raylim

raylim commented Oct 9, 2026

Copy link
Copy Markdown
Owner Author

Superseded by #18 (molecular tables and enrichment in the viewer package).

@raylim raylim closed this Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Do not include in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant