Skip to content

(WIP) Resource table v2 (no migration needed)#12237

Draft
dippindots wants to merge 2 commits into
cBioPortal:masterfrom
dippindots:resource-table-v2
Draft

(WIP) Resource table v2 (no migration needed)#12237
dippindots wants to merge 2 commits into
cBioPortal:masterfrom
dippindots:resource-table-v2

Conversation

@dippindots

Copy link
Copy Markdown
Collaborator

Fix # (see https://help.github.com/en/articles/closing-issues-using-keywords)

Describe changes proposed in this pull request:

  • a
  • b

Checks

Any screenshots or GIFs?

If this is a new visual feature please add a before/after screenshot or gif
here with e.g. Giphy CAPTURE or Peek

Notify reviewers

Read our Pull request merging
policy
. It can help to figure out who worked on the
file before you. Please use git blame <filename> to determine that
and notify them either through slack or by assigning them as a reviewer on the PR

dippindots and others added 2 commits June 22, 2026 18:32
Cherry-picked from resource-table-enhancement branch with the following
changes for the separate-DB approach:

- Domain model: ResourceTableQuery, ResourceTableResult, ResourceTableRow,
  ResourceTableTab, ResourceTabsRequest, ResourceColumnInfo, ResourceColumnFilter,
  ResourceFacetOption
- ClickHouse mapper + repository (queries resource_data_unified view)
- ResourceTableController with two POST endpoints + security interceptor
- GetResourceTableDataUseCase / GetResourceTableTabsUseCase
- ClickhouseJsonMapTypeHandler for METADATA column
- Test schema includes resource_data table + resource_data_unified view (simple alias)
- Test data with sample/patient/study resource rows

MySQL migration.sql and cgds.sql are NOT modified — this feature uses
a separate ClickHouse database with the resource_data_unified view.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Introduces a separate database approach (cbioportal_ext) to isolate
the resource-table feature from production schema changes:

- SecondaryClickhouseConfig: creates DataSource + SqlSessionFactory
  from spring.clickhouse.secondary.* properties
- ResourceMapperFallbackConfig: registers resource mapper on primary
  datasource when secondary is not configured
- ClickhouseMyBatisConfig: explicitly lists non-resource packages to
  avoid duplicate mapper registration
- setup_cbioportal_ext.sql: creates database, resource_data table,
  resource_data_unified view (cross-DB UNION ALL), and cross-DB views
  for resource_definition and cancer_study
- migrate_resource_data.sql: future backfill script
- application.properties.EXAMPLE: documents secondary config
- Test schema: adds resource_data_unified view (simple alias)

The mapper queries resource_data_unified which transparently serves
both new imports AND legacy data from the main cbioportal database.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@dippindots dippindots self-assigned this Jun 22, 2026
@dippindots dippindots marked this pull request as draft June 22, 2026 19:17
@dippindots dippindots changed the title Resource table v2 (no migration needed) (WIP) Resource table v2 (no migration needed) Jun 22, 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.

1 participant