Repository navigation
Conversation
Restores slide timing (procedure dates, timepoint source and their validation) that moved out of the WSI foundation, as the starting point for showing slides on the patient Summary timeline. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Takes codex/wsi-resource-data (9809b89) as-is: the earlier revert of the slide-timing move predates sealed sources (format v4, migration 3.7.0) and is replaced by a fresh timing change on top. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
For slides on the patient Summary timeline: the hierarchy reads the optional timing keys from a slide's resource metadata (timeline_start_days, timeline_date_*, timeline_coordinate_system, timepoint_source) and returns them as procedureDate*/timepointSource. A slide without timing keys gets nulls; a slide with timing keys is validated as before. Timing stays in resource_data: no table, no migration. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Matches raylim/cbioportal-core#5. Migration 3.4.0's description now just says it is reserved: slide timing lives in resource_data and needs no table. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
raylim
added a commit
to raylim/cbioportal-core
that referenced
this pull request
Oct 8, 2026
The portal's hierarchy (raylim/cbioportal#13) rejects a timed slide without timepoint_source, so the resource validator now does too. The legacy WSI file may still leave TIMEPOINT_SOURCE blank; the converter derives it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…to the timeline branch Brings in the backend foundation e4073d9 (migration 3.8.0, WSI mappers filtering on resource_id only). Conflicts: - clickhouse_data.sql: the WSI fixtures take the foundation's shape (resource_scope, no type column). The foundation stripped the timing keys from them; the timed (900101), legacy (900104) and undated (900102) rows get their timeline_*/timepoint_source keys back, and 900201 stays timing-free. - ClickhouseWsiHierarchyMapperTest: keeps the timing assertions and the null-timing test; drops readsEmptyHierarchyPayload with the foundation's removed duplicate empty-hierarchy fixture; the forbidden-key list follows the foundation (partDesignator/pathDxTitle dropped) plus raw timeline keys. - clickhouse README: the foundation's wording without type, plus the optional timing keys. File-Formats.md no longer mentions WSI_PATIENT_UNDATED_SLIDE_COUNT: slide counts are out of scope here and come in a follow-up. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
… no migration 3.8.0) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…into the Summary timeline Conflicts: - The hierarchy repository takes stringValue() and the SLIDE_KEY-derived key patterns. The timing reads now use stringValue() as well. - The 900104 fixture row and the part_designator test are gone. The timed 900101 row stays. - The README takes the shorter WSI intro (mentioning the optional timing keys) and keeps the slide-timing note. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Owner
Author
|
Closing: slide timing now lives only in the pdm pathology timeline file, imported as PATHOLOGY SLIDES clinical events (pathology-data-mining/pdm_databricks_pipelines#48). The slide hierarchy and resource metadata stay timing-free, so this PR is no longer needed. The Summary timeline track (raylim/cbioportal-frontend#28) is built from those clinical events. 🤖 Generated with Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Slides on the patient Summary timeline: backend (slide timing). Draft. Stacked on the WSI foundation, cBioPortal#12378 (wsi-serving-v6), which should be reviewed and land first.
Rebuilt on the v6 foundation on 2026-10-08. On 2026-10-12 the foundation head e4073d9 was merged in (migration 3.8.0:
entity_typerenamed toresource_scope,typedropped, Int64 key; the WSI mappers filter onresource_idonly). The hierarchy reads timing fromresource_datametadata and uses neithertypenorentity_type. The branch adds timing:resource_datametadata (timeline_start_days,timeline_date_status|kind|source|reason,timeline_coordinate_system,timepoint_source) come back asprocedureDateDays,procedureDateStatus|Kind|Source|Reason,procedureCoordinateSystemandtimepointSource.validateTimingrules); otherwise that patient's hierarchy request fails.resource_data.wsi_slide_timingstays dropped (3.7.0), and 3.4.0 remains a reserved no-op. db.version is the foundation's 3.8.0.Out of scope: slide counts. The WSI slide-count clinical attributes, including
WSI_PATIENT_UNDATED_SLIDE_COUNT, are not part of this PR. They are in raylim/cbioportal-core#6 and #15. A small follow-up will addWSI_PATIENT_UNDATED_SLIDE_COUNTonce core #5 and core #6 land.Tests: 159 targeted tests pass (
Wsi*Test,ClickhouseWsi*Test,ClickhouseResourceData*Test,SchemaVersion*Test,SchemaParityTest). Timed, untimed, mixed and undated slides are accepted. Partial and inconsistent sets are rejected.🤖 Generated with Claude Code