-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvement for notifications related to admin/tech contacts #6751
Comments
So for the record even today it is possible to have a subset of the organization members receive the notifications, by creating a secondary organization only with the member subset, adding it as a collaborator, then setting it as a contact. It has the annoying ergonomics of having to add a secondary collaborator, which you can forget to update and maintain. At the same time, it is equally annoying to have to fanout notifications to a 10 members organization, even if they don't want to receive them. Setting an individual user as a contact for these entities is problematic because replacing it would mean updating each individual entity. I would propose that we add a field in the organization ( From there it should be easy - instead of |
This is not possible because a Please disregard, wrote it as I was under the impression that you were talking about doing the operation on a |
With my misunderstanding clarified I do agree with the idea of having the |
With the improvement defined, it does require a migration but its quick work. |
I read through the issue and ACK with the design. Btw very good issue writing @nicholaspcr. |
Summary
From internal discussions the suggestion of not fanning out the notification to an
organization
's collaborators. Instead, if anorganization
is specified as anAdmin/Tech
contact of another entity, we would propagate the notification to theorganization
's respectiveAdmin/Tech
contact.For example:
org-x
is theadmin_contact
of an application.org-x
has[usr-1,usr-2,usr-3]
as collaborators.org-x
hasusr-Y
as itsadmin_contact
With the suggested changes instead of fanning out the administrative notification to
[usr-1,usr-2,usr-3]
we would send it tousr-Y
.Current Situation
Currently when creating an notification we go through the
lookupNotificationReceivers
in order to know who are the receivers.Flow of the method:
We fetch the
admin/tech
contacts from an entity and add it to the list of receivers.lorawan-stack/pkg/identityserver/notification_registry.go
Lines 90 to 130 in fe015cd
Afterwards we check if any of the receivers is an
organization
and fetch its members as receivers:lorawan-stack/pkg/identityserver/notification_registry.go
Lines 148 to 160 in fe015cd
So currently when an
organization
is anadmin/tech
contact we always fetch the members as the notification receivers.Why do we need this? Who uses it, and when?
The idea is to improve the notification system by avoiding excessive emails from being sent or try to find a way that its clearer for the user to organize its
admin/tech
contacts.Proposed Implementation
The initial idea is to replace the act of fetching the
organization
's members and use its ownadmin/tech
contact.The problem here being that this disallows the (1:N) relationship that exists between a notification and its receivers.
So this issue needs a bit more of discussion regarding:
cc: @adriansmares @KrishnaIyer
Contributing
Code of Conduct
The text was updated successfully, but these errors were encountered: