stable
Clone or download
Jira import is not anymore synchronous. As of today three conditions are required to be able to import from Jira: * `display_jira_importer` must be truthy in forgeconfig * `sys_nb_backend_workers` must be > 0 in local.inc * `redis_server` must be set in redis.inc[0] Violate one of this condition and jira import will be switched off. This is a best effort. We currently have no easy way to detect if worker events will be processed. We consider previous conditions good enough for a first draft. We may improve this later. How to test: * Switch off jira import Go to plugins ยป tracker ยป create a new tracker => The option to create trackers from jira is not available * Switch on jira import Go to plugins ยป tracker ยป create a new tracker => The option to create trackers from jira is available Switch off jira import Select jira server, project, issue type, Just before submiting the last step (tracker name & co), switch off jira import. Submit your tracker creation. => An error message is displayed. * Switch on jira import Create a tracker from Jira. Wait for the worker event to be processed. => Jira is imported Part of story #14766: Have an import from jira structure [0] https://docs.tuleap.org/developer-guide/back-end/redis.html Change-Id: Ie8ea3375051a68a6663581f6dd109c860693c59a
Modified Files
Name | ||||
---|---|---|---|---|
A | plugins/tracker/db/mysql/updates/2020/202005251216_remove_asynchronous_jira_creation_option.php | +46 | โ0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Creation/JiraImporter/AsyncJiraScheduler.php | +15 | โ15 | Go to diff View file |
M | plugins/tracker/include/Tracker/Creation/JiraImporter/JiraRunner.php | +35 | โ1 | Go to diff View file |
A | plugins/tracker/include/Tracker/Creation/JiraImporter/NoNoopPersistentQueueForJiraImport.php | +31 | โ0 | Go to diff View file |
M | plugins/tracker/include/Tracker/Creation/TrackerCreationPresenter.php | +3 | โ3 | Go to diff View file |
M | plugins/tracker/include/Tracker/Creation/TrackerCreationPresenterBuilder.php | +12 | โ2 | Go to diff View file |
M | plugins/tracker/include/Tracker/Creation/TrackerCreationProcessorController.php | +10 | โ25 | Go to diff View file |
M | plugins/tracker/include/Tracker/Creation/TrackerCreator.php | +1 | โ52 | Go to diff View file |
M | plugins/tracker/include/trackerPlugin.php | +18 | โ14 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/AsyncJiraSchedulerTest.php | +61 | โ9 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/JiraRunnerTest.php | +43 | โ0 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Creation/TrackerCreationPresenterBuilderTest.php | +28 | โ6 | Go to diff View file |
M | plugins/tracker/tests/unit/Tracker/Creation/TrackerCreatorTest.php | +0 | โ46 | Go to diff View file |