openwisp-notifications icon indicating copy to clipboard operation
openwisp-notifications copied to clipboard

[feature] Added general setting to disable all notifications #148

Open niteshsinha17 opened this issue 5 years ago • 4 comments

Created a new model named General Setting through which we can disable email OR/AND web notifications for all the organization whether it is created after or before disabling.

Also, I have written tests for it. I think we may need to write code for API too and also need to mention this feature in the documentation. Before doing this it will be great if you give consent to this solution.

closes #148

niteshsinha17 avatar Dec 26 '20 10:12 niteshsinha17

@niteshsinha17 the changes that you have made in this PR were not expected.

Read this discussion to get a better idea of what is expected from the issue: https://github.com/openwisp/openwisp-notifications/pull/69#pullrequestreview-471188099

pandafy avatar Dec 26 '20 13:12 pandafy

@niteshsinha17 the changes that you have made in this PR were not expected.

Read this discussion to get a better idea of what is expected from the issue: #69 (review)

Okay, I will check and will make changes according to it.

niteshsinha17 avatar Dec 26 '20 14:12 niteshsinha17

@pandafy from this https://github.com/openwisp/openwisp-notifications/pull/69#pullrequestreview-471188099 I have concluded a few things that I wanted to share with you.

  • I need to create that All setting which was removed in this PR but this time the need is to disable all notifications?
  • If yes then we will again come into the confusing situation which was mentioned in the above PR.

if notifications are enabled in ALL but not enabled in the org, which setting overrides which?

If the above points are true then I think this could be a solution.

  • That 'All' setting should not generate automatically. It will be created by the user by creating a new notification setting to disable all notifications.
  • If a user disables notifications for all organizations for a particular type then we can check the record before sending a notification.
  • If the user enables notifications both web and email for all organizations then we will delete that setting.

What do you think about it?

niteshsinha17 avatar Dec 30 '20 09:12 niteshsinha17

@nemesisdesign will be the right person to answer this query.

pandafy avatar Jan 01 '21 12:01 pandafy

Closing as we're working on this in GSoC24. Thanks Nitesh!

nemesifier avatar Jul 05 '24 17:07 nemesifier