feat(notification): build subscription webhook system with event filtering - #1046
Open
ayomideadeniran wants to merge 1 commit into
Open
feat(notification): build subscription webhook system with event filtering#1046ayomideadeniran wants to merge 1 commit into
ayomideadeniran wants to merge 1 commit into
Conversation
…ering - Implemented WebhookEventFilterEngine with topic wildcards, attribute comparisons, and logical rule combinations - Added exclusion patterns and payload field projection support - Added developer portal documentation for event filtering in developer-portal/docs/webhook-guide.md - Added comprehensive unit test suite in backend/services/notification/__tests__/webhookFilter.test.ts Closes Smartdevs17#955
|
@ayomideadeniran Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Builds a subscription webhook event filtering system supporting wildcard topic patterns, complex attribute rules, exclusion filters, and field projection, along with developer portal documentation and simulation capabilities.
Key Changes
1. Webhook Event Filter Engine (
backend/services/notification/)WebhookEventFilterEngineinbackend/services/notification/webhookFilterEngine.ts:subscription.*,payment.*,*.created,*).eq,neq,gt,gte,lt,lte,in,nin,contains,regex,exists) on nested payload paths (e.g.data.plan.price,data.currency,data.customer.tier).ANDandORcomposite rule evaluation.simulate()method to validate filters against sample payloads with execution telemetry for developer portal testing.backend/services/notification/webhooks.ts.2. Developer Portal Integration & Documentation (
developer-portal/)developer-portal/docs/webhook-guide.mdwith schema examples and operator definitions.3. Tests & Verification
backend/services/notification/__tests__/webhookFilter.test.tswith 13 unit tests verifying:Closes #955