Skip to content

feat(dcm-backend): read dcm.apiUrl with legacy fallback#3603

Open
gciavarrini wants to merge 2 commits into
redhat-developer:mainfrom
gciavarrini:FLPATH-4424-rename-dcm-api-url
Open

feat(dcm-backend): read dcm.apiUrl with legacy fallback#3603
gciavarrini wants to merge 2 commits into
redhat-developer:mainfrom
gciavarrini:FLPATH-4424-rename-dcm-api-url

Conversation

@gciavarrini

Copy link
Copy Markdown
Contributor

Renames the DCM backend API config from dcm.apiGatewayUrl / DCM_API_GATEWAY_URL to dcm.apiUrl / DCM_API_URL, reflecting the control-plane monolith instead of the legacy API gateway.

The backend proxy prefers dcm.apiUrl and falls back to dcm.apiGatewayUrl so existing deployments keep working during migration.

Production and dynamic app config bind both env vars until deploy configs switch to DCM_API_URL.

Follow-up PRs in control-plane and quadlet-deploy will switch deploy configs after this merges and a new dcm-ui image is published. No UI changes, config/backend only.

Documented via config.d.ts and app-config samples; no README env docs today.

Fixes: FLPATH-4424

✔️ Checklist

  • A changeset describing the change and affected packages.
  • Added or Updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)

@rhdh-gh-app

rhdh-gh-app Bot commented Jun 26, 2026

Copy link
Copy Markdown

Missing Changesets

The following package(s) are changed by this PR but do not have a changeset:

  • @red-hat-developer-hub/backstage-plugin-dcm-common

See CONTRIBUTING.md for more information about how to add changesets.

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-dcm-backend workspaces/dcm/plugins/dcm-backend patch v1.0.0
@red-hat-developer-hub/backstage-plugin-dcm-common workspaces/dcm/plugins/dcm-common none v1.0.0

Assisted-By: Claude (Anthropic)

Signed-off-by: Gloria Ciavarrini <gciavarrini@redhat.com>
Assisted-By: Claude (Anthropic)

Signed-off-by: Gloria Ciavarrini <gciavarrini@redhat.com>
@gciavarrini gciavarrini force-pushed the FLPATH-4424-rename-dcm-api-url branch from 57ca9c7 to da647f2 Compare June 26, 2026 14:41
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.21%. Comparing base (71cfae4) to head (da647f2).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3603   +/-   ##
=======================================
  Coverage   54.21%   54.21%           
=======================================
  Files        2312     2312           
  Lines       88532    88533    +1     
  Branches    24661    24663    +2     
=======================================
+ Hits        48000    48001    +1     
- Misses      39040    39077   +37     
+ Partials     1492     1455   -37     
Flag Coverage Δ *Carryforward flag
adoption-insights 83.70% <ø> (ø) Carriedforward from 71cfae4
ai-integrations 67.95% <ø> (ø) Carriedforward from 71cfae4
app-defaults 69.79% <ø> (ø) Carriedforward from 71cfae4
augment 46.39% <ø> (ø) Carriedforward from 71cfae4
boost 74.35% <ø> (ø) Carriedforward from 71cfae4
bulk-import 72.46% <ø> (ø) Carriedforward from 71cfae4
cost-management 14.10% <ø> (ø) Carriedforward from 71cfae4
dcm 61.81% <100.00%> (+0.02%) ⬆️
extensions 61.53% <ø> (ø) Carriedforward from 71cfae4
global-floating-action-button 71.18% <ø> (ø) Carriedforward from 71cfae4
global-header 59.71% <ø> (ø) Carriedforward from 71cfae4
homepage 49.84% <ø> (ø) Carriedforward from 71cfae4
install-dynamic-plugins 56.77% <ø> (ø) Carriedforward from 71cfae4
konflux 91.49% <ø> (ø) Carriedforward from 71cfae4
lightspeed 68.54% <ø> (ø) Carriedforward from 71cfae4
mcp-integrations 85.46% <ø> (ø) Carriedforward from 71cfae4
orchestrator 38.30% <ø> (ø) Carriedforward from 71cfae4
quickstart 63.76% <ø> (ø) Carriedforward from 71cfae4
sandbox 79.56% <ø> (ø) Carriedforward from 71cfae4
scorecard 82.67% <ø> (ø) Carriedforward from 71cfae4
theme 61.26% <ø> (ø) Carriedforward from 71cfae4
translations 7.25% <ø> (ø) Carriedforward from 71cfae4
x2a 78.68% <ø> (ø) Carriedforward from 71cfae4

*This pull request uses carry forward flags. Click here to find out more.


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 71cfae4...da647f2. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant