dev

Forked from tuleap/dev

Clone or download

Read-only

Merge remote-tracking branch 'bender/5830_tv3totv5_attachments' into HEAD

* bender/5830_tv3totv5_attachments: Import CC field data now checking file ids from exported xml Importing files that works, baby Extract field_data extraction in a dedicated object Now exporting path of files in archive Extract files to the filesystem The XMLImport is now able to parse the XML File including attachments Add type to field_name to better qualify what we expect story #5992 - Dump 'CC' values from tv3 and define RNC/RNG XML format Update conversion script with new export status generating RNC and RNG for files export Fix issue with several artifact: they mess each others due to initial_changeset Include files with export Export attachments info from tv3 history

Modified Files

Name
M plugins/tracker/bin/import_artifacts_xml.php +13 −1 Go to diff View file
M plugins/tracker/bin/migrate_tv3_to_tv5.sh +17 −6 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Tracker_Artifact_ChangesetValue_File.class.php +1 −1 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/XMLImport.class.php +38 −22 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/XMLImport/ArtifactFieldsDataBuilder.class.php +99 −0 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/XMLImport/CollectionOfFilesToImportInArtifact.class.php +63 −0 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/XMLImport/XMLImportFieldStrategy.class.php +32 −0 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/XMLImport/XMLImportFieldStrategyAttachment.class.php +70 −0 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/XMLImport/XMLImportFieldStrategyOpenList.class.php +45 −0 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/XMLImport/XMLImportFieldStrategySummary.class.php +34 −0 Go to diff View file
A plugins/tracker/include/Tracker/Artifact/XMLImport/XMLImportZipArchive.class.php +74 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_File.class.php +8 −3 Go to diff View file
M plugins/tracker/include/autoload.php +9 −2 Go to diff View file
A plugins/tracker/tests/Artifact/XMLImport/XMLImportZipArchiveTestPHP53.php +98 −0 Go to diff View file
A plugins/tracker/tests/Artifact/XMLImport/_fixtures/archive.zip Binary file Go to diff View file
A plugins/tracker/tests/Artifact/XMLImport/_fixtures/artifacts.xml +15 −0 Go to diff View file
A plugins/tracker/tests/Artifact/XMLImport/_fixtures/data/123/file.txt +1 −0 Go to diff View file
M plugins/tracker/tests/Artifact/XMLImportTest.php +346 −21 Go to diff View file
A plugins/tracker/tests/_fixtures/import_artifacts/cc.xml +48 −0 Go to diff View file
M plugins/tracker/www/resources/artifacts.rnc +30 −4 Go to diff View file
M plugins/tracker/www/resources/artifacts.rng +72 −5 Go to diff View file
M src/common/autoload.php +7 −2 Go to diff View file
A src/common/log/ConsoleLogger.class.php +62 −0 Go to diff View file
M src/common/log/Logger.class.php +4 −0 Go to diff View file
M src/common/tracker/ArtifactFile.class.php +8 −4 Go to diff View file
M src/common/tracker/ArtifactXMLExporter.class.php +23 −69 Go to diff View file
A src/common/tracker/ArtifactXMLExporterArtifact.class.php +302 −0 Go to diff View file
M src/common/tracker/ArtifactXMLExporterDao.class.php +55 −3 Go to diff View file
A src/common/tracker/Exception/Exception_TV3XMLException.class.php +22 −0 Go to diff View file
A src/common/tracker/Exception/TV3XMLAttachmentNotFoundException.class.php +25 −0 Go to diff View file
A src/common/tracker/Exception/TV3XMLUnknownFieldTypeException.class.php +25 −0 Go to diff View file
A src/utils/TrackerV3-data-exporter.md +18 −0 Go to diff View file
M src/utils/TrackerV3-data-exporter.php +35 −5 Go to diff View file
M tests/simpletest/common/tracker/ArtifactXMLExporterTestPHP53.php +317 −44 Go to diff View file
A tests/simpletest/common/tracker/_fixtures/artifact_cc_add_new.json +82 −0 Go to diff View file
A tests/simpletest/common/tracker/_fixtures/artifact_cc_no_changes.json +64 −0 Go to diff View file
A tests/simpletest/common/tracker/_fixtures/artifact_cc_remove.json +61 −0 Go to diff View file
A tests/simpletest/common/tracker/_fixtures/artifact_with_deleted_attachment.json +69 −0 Go to diff View file
M tests/simpletest/common/tracker/_fixtures/artifact_with_full_history.json +4 −0 Go to diff View file
M tests/simpletest/common/tracker/_fixtures/artifact_with_half_history.json +4 −0 Go to diff View file
A tests/simpletest/common/tracker/_fixtures/artifact_with_one_attachment.json +52 −0 Go to diff View file
A tests/simpletest/common/tracker/_fixtures/artifact_with_summary_and_attachment.json +51 −0 Go to diff View file
A tests/simpletest/common/tracker/_fixtures/artifact_with_summary_and_attachment_change.json +60 −0 Go to diff View file
A tests/simpletest/common/tracker/_fixtures/artifact_with_summary_attachment_half_history.json +60 −0 Go to diff View file
A tests/simpletest/common/tracker/_fixtures/artifact_with_two_attachments.json +94 −0 Go to diff View file
A tests/simpletest/common/tracker/_fixtures/artifact_with_two_attachments_same_name.json +94 −0 Go to diff View file
A tests/simpletest/common/tracker/_fixtures/trackerv3/1/30 +0 −0 Go to diff View file
A tests/simpletest/common/tracker/_fixtures/trackerv3/1/31 +0 −0 Go to diff View file
A tests/simpletest/common/tracker/_fixtures/two_artifacts.json +36 −0 Go to diff View file