From 2a77a27560604fb8043cbc568393a65b1e5885fe Mon Sep 17 00:00:00 2001 From: master <> Date: Sat, 28 Mar 2026 23:27:10 +0200 Subject: [PATCH] Fix stage filter showing empty graph when env filter is active When stage filter is set, skip passing environment IDs to the layout API. This fetches all environments for the selected regions, then the client-side stage filter shows only matching types. Previously, the env filter would narrow results before the stage filter could act, causing an empty graph. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../app/features/topology/topology-graph-page.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Web/StellaOps.Web/src/app/features/topology/topology-graph-page.component.ts b/src/Web/StellaOps.Web/src/app/features/topology/topology-graph-page.component.ts index 46c1794f4..111d9e5d1 100644 --- a/src/Web/StellaOps.Web/src/app/features/topology/topology-graph-page.component.ts +++ b/src/Web/StellaOps.Web/src/app/features/topology/topology-graph-page.component.ts @@ -521,11 +521,15 @@ export class TopologyGraphPageComponent { const regions = this.context.selectedRegions(); const environments = this.context.selectedEnvironments(); + const stage = this.context.stage(); + const hasStageFilter = stage && stage !== 'all'; this.layoutService .getLayout({ region: regions.length > 0 ? regions.join(',') : undefined, - environment: environments.length > 0 ? environments.join(',') : undefined, + // When stage filter is active, don't restrict by specific environments — + // fetch all envs for the selected regions so the stage filter can show all matching. + environment: !hasStageFilter && environments.length > 0 ? environments.join(',') : undefined, }) .pipe( take(1),