stable

Clone or download

Read-only

No async creation => no Jira import

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