stable
Clone or download
This is part of story #19253 import worklog as timetracking Jira tracked times can only be imported in Tuleap if "JIRA" is the provider of the timetracking in the jira platform. To check this, a new mechanism about platform configuration retrieving is introduced in this patch. This mechanism is done only once before retrieving Jira project data, and provided to objects that do the import. Tuleap external plugins can also do their own platform check if necessary (done here by timetracking plugin). Times are not yet imported, but somethig is logged to know if times can be imported based on the platform configuration (the same pattern that was used to initiate Jira board import). No unit tests about these logs have been added, because it will be replaced by the real and unit tested time import feature in the next commit. Change-Id: Ibe602f7d68701c82a97d4a2442ff4d9d79eeef06
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/jira_import/include/Project/CreateProjectFromJira.php | +28 | −8 | Go to diff View file |
M | plugins/jira_import/include/jira_importPlugin.php | +4 | −0 | Go to diff View file |
A | plugins/timetracking/include/Timetracking/JiraImporter/Configuration/JiraTimetrackingConfigurationRetriever.php | +73 | −0 | Go to diff View file |
M | plugins/timetracking/include/Timetracking/JiraImporter/JiraXMLExport.php | +18 | −2 | Go to diff View file |
M | plugins/timetracking/include/timetrackingPlugin.php | +15 | −1 | Go to diff View file |
A | plugins/timetracking/tests/unit/JiraImporter/Configuration/JiraTimetrackingConfigurationRetrieverTest.php | +113 | −0 | Go to diff View file |
M | plugins/timetracking/tests/unit/JiraImporter/JiraXMLExportTest.php | +8 | −3 | Go to diff View file |
A | plugins/tracker/include/Tracker/Creation/JiraImporter/Configuration/PlatformConfiguration.php | +42 | −0 | Go to diff View file |
A | plugins/tracker/include/Tracker/Creation/JiraImporter/Configuration/PlatformConfigurationForExternalPluginsEvent.php | +75 | −0 | Go to diff View file |
A | plugins/tracker/include/Tracker/Creation/JiraImporter/Configuration/PlatformConfigurationRetriever.php | +52 | −0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Creation/JiraImporter/FromJiraTrackerCreator.php | +37 | −16 | Go to diff View file |
M | plugins/tracker/include/Tracker/Creation/JiraImporter/Import/JiraImporterExternalPluginsEvent.php | +15 | −2 | Go to diff View file |
M | plugins/tracker/include/Tracker/Creation/JiraImporter/Import/JiraXmlExporter.php | +3 | −0 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/FromJiraTrackerCreatorTest.php | +25 | −6 | Go to diff View file |