stable

Clone or download

Read-only

XML validation for steps data import : core part

part of story #13003 : import/export TTM steps in XML This patch allows external_field_change on changeset element. external_field_change are external fields' changes. Every external_field_change should be ignored if no plugins have this field. To test, add section <external_field_change> on artifact's changeset in a project structure XML. The validation must work. Change-Id: I93d3648669d1f5ba79c70c0c212cc324da5e2118

Modified Files

Name
M plugins/tracker/include/Tracker/Artifact/XMLImport.class.php +12 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/XMLImportBuilder.class.php +3 −1 Go to diff View file
M plugins/tracker/include/Tracker/Migration/MigrationManager.php +4 −2 Go to diff View file
M plugins/tracker/include/Tracker/Tracker.class.php +3 −1 Go to diff View file
M plugins/tracker/include/TrackerXmlExport.class.php +2 −2 Go to diff View file
M plugins/tracker/include/TrackerXmlImport.class.php +1 −1 Go to diff View file
M plugins/tracker/phpunit/Tracker/Artifact/XmlImportTest.php +20 −1 Go to diff View file
M plugins/tracker/phpunit/Tracker/XML/Exporter/TrackerXmlExportTest.php +3 −3 Go to diff View file
M plugins/tracker/tests/Artifact/XMLImportTest.php +14 −3 Go to diff View file
A src/common/Event/Events/ImportValidateChangesetExternalField.php +46 −0 Go to diff View file
M src/common/Project/XML/Import/ExternalFieldsExtractor.php +27 −4 Go to diff View file
M tests/phpunit/common/Project/XML/Import/ExternalFieldsExtractorTest.php +70 −2 Go to diff View file