stable

Clone or download

Read-only

Deal with user removed from private project

This is a part of story #9892: notify group of people in addition to individuals To test: - Have a private project with two users A and B. - Run forgeupgrade, hack your database and insert an entry in the table tracker_global_notification_users. You need a notification_id, and a user_id of user A. - Add also the email address of user B on UI. - Delete these users from project Then you shouldn't see anymore user A and user B address on notification. Change-Id: Id789064ba76f0607e4a76ac1ca6e41311ce7b1e4

Modified Files

Name
A plugins/tracker/include/Tracker/Notifications/GlobalNotificationsAddressesBuilder.php +44 −0 Go to diff View file
M plugins/tracker/include/Tracker/Notifications/GlobalNotificationsEmailRetriever.php +12 −17 Go to diff View file
A plugins/tracker/include/Tracker/Notifications/NotificationsForProjectMemberCleaner.php +73 −0 Go to diff View file
M plugins/tracker/include/Tracker/Notifications/UsersToNotifyDao.php +21 −0 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/TrackerFactory.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Tracker_NotificationsManager.class.php +29 −0 Go to diff View file
M plugins/tracker/include/Tracker/dao/Tracker_GlobalNotificationDao.class.php +12 −0 Go to diff View file
M plugins/tracker/include/autoload.php +4 −2 Go to diff View file
M plugins/tracker/include/trackerPlugin.class.php +62 −1 Go to diff View file
M plugins/tracker/tests/Tracker/Notifications/GlobalNotificationsEmailRetrieverTest.php +4 −1 Go to diff View file
A plugins/tracker/tests/Tracker/Notifications/NotificationsForProjectMemberCleanerTest.php +104 −0 Go to diff View file