feat(api-service): Preference webhook subscriber ID fixes NV-7110#10016
feat(api-service): Preference webhook subscriber ID fixes NV-7110#10016
Conversation
NV-7110: Add subscriberId to the preference.updated webhook payload to allow consumers to identify which subscriber's preferences were updated without requiring a full sync of all subscriber preferences. - Add subscriberId field to WebhookPreferenceDto - Include command.subscriberId in webhook payload when preferences are updated - Update SendWebhookMessageCommand payload type to allow primitive values Co-authored-by: Dima Grossman <dima@grossman.io>
|
Cursor Agent can help with this pull request. Just |
✅ Deploy Preview for dashboard-v2-novu-staging canceled.
|
WalkthroughThis pull request introduces changes to webhook functionality across three files. A new 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
What changed? Why was the change needed?
This PR resolves NV-7110.
The
subscriberIdhas been added to thepreference.updatedwebhook payload. This change allows consumers of the webhook to identify which specific subscriber's preferences were updated, eliminating the need for full synchronizations of all subscriber preferences and reducing load on the user preferences endpoint.Specifically:
WebhookPreferenceDtonow includes asubscriberIdfield.UpdatePreferencesuse case now includes thesubscriberIdin thepreference.updatedwebhook payload.SendWebhookMessageCommandpayload type was updated to allow primitive values for additional fields, accommodating thesubscriberIdstring.Screenshots
N/A
Linear Issue: NV-7110