stable

Clone or download

Read-only

Warn project admin when a gitlab_commit reference previously exists

part of: story #17180 take into account gitlab commits How to test: - Run `make dev-clear-cache` - Disable the GitLab plugin - Create a project reference named gitlab_commit - Enable the GitLab plugin again - Go back to the main view of the project references admin --> There is a warning sent by the GitLab plugin - Delete the reference by clicking on the trash icon at the end of the table row --> The warning has disappeared Change-Id: I0d1bb3d602998dd7ce1b57ba928b6300e662d4fe

Modified Files

Name
A plugins/gitlab/include/EventsHandlers/ReferenceAdministrationWarningsCollectorEventHandler.php +47 −0 Go to diff View file
M plugins/gitlab/include/Reference/GitlabCommitReference.php +3 −1 Go to diff View file
M plugins/gitlab/include/gitlabPlugin.php +12 −3 Go to diff View file
M plugins/gitlab/site-content/fr_FR/LC_MESSAGES/tuleap-gitlab.po +13 −0 Go to diff View file
A plugins/gitlab/tests/unit/EventsHandlers/ReferenceAdministrationWarningsCollectorEventHandlerTest.php +87 −0 Go to diff View file
M src/common/Project/Admin/Reference/ReferenceAdministrationViews.php +32 −6 Go to diff View file
A src/common/Project/Admin/Reference/ReferenceAdministrationWarningsCollectorEvent.php +68 −0 Go to diff View file
M src/common/reference/ReferenceManager.class.php +4 −2 Go to diff View file