stable

Clone or download

Read-only

Refactoring: create Move*SemanticChecker classes

This is part of story #11344 move artifact's "assigned_to" There is no functionnal changes here. This patch provide the same kind of semantic checks for Tracker semantics during the Move operation. It also adds the missing checks for field types for description semantic. A next commit will do the same thing for external semantics (initial_effort). Change-Id: I2e3a179084c816b788828636b9ae61b781c8dbd7

Modified Files

Name
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +16 −1 Go to diff View file
M plugins/tracker/include/Tracker/Action/BeforeMoveArtifact.php +26 −40 Go to diff View file
A plugins/tracker/include/Tracker/Action/MoveDescriptionSemanticChecker.php +62 −0 Go to diff View file
A plugins/tracker/include/Tracker/Action/MoveSemanticChecker.php +53 −0 Go to diff View file
M plugins/tracker/include/Tracker/Action/MoveStatusSemanticChecker.php +7 −5 Go to diff View file
A plugins/tracker/include/Tracker/Action/MoveTitleSemanticChecker.php +44 −0 Go to diff View file
M plugins/tracker/include/Tracker/XML/Updater/MoveChangesetXMLUpdater.php +33 −7 Go to diff View file
M plugins/tracker/phpunit/Tracker/Action/BeforeMoveArtifactTest.php +96 −43 Go to diff View file
A plugins/tracker/phpunit/Tracker/Action/MoveDescriptionSemanticCheckerTest.php +100 −0 Go to diff View file
M plugins/tracker/phpunit/Tracker/Action/MoveStatusSemanticCheckerTest.php +2 −3 Go to diff View file
A plugins/tracker/phpunit/Tracker/Action/MoveTitleSemanticCheckerTest.php +78 −0 Go to diff View file
M plugins/tracker/phpunit/Tracker/XML/Updater/MoveChangesetXMLUpdaterTest.php +77 −11 Go to diff View file
M tests/phpunit/phpunit.xml +2 −0 Go to diff View file