stable

Clone or download

Read-only

Enable private comment in tracker during XML import

This is part of story #19275 restrict who can see comments How to test: - Have a tracker to export, and get its id - Add its id in 'plugin_tracker_permission_enabled' table - Export the project or the tracker => There is an optional attribut in the tracker 'use_private_comment="0"' - Import the project, or the tracker Expected results: - If there is no "use_private_comment" attribute, then the tracker uses private comment by default => There is no new row on plugin_tracker_permission_enabled table - If use_private_comment="0" => In plugin_tracker_permission_enabled, there is the new tracker id - If you change attribute to use_private_comment="1" => No new row in plugin_tracker_permission_enabled Note: - In next patch, there will be the import of ugroups for a private comment. Change-Id: Idd38afe54ac65fd12187a9ddbb967d37e355877b

Modified Files

Name
A plugins/tracker/include/Tracker/Artifact/Changeset/Comment/PrivateComment/TrackerPrivateCommentUGroupEnabledDao.php +43 −0 Go to diff View file
M plugins/tracker/include/Tracker/Creation/PostCreationProcessor.php +21 −3 Go to diff View file
M plugins/tracker/include/Tracker/Creation/TrackerCreationSettings.php +14 −2 Go to diff View file
M plugins/tracker/include/Tracker/Creation/TrackerCreationSettingsBuilder.php +12 −3 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +15 −0 Go to diff View file
M plugins/tracker/include/Tracker/TrackerFactory.class.php +3 −2 Go to diff View file
M plugins/tracker/include/TrackerXmlImport.class.php +3 −1 Go to diff View file
M plugins/tracker/resources/tracker-definition.rnc +1 −0 Go to diff View file
M plugins/tracker/resources/tracker-definition.rng +5 −0 Go to diff View file
M plugins/tracker/resources/tracker.rng +5 −0 Go to diff View file
M plugins/tracker/resources/trackers.rng +5 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Creation/PostCreationProcessorTest.php +27 −4 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Creation/TrackerCreationSettingsBuilderTest.php +32 −8 Go to diff View file
M plugins/tracker/tests/unit/Tracker/XML/TrackerExportToXmlTest.php +50 −0 Go to diff View file
M src/common/xml/resources/project/project.rng +5 −0 Go to diff View file
M src/common/xml/resources/project/tracker-definition.rng +5 −0 Go to diff View file