stable

Clone or download

Read-only

refacto: Modernize Masschangeupdater class

Part of story #38631 @ notifications in trackers This change will make easier to handle the notification send after the updates of the artifacts in the mass change. A new paramater will be introduced in PostCreationContext to handle the users mentioned in the follow up comment. Also, Artifact::createNewChangeset is deperacted, so, it is also an opportunity to replace it with NewChangesetCreator::create in the mass change case. Some mocks has also been removed in the test No functional change expected in the mass change, the update and post action update should work as before. Change-Id: I953035ccde437792d02d2126ff281c753879419e

Modified Files

Name
A plugins/tracker/include/Artifact/Changeset/NewChangesetCreatorBuilder.php +127 −0 Go to diff View file
R plugins/tracker/include/Tracker/Masschange/MasschangeUpdater.class.php Go to diff View file
M plugins/tracker/include/Tracker/Report/Tracker_Report.class.php +7 −3 Go to diff View file
M plugins/tracker/tests/unit/Masschange/MasschangeUpdaterTest.php +116 −61 Go to diff View file
M tests/psalm/psalm.xml +0 −1 Go to diff View file