Skip to content

fix(visualize): include 1:1 backends and avoid null shared crash - #60

Merged
fmenesesg merged 1 commit into
mainfrom
fix/visualize-backend-usage-ranking
Jul 28, 2026
Merged

fix(visualize): include 1:1 backends and avoid null shared crash#60
fmenesesg merged 1 commit into
mainfrom
fix/visualize-backend-usage-ranking

Conversation

@fmenesesg

Copy link
Copy Markdown
Collaborator

Proposed change

Topology HTML/canvas crashed when no backends were shared across products (shared: null.map threw), leaving the dashboard looking empty aside from products. Also include 1:1 product→backend usages in the ranking so tenants like Integratel show backend usage.

Type of change

  • Bug fix (non-breaking)
  • New feature
  • Tests / CI
  • Documentation
  • Integration cross-repo (3scaleextract ↔ apishift)
  • Breaking change

RHCL checklist

  • Tests added or updated (go test ./... or mvn test / npm test)
  • CI does not introduce -DskipTests without justification
  • No secrets in diff (tokens, kubeconfigs, OIDC secrets)
  • rhcl-ai docs updated if export/import contract changes
  • PR description and docs in English
  • Tested in local lab if applicable (seed → export → analyze)

Test plan

  • go test ./internal/visualize/ -count=1
  • TestBuildTopologyDataEmptySharedMarshalsAsArrayshared marshals as []
  • TestBuildTopologyDataIncludesOneToOneBackendsbilling_api count 1 appears; multi-share ranks first
  • Regenerated Integratel topology.html — backend usage list non-empty with 1:1 backends

Additional information

  • Fixes / Closes: visualize topology shared-null + 1:1 ranking
  • Related: Integratel export validation (no multi-product shared backends)

Made with Cursor

Empty shared marshaled as null broke the HTML/canvas dashboard; include
all referenced backends (including 1:1) in the usage ranking instead of
only multi-product shares.

Co-authored-by: Cursor <cursoragent@cursor.com>
@fmenesesg
fmenesesg requested a review from pcastelo as a code owner July 28, 2026 02:59
@fmenesesg
fmenesesg merged commit afe09bc into main Jul 28, 2026
1 check passed
@fmenesesg
fmenesesg deleted the fix/visualize-backend-usage-ranking branch July 28, 2026 03:00
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