fix(api-service): Subscriber inactive channels default#9875
Conversation
…iber global preferences Co-authored-by: dima <dima@novu.co>
|
Cursor Agent can help with this pull request. Just |
✅ Deploy Preview for dashboard-v2-novu-staging canceled.
|
|
Hey there and thank you for opening this pull request! 👋 We require pull request titles to follow specific formatting rules and it looks like your proposed title needs to be adjusted. Your PR title is: Requirements:
Expected format: Details: PR title must end with 'fixes TICKET-ID' (e.g., 'fixes NOV-123') or include ticket ID in branch name |
WalkthroughA parameter in the SubscribersController's 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
apps/api/src/app/subscribers-v2/subscribers.controller.ts (1)
279-293: Behavioral change hardcoded: include all inactive channels by default.This endpoint is the only caller that hardcodes
includeInactiveChannels: true, while all other usages (including inget-subscriber-preferences,get-inbox-preferences, andinbox.controller) default tofalse. Verify SDK consumers are aware of this change in behavior—the endpoint is excluded from API docs (@ApiExcludeEndpoint()) but is exposed via SDK method name, so this constitutes a breaking change for SDK consumers expecting inactive channels to be excluded.
What changed? Why was the change needed?
The
includeInactiveChannelsparameter in theGET /:subscriberId/preferences/globalendpoint was changed totrueby default. This change was requested to ensure inactive channels are included by default when fetching global preferences.Screenshots
Slack Thread