Skip to content

feat(wsi): issue source-bound slide access bundles - #12216

Closed
raylim wants to merge 197 commits into
cBioPortal:masterfrom
raylim:feature/wsi-tile-server-config
Closed

raylim wants to merge 197 commits into
cBioPortal:masterfrom
raylim:feature/wsi-tile-server-config

Conversation

@raylim

@raylim raylim commented Jun 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Provide the backend authorization and access contracts required by the native pathology viewer and source-bound tile server.

  • Keep the WSI hierarchy endpoint as the trusted, study-authorized source for patient/sample/slide availability and navigation.
  • Serve slide access bundles from both GET /api/wsi/slides/{studyId}/{imageId}/access and the versioned alias GET /api/wsi/v2/slides/{studyId}/{imageId}/access.
  • Return the exact tile source, thumbnail artifact, intrinsic tile metadata, and a short-lived source-bound bearer capability after checking study access.
  • Add GET /api/wsi/access-token?studyId=...&purpose=annotations for short-lived, study-scoped annotations:read annotations:write capabilities.
  • Load normalized source, tile, thumbnail, and availability fields from the imported WSI ClickHouse release.

Request flow

  1. The frontend loads the authorized hierarchy.
  2. It requests a slide access bundle before rendering pixels.
  3. It requests an annotation capability before calling annotation CRUD routes.
  4. The tile server validates the exact source binding or annotation study/scope without resolving portal permissions itself.

The backend remains the authorization boundary. Raw slide sources and capabilities are not stored in share URLs.

WSI ingestion ownership

The canonical pipeline emits meta_wsi.txt and data_wsi.txt. The cBioPortal core importer in cBioPortal/cbioportal-core#173 validates the 33-column contract, resolves portal identifiers, writes the normalized release tables, and publishes the release manifest last. The tile server does not write ClickHouse hierarchy data.

Validation

  • WsiAccessTokenControllerTest: 4 passed, 0 failures on Java 21
  • Covers annotation purpose/scope, authentication, unsupported purpose rejection, and compatibility/versioned slide access mappings
  • git diff --check: passed
  • GitHub build, API, security, WSI API, and local E2E jobs: passed
  • Container image publication job: pending

Related implementation

@raylim
raylim force-pushed the feature/wsi-tile-server-config branch from c19337c to f50ea64 Compare June 12, 2026 18:56
@dippindots dippindots changed the title config: expose msk.wsi.tile_server.url to frontend config service (WIP) config: expose msk.wsi.tile_server.url to frontend config service Jun 16, 2026
@dippindots
dippindots marked this pull request as draft June 16, 2026 15:20
@raylim
raylim force-pushed the feature/wsi-tile-server-config branch from 83388bb to 9135055 Compare July 30, 2026 20:47
@raylim
raylim marked this pull request as ready for review July 30, 2026 20:47
@raylim raylim changed the title (WIP) config: expose msk.wsi.tile_server.url to frontend config service feat(wsi): expose tile-server config and local hierarchy CI Jul 30, 2026
@raylim raylim changed the title feat(wsi): expose tile-server config and local hierarchy CI feat(wsi): expose backend hierarchy for native pathology viewer Jul 31, 2026
Comment thread src/test/resources/clickhouse_data.sql Resolved
Comment thread src/test/resources/schema.sql Resolved
@raylim raylim changed the title feat(wsi): expose backend hierarchy for native pathology viewer feat(wsi): issue source-bound slide access bundles Aug 13, 2026
@raylim
raylim force-pushed the feature/wsi-tile-server-config branch from f9d82a1 to cabc419 Compare August 13, 2026 16:31
@raylim
raylim force-pushed the feature/wsi-tile-server-config branch 3 times, most recently from 2e4e722 to 22d8363 Compare August 19, 2026 05:30
raylim and others added 12 commits August 19, 2026 19:00
Add msk_wsi_tile_server_url to the FrontendProperty enum so the Java
config service (/config_service) exposes the msk.wsi.tile_server.url
property from application.properties to the React frontend.

Set in application.properties:
  msk.wsi.tile_server.url=http://your-tile-server:8081

The frontend reads this at runtime to enable the H&E Slides tab and
construct tile/thumbnail URLs — no bundle rebuild required per environment.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@raylim

raylim commented Sep 15, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #12339, rebased onto current master with schema 3.2 migration and release-gate hardening.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants