stable

Clone or download

Read-only

Clean obsolete Jira import

We should not keep forever the pending jira import. One day to process the import is considered enough. The user who initiated the import is notified about the cancellation. Start a Jira import. Once created there is a feedback info telling us that an import is pending. Update in database the created_on to simulate an import initiated 1 or 2 days ago. Then run `tuleap daily-job`. * obsolete Jira imports are removed from database * people are notified This is hidden behind a feature flag. Please issue the following command in order to use it: tuleap config-set asynchronous_jira_creation 1 Reminder: with this setting, the tracker **will not be created**, it is here only for testing purpose. Part of story #14766: Have an import from jira structure Change-Id: I08d72ec863865ee6e9c8fa029b4c9cb1acc4fda0

Modified Files

Name
M plugins/tracker/db/install.sql +2 −1 Go to diff View file
A plugins/tracker/db/mysql/updates/2020/202005130812_add_missing_index_on_jira_import_table.php +41 −0 Go to diff View file
A plugins/tracker/include/Tracker/Creation/JiraImporter/CancellationOfJiraImportNotifier.php +112 −0 Go to diff View file
A plugins/tracker/include/Tracker/Creation/JiraImporter/PendingJiraImport.php +140 −0 Go to diff View file
A plugins/tracker/include/Tracker/Creation/JiraImporter/PendingJiraImportCleaner.php +109 −0 Go to diff View file
M plugins/tracker/include/Tracker/Creation/JiraImporter/PendingJiraImportDao.php +21 −0 Go to diff View file
A plugins/tracker/include/Tracker/Creation/JiraImporter/notification-cancel-html.mustache +38 −0 Go to diff View file
A plugins/tracker/include/Tracker/Creation/JiraImporter/notification-cancel-text.mustache +18 −0 Go to diff View file
M plugins/tracker/include/trackerPlugin.php +39 −1 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +28 −0 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Creation/JiraImporter/PendingJiraImportCleanerTest.php +242 −0 Go to diff View file