stable

Clone or download

Read-only

request #26408 Import of jira issue link types with not supported characters

I wanted to re-use the regexp defined in TypeValidator but it seems that Cocur/Sluggify does a char/char conversion so it doesn't work out of the box. Nevertheless, the goal is not to have a perfect tranformation in every possible case but to support most common conversion scenario (unsupported char in the middle of the label). This patch also make it clearer the dependencies between the various places where link types are manipulated: when they are created in bulk, when they are "faked" to re-create a missing information (Epic/Issues) and when the artifacts are finally generated. Change-Id: I0dd207a76130572228575ce3c458ae4e2438847d

Modified Files

Name
M plugins/jira_import/include/Project/ArtifactLinkType/ArtifactLinkTypeImporter.php +9 −16 Go to diff View file
M plugins/jira_import/include/jira_importPlugin.php +6 −3 Go to diff View file
M plugins/jira_import/tests/unit/Project/ArtifactLinkType/ArtifactLinkTypeImporterTest.php +11 −11 Go to diff View file
A plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Artifact/ArtifactLinkTypeConverter.php +82 −0 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Artifact/FieldChangeXMLExporter.php +8 −27 Go to diff View file
A plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Artifact/GetExistingArtifactLinkTypes.php +31 −0 Go to diff View file
A plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Artifact/GetMissingArtifactLinkTypes.php +29 −0 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/Import/Artifact/Snapshot/CurrentSnapshotBuilder.php +2 −1 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/Import/JiraXmlExporter.php +6 −3 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/Artifact/ArtifactLinkTypeConverterTest.php +182 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/Artifact/ArtifactsXMLExporterTest.php +9 −8 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/Artifact/FieldChangeXMLExporterTest.php +68 −9 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/Artifact/Snapshot/CurrentSnapshotBuilderTest.php +2 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/Import/JiraXmlExporterTest.php +9 −8 Go to diff View file