Skip to content

fix(visualize): parse backend_usages array sidecar format#43

Merged
fmenesesg merged 1 commit into
mainfrom
fix/backend-usages-array-format
Jun 11, 2026
Merged

fix(visualize): parse backend_usages array sidecar format#43
fmenesesg merged 1 commit into
mainfrom
fix/backend-usages-array-format

Conversation

@fmenesesg

@fmenesesg fmenesesg commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Proposed change

Parse backend_usages.json when exported as a top-level JSON array (toolbox sidecars), not only the wrapped { "backend_usages": [...] } Admin API shape.

Type of change

  • Bugfix (non-breaking)

Test plan

  • go test ./internal/visualize/...
  • Validated against a large tenant export: multi-backend products show correct auth labels and backend counts in canvas/report

Additional information

Made with Cursor

Toolbox exports may write backend_usages.json as a top-level array.
Accept both that shape and the wrapped Admin API object so topology
and auth resolution work for Copec-style exports.

Co-authored-by: Cursor <cursoragent@cursor.com>
@fmenesesg fmenesesg requested a review from pcastelo as a code owner June 11, 2026 21:43
@fmenesesg fmenesesg added the type:bugfix Non-breaking bug fix label Jun 11, 2026
@fmenesesg fmenesesg merged commit ec43c29 into main Jun 11, 2026
1 check passed
@fmenesesg fmenesesg deleted the fix/backend-usages-array-format branch June 11, 2026 21:45
fmenesesg added a commit that referenced this pull request Jun 11, 2026
…ay-format

fix(visualize): parse backend_usages array sidecar format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bugfix Non-breaking bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FIX] Parse backend_usages sidecar array format

1 participant