stable

Clone or download

Read-only

refactor: move comment saving to a dedicated class

part of story #24969 [modal] add and remove links without types No functional change expected. Saving a comment for a new changeset should not be mixed among the workflow and fields value and stuff. Moving it to its own class makes it respect Single-Responsibility Principle better. Change-Id: I2e49ad600b1121b6159c02aeb744ad468acbf59a

Modified Files

Name
M plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/IterationCreationProcessorBuilder.php +7 −4 Go to diff View file
M plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/IterationUpdateProcessorBuilder.php +7 −4 Go to diff View file
M plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/ProgramIncrementUpdateProcessorBuilder.php +7 −4 Go to diff View file
M plugins/taskboard/include/REST/v1/Card/CardPatcher.php +7 −4 Go to diff View file
M plugins/taskboard/include/REST/v1/Cell/CardMappedFieldUpdater.php +7 −4 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/CampaignsResource.class.php +7 −4 Go to diff View file
M plugins/testmanagement/include/TestManagement/REST/v1/ExecutionsResource.class.php +7 −4 Go to diff View file
M plugins/tracker/include/REST/v1/ArtifactsResource.class.php +7 −4 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Artifact.php +7 −4 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/Changeset/Comment/CommentCreator.php +70 −0 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/Changeset/Comment/NewComment.php +141 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/NewChangesetCreator.php +65 −130 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/XMLImportBuilder.class.php +7 −4 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +17 −14 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Artifact/Changeset/Comment/CommentCreatorTest.php +173 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Artifact/Changeset/Comment/NewCommentTest.php +105 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/Changeset/NewChangesetCreatorTest.php +7 −4 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/Tracker_ArtifactTest.php +7 −4 Go to diff View file
A tests/lib/Builders/ProjectUGroupTestBuilder.php +43 −0 Go to diff View file