stable
Clone or download
part of story #14766 Have an import from jira structure This patch introduce major changes on the way the changeset are created - A new interface ITrackerImportConfig enables us to provide custom configuration for tracker at xml import - The DB creation of the changset is done in a dedicated object and is always perform inside a transaction How to test: - create an artifact from UI => nothing is stored in DB - update an artifact from UI => nothing is stored in DB - move an artifact => nothing is stored in DB - copy an artifact => nothing is stored in DB - perform an xml import from cli => changeset is recorded in tracker_changeset_from_xml - create a new tracker from jira => changeset is recorded in tracker_changeset_from_xml Change-Id: I4065bf5bea917b29785d0978355d578abd225c28
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/tracker/bin/import_artifacts_xml.php | +3 | −3 | Go to diff View file |
M | plugins/tracker/db/install.sql | +8 | −0 | Go to diff View file |
A | plugins/tracker/db/mysql/updates/2020/202004201424_create_changeset_from_xml.php | +47 | −0 | Go to diff View file |
M | plugins/tracker/db/uninstall.sql | +1 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Action/CopyArtifact.class.php | +3 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/Action/MoveArtifact.php | +3 | −3 | Go to diff View file |
A | plugins/tracker/include/Tracker/Artifact/Changeset/ArtifactChangesetSaver.php | +122 | −0 | Go to diff View file |
A | plugins/tracker/include/Tracker/Artifact/Changeset/ChangesetFromXmlDao.php | +44 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Changeset/InitialChangesetCreatorBase.class.php | +14 | −20 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Changeset/NewChangesetCreatorBase.class.php | +20 | −10 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Tracker_Artifact.class.php | +18 | −7 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Tracker_ArtifactCreator.class.php | +20 | −7 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/Tracker_ArtifactFactory.class.php | +3 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/XMLImport.class.php | +53 | −30 | Go to diff View file |
A | plugins/tracker/include/Tracker/Artifact/XMLImport/TrackerImportConfig.php | +29 | −0 | Go to diff View file |
A | plugins/tracker/include/Tracker/Artifact/XMLImport/TrackerNoXMLImportLoggedConfig.php | +32 | −0 | Go to diff View file |
A | plugins/tracker/include/Tracker/Artifact/XMLImport/TrackerXmlImportConfig.php | +82 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/XMLImportBuilder.class.php | +4 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/dao/Tracker_ArtifactDao.class.php | +11 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Artifact/dao/Tracker_Artifact_ChangesetDao.class.php | +9 | −10 | Go to diff View file |
M | plugins/tracker/include/Tracker/Creation/TrackerCreationProcessorController.php | +2 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/Creation/TrackerCreator.php | +4 | −2 | Go to diff View file |
M | plugins/tracker/include/Tracker/Migration/MigrationManager.php | +11 | −4 | Go to diff View file |
M | plugins/tracker/include/Tracker/Rule/List/Dao.class.php | +43 | −42 | Go to diff View file |
M | plugins/tracker/include/Tracker/Tracker.class.php | +4 | −1 | Go to diff View file |
M | plugins/tracker/include/Tracker/TrackerFactory.class.php | +79 | −67 | Go to diff View file |
M | plugins/tracker/include/Tracker/XML/Importer/TrackerXmlSaver.php | +7 | −7 | Go to diff View file |
M | plugins/tracker/include/TrackerXmlImport.class.php | +16 | −9 | Go to diff View file |
M | plugins/tracker/include/trackerPlugin.php | +8 | −1 | Go to diff View file |
M | plugins/tracker/tests/unit/Artifact/Changeset/Tracker_Artifact_Changeset_InitialChangesetCreatorTest.php | +25 | −9 | Go to diff View file |
M | plugins/tracker/tests/unit/Artifact/Tracker_Artifact_XMLImportTest.php | +287 | −75 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Action/CopyArtifactTest.php | +6 | −3 | Go to diff View file |
A | plugins/tracker/tests/unit/Tracker/Artifact/Changeset/ArtifactChangesetSaverTest.php | +115 | −0 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Artifact/Tracker_ArtifactCreatorTest.php | +3 | −2 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Artifact/Tracker_ArtifactTest.php | +20 | −5 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Artifact/Tracker_Artifact_Changeset_NewChangesetCreatorTest.php | +15 | −2 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Artifact/XmlImportTest.php | +52 | −25 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Creation/TrackerCreatorTest.php | +2 | −1 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/TrackerXmlImportTest.php | +30 | −14 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/XML/Importer/TrackerXmlSaverTest.php | +6 | −7 | Go to diff View file |