stable

Clone or download

Read-only

Delete an artifact link nature

Part of story #8833: show, import and manipulate links As a site admin, you can delete a nature only if is not or has not been used. We don't want to take the risk to remove nature which has been used in the past. Change-Id: If259c304f0e69af8617074fdb1c9d568a98ea035

Modified Files

Name
M plugins/svn/include/autoload.php +2 −2 Go to diff View file
M plugins/tracker/db/install.sql +2 −1 Go to diff View file
A plugins/tracker/db/mysql/updates/2016/201603251450_add_index_on_nature_column.php +43 −0 Go to diff View file
M plugins/tracker/include/Tracker/Config/ConfigRouter.php +4 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Nature/NatureConfigController.php +28 −5 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Nature/NatureConfigPresenter.php +3 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Nature/NatureDao.php +32 −3 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Nature/NatureDeletor.php +47 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Nature/NatureIsChildPresenter.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Nature/NaturePresenter.php +6 −4 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Nature/NaturePresenterFactory.php +3 −2 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Nature/NatureValidator.php +15 −0 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Nature/UnableToDeleteNatureException.php +24 −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 +7 −0 Go to diff View file
M plugins/tracker/site-content/en_US/tracker.tab +6 −1 Go to diff View file
M plugins/tracker/site-content/fr_FR/tracker.tab +5 −0 Go to diff View file
M plugins/tracker/templates/siteadmin-config/natures.mustache +53 −37 Go to diff View file
M plugins/tracker/tests/Tracker/FormElement/Field/ArtifactLink/Nature/NatureValidatorTest.php +12 −1 Go to diff View file
M plugins/tracker/www/config.php +6 −1 Go to diff View file
A plugins/tracker/www/scripts/admin-nature.js +30 −0 Go to diff View file
M plugins/tracker/www/themes/FlamingParrot/css/style.less +2 −3 Go to diff View file
M plugins/tracker/www/themes/default/css/style.less +45 −17 Go to diff View file