KG
KG
NNovu
Created by KG on 10/13/2024 in #💬│support
Tenant wise in-app notification
sure, usage of topics and subscriptions is noted. very much similar to how kafka topics are. topics are a good way to push workspace notifications to all workspace users in one-go. sorry one small follow-up question. in the example given on the page shared by you, the preference filters are in AND or OR condition?
11 replies
NNovu
Created by KG on 10/13/2024 in #💬│support
Tenant wise in-app notification
Thanks for sharing the roadmap. I will add my use case in it. My use for filters is that every workspace user will get updates regarding the worskpace notifications but sometimes, I need to hide certain notifications from users based on their workspace role. E.g. guest user does not need to see plan expiry, plan upgrade, discounts related messages. One simple way is to hardcode this logic in the novu workflow but we wanted to keep it slightly flexible by pushing all workspace messages to all workspace users and then add the Authorization layer on top of novu APIs to filter out the messages which we need to hide based on user and message attributes. This will allow us to centrally manage all auth logic instead of replicating it at multiple places (novu workflows in this case). Furthermore, this kind of implementation also allows us to dynamically change the feed of the workspace user in case his role has changed. E.g. user role changed from the guest to admin will allow the user to see any historical messages related to upgrades, discounts, etc. Without native novu filters, the implementation is not very clean. We can push all messages to all workspace users and they dynamically keep calling novu api and filtering messages till the time we reach the desired number of messages requested by the user.
11 replies
NNovu
Created by KG on 10/13/2024 in #💬│support
Tenant wise in-app notification
also, I wanted to understand if there is a way to filter the in-app notifications based on filters other than the workflow tags? I am referring to this page from the docs: https://docs.novu.co/inbox/react/hooks/use-notifications#usenotifications-props
11 replies
NNovu
Created by KG on 10/13/2024 in #💬│support
Tenant wise in-app notification
user will see only the notifications only for the current (active) workspace
11 replies