Skip to content

fix(dashboard): show per-event-type filters on subscriptions - #2912

Merged
mekilis merged 1 commit into
mainfrom
smart/subscription-filter-badge
Dec 3, 2026
Merged

mekilis merged 1 commit into
mainfrom
smart/subscription-filter-badge

Conversation

@mekilis

@mekilis mekilis commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Closes #2911.

Summary

The Subscriptions list now highlights the Filter badge when a subscription has a per-event-type body, header, query, or path rule. The list API provides an optional has_event_type_filters field, so the dashboard can render the badge from the paginated response.

Verification

  • Passed go test ./internal/subscriptions ./api/handlers, including a regression test for a saved per-event-type rule and an empty filter.
  • Verified the running subscription list API and dashboard in Chrome against local PostgreSQL and Redis. Both test subscriptions had empty legacy body filters. The subscription with a per-event-type body rule showed a blue badge, and the subscription without a rule showed a gray badge.
  • Validated the generated Swagger and OpenAPI specs and ran the OpenAPI pagination contract checks.

Screenshot

Subscriptions list showing a gray Filter badge above a blue Filter badge

@mekilis
mekilis enabled auto-merge December 3, 2026 18:16
@mekilis
mekilis disabled auto-merge December 3, 2026 18:17
@mekilis
mekilis merged commit 8ef1429 into main Dec 3, 2026
37 checks passed
@mekilis
mekilis deleted the smart/subscription-filter-badge branch December 3, 2026 18:22
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.

[Bug report]: Filter badge in Subscriptions list shows no highlight when configured, inconsistent with Transform

1 participant