Skip to content

fix(app-graph): show edges for resources referenced via properties#274

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-postgresql-secret-link
Draft

fix(app-graph): show edges for resources referenced via properties#274
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-postgresql-secret-link

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 21, 2026

The getGraph API only creates connection entries from properties.connections and properties.routes. Resources referenced via arbitrary properties (e.g. secretName: dbsecret.name) appear as isolated nodes despite being in the same application graph.

Changes

  • graph.ts — Added properties?: Record<string, unknown> to Resource interface.

  • ApplicationTab.tsx — After fetching the graph, calls radiusApi.getResourceById() in parallel for each resource to enrich it with its full properties. Failures are caught and logged; the graph still renders without them.

  • AppGraph.tsx — Added collectPropertyRefs(): recursively scans resource.properties for string values matching the ID or name of another resource in the graph. Matched refs that aren't already explicit connections are rendered as dashed edges (strokeDasharray: '5,5'). Skips application, environment, provisioningState, and status keys to avoid spurious edges.

resource postgresql '...' = {
  properties: {
    secretName: dbsecret.name  // now renders a dashed edge postgresql → dbsecret
  }
}

Screenshots

Before: dbsecret appears as an isolated node with no link to postgresql.

After:

App graph showing dashed edge between postgresql and dbsecret

Type of change

  • This pull request fixes a bug in Radius Dashboard and has an approved issue (issue link required).

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/search/code
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI and others added 2 commits May 21, 2026 16:04
Copilot AI changed the title [WIP] Fix link between PostgreSQL resource and secret resource Fix app graph: show edges for resources referenced via properties May 21, 2026
Copilot AI requested a review from DariuszPorowski May 21, 2026 16:08
@DariuszPorowski DariuszPorowski changed the title Fix app graph: show edges for resources referenced via properties fix(app-graph): show edges for resources referenced via properties May 21, 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.

App graph shows no link to resource referenced as property instead of a connection

2 participants