stable

Clone or download

Read-only

feat(notif): no notif on own actions in trackers

This commit introduce a new option at user preference level to stop receiving emails on action they do in trackers. Part of story #10469 choose if I receive a notification when I create/update something Change-Id: I116c3eea38bf34fa2ad5a164daac97b071d9aade

Modified Files

Name
M plugins/tracker/include/Tracker/Notifications/RecipientsManager.php +2 −0 Go to diff View file
A plugins/tracker/include/Tracker/Notifications/RemoveRecipient/RemoveRecipientThatDoesntWantMailForTheirOwnActions.php +57 −0 Go to diff View file
A plugins/tracker/include/User/NotificationOnOwnActionPreference.php +72 −0 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +22 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Notifications/RecipientsManagerTest.php +5 −1 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Notifications/RemoveRecipient/RemoveRecipientThatDoesntWantMailForThereOwnActionsTest.php +140 −0 Go to diff View file
A plugins/tracker/tests/unit/User/NotificationOnOwnActionPreferenceTest.php +55 −0 Go to diff View file
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +12 −1 Go to diff View file
M site-content/pt_BR/LC_MESSAGES/tuleap-core.po +8 −0 Go to diff View file
M src/common/Request/RouteCollector.php +1 −0 Go to diff View file
M src/common/User/Account/DisplayNotificationsController.php +3 −1 Go to diff View file
A src/common/User/Account/NotificationsOnOwnActionsCollection.php +77 −0 Go to diff View file
A src/common/User/Account/NotificationsOnOwnActionsPresenter.php +34 −0 Go to diff View file
A src/common/User/Account/NotificationsOnOwnActionsUpdate.php +42 −0 Go to diff View file
M src/common/User/Account/NotificationsPresenter.php +22 −14 Go to diff View file
M src/common/User/Account/UpdateNotificationsPreferences.php +8 −16 Go to diff View file
M src/common/User/Account/templates/notifications.mustache +20 −0 Go to diff View file
A src/common/User/StoreUserPreference.php +33 −0 Go to diff View file
M src/common/User/User.class.php +1 −1 Go to diff View file
M src/common/dao/UserPreferencesDao.class.php +3 −1 Go to diff View file
M tests/lib/Builders/UserTestBuilder.php +16 −0 Go to diff View file
M tests/unit/common/User/Account/UpdateNotificationsControllerTest.php +2 −3 Go to diff View file
A tests/unit/tests/User/StoreUserPreferenceStub.php +56 −0 Go to diff View file