stable

Clone or download

Read-only

request #19219: Creating a new tracker from a Jira import might not be available even when the instance can do background processing

The Jira import feature when you create a tracker is only available on Tuleap instance that can do background processing. However when the instance can do background processing but has not explicitly set the configuration parameter sys_nb_backend_workers the feature is not be available (it should). The issue is not unique to the Jira import, a similar issue exist when processing pull request events, they might get processed online when they could processed without blocking the end users. This contribution exposes an new high level API to determine if the instance is expected to be able to do some background processing. The setting sys_async_emails has been removed. It was initially introduced to allow a progressive deployment of the feature. The background processing is now considered robust enough to always be actived for all projects. Change-Id: I1dbe098db28337e036bb6e9e5f4b474d3dc4beb1

Modified Files

Name
M plugins/pullrequest/include/PullRequest/Notification/EventSubjectToNotificationAsynchronousRedisDispatcher.php +9 −3 Go to diff View file
M plugins/pullrequest/include/PullRequest/Notification/PullRequestNotificationSupport.php +3 −1 Go to diff View file
M plugins/pullrequest/tests/unit/Notification/EventSubjectToNotificationAsynchronousRedisDispatcherTest.php +10 −6 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ArtifactsDeletion/ArtifactDeletorBuilder.php +3 −4 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/ArtifactsDeletion/AsynchronousArtifactsDeletionActionsRunner.php +8 −2 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/PostCreation/ActionsRunner.php +10 −25 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/PostCreation/AsynchronousSupervisor.php +14 −9 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/AsynchronousJiraRunner.php +3 −0 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/JiraRunner.php +9 −3 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +6 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/ArtifactsDeletion/AsynchronousArtifactsDeletionActionsRunnerTest.php +10 −5 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Artifact/Changeset/PostCreation/ActionsRunnerTest.php +22 −18 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/JiraRunnerTest.php +12 −8 Go to diff View file
M src/common/CLI/Command/WorkerSupervisorCommand.php +15 −17 Go to diff View file
M src/common/CLI/Command/WorkerSystemCtlCommand.php +11 −17 Go to diff View file
A src/common/Queue/WorkerAvailability.php +46 −0 Go to diff View file
M src/etc/local.inc.dist +0 −11 Go to diff View file
M src/utils/tuleap.php +2 −0 Go to diff View file
A tests/unit/common/Queue/WorkerAvailabilityTest.php +59 −0 Go to diff View file