stable

Clone or download

Read-only

Add users or ugroups to notifications table in git

Part of story #9892: notify group of people in addition to individuals You should be able to add emails, users or ugroups in a git repository notifications settings. Users and ugroups are autocompleted. For ugroups, only project members, project admins and ugroups the user is member of are returned, so that we do not leak sensitive information (other customers name for example). The project history is updated accordingly. Change-Id: If5a53bc27bd0e52a75af7f738c300998b60e7ce9

Modified Files

Name
M plugins/git/include/Git.class.php +30 −22 Go to diff View file
A plugins/git/include/Git/Notifications/RequestFromAutocompleter.php +167 −0 Go to diff View file
M plugins/git/include/Git/Notifications/UgroupsToNotifyDao.php +14 −0 Go to diff View file
M plugins/git/include/Git/Notifications/UsersToNotifyDao.php +11 −0 Go to diff View file
M plugins/git/include/GitActions.class.php +80 −0 Go to diff View file
M plugins/git/include/GitPresenters/RepositoryPaneNotificationPresenter.php +1 −2 Go to diff View file
M plugins/git/include/GitViews/RepoManagement/Pane/Notification.class.php +1 −2 Go to diff View file
M plugins/git/include/autoload.php +3 −2 Go to diff View file
M plugins/git/include/gitPlugin.class.php +2 −1 Go to diff View file
M plugins/git/site-content/en_US/git.tab +1 −3 Go to diff View file
M plugins/git/site-content/fr_FR/LC_MESSAGES/tuleap-git.po +19 −0 Go to diff View file
M plugins/git/site-content/fr_FR/git.tab +1 −3 Go to diff View file
M plugins/git/site-content/tuleap-git.pot +19 −0 Go to diff View file
M plugins/git/templates/settings/notifications.mustache +14 −4 Go to diff View file
A plugins/git/tests/Git/Notifications/RequestFromAutocompleterTest.php +134 −0 Go to diff View file
M plugins/git/tests/GitTest.php +2 −1 Go to diff View file
A plugins/git/www/scripts/admin-notifications.js +86 −0 Go to diff View file
M plugins/git/www/themes/default/css/style.scss +47 −4 Go to diff View file
M src/common/dao/UGroupDao.class.php +40 −2 Go to diff View file
M src/common/user/User.class.php +5 −1 Go to diff View file
M src/www/user/autocomplete.php +34 −2 Go to diff View file
M tests/lib/MockBuilder.php +1 −1 Go to diff View file