Skip to content

fix: use idc-dicomweb as default data source instead of merge - #143

Merged
igoroctaviano merged 1 commit into
masterfrom
fix/default-datasource
Oct 5, 2026
Merged

igoroctaviano merged 1 commit into
masterfrom
fix/default-datasource

Conversation

@igoroctaviano

Copy link
Copy Markdown
Collaborator

Summary

  • Changes defaultDataSourceName from idc-merge to idc-dicomweb in the production deployment config (idc-assets/app-config-template.js)
  • Fixes "no DICOMweb base url provided" error on the deployed dev site

Problem

When defaultDataSourceName is set to idc-merge, the merge data source initializes ALL child data sources including the GCP source. When the ?gcp= query parameter is absent, the GCP data source has no URL configured, causing the error.

Solution

Use idc-dicomweb as the default data source. The GCP extension will activate the merge data source only when needed (when ?gcp= param is present).

Test plan

  • Deploy to dev-viewer.canceridc.dev
  • Verify SEG studies load without "no DICOMweb base url provided" error
  • Verify GCP mode still works when ?gcp= parameter is provided

The merge data source was causing "no DICOMweb base url provided" errors
because it always tries to initialize ALL child data sources, including
the GCP data source which has no URL when there's no ?gcp= query param.

Change defaultDataSourceName from 'idc-merge' to 'idc-dicomweb' in:
- idc-assets/app-config-template.js (production deployment)
- platform/app/public/config/default.js (local dev)
- platform/app/public/config/idc.js (local dev)

The GCP extension will dynamically activate a merge data source when
the ?gcp= query param is present.
@igoroctaviano
igoroctaviano merged commit a503301 into master Oct 5, 2026
2 of 3 checks passed

This branch is being deployed

1 queued deployment
fork-pr-approval — 38073eb2 Deployed Oct 5, 2026 by igoroctaviano via playwright-tests (24.15.0) #121
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