Skip to content

fix(visualize): show only enabled user policies#51

Merged
fmenesesg merged 4 commits into
mainfrom
feat/visualize-enabled-policies-only
Jun 17, 2026
Merged

fix(visualize): show only enabled user policies#51
fmenesesg merged 4 commits into
mainfrom
feat/visualize-enabled-policies-only

Conversation

@fmenesesg

Copy link
Copy Markdown
Collaborator

Proposed change

Filter policy chains at load time so Markdown, catalog, canvas, and HTML show only enabled user policies (enabled: false omitted, apicast excluded, missing enabled treated as enabled).

Closes #50

Type of change

  • Bugfix (non-breaking)
  • New feature

RHCL checklist

  • Tests added or updated (go test ./...)
  • No secrets in diff
  • Docs in English (VISUALIZE.md, TEST_CASES.md, release notes)
  • Validated locally with large tenant export (not committed)

Test plan

  • go test ./... — 172 tests pass
  • Unit: disabled + apicast filtered (policies_test.go)
  • Manual: HTML/catalog regenerated from local export; disabled policies absent

Additional information

Made with Cursor

Francisco Meneses and others added 3 commits June 16, 2026 20:45
Explore, proposal, delta specs, design, and tasks for filtering
visualizer policy chains to enabled user policies excluding apicast.

Co-authored-by: Cursor <cursoragent@cursor.com>
Filter policy chains at load time: skip enabled false and apicast,
parse root policies_config in policies.json, default missing enabled
to true for fixture compatibility.

Co-authored-by: Cursor <cursoragent@cursor.com>
Add Policy visibility section to VISUALIZE.md and update release workflow
body for the visualize policy filter patch.

Co-authored-by: Cursor <cursoragent@cursor.com>
@fmenesesg fmenesesg requested a review from pcastelo as a code owner June 17, 2026 00:53
Satisfy golangci-lint unused check; proxy path calls
parsePolicyConfigJSONArray directly.

Co-authored-by: Cursor <cursoragent@cursor.com>
@fmenesesg fmenesesg merged commit 9a7cc40 into main Jun 17, 2026
1 check passed
@fmenesesg fmenesesg deleted the feat/visualize-enabled-policies-only branch June 17, 2026 00:55
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.

[FIX] Visualizer show only enabled policies (exclude apicast)

1 participant