stable

Clone or download

Read-only

Disable sync and remove buttons when sync is pending

part of story #27185 add a team and inherit the existing PI & Iterations How to test: ------------------------------------------------------------------ 1. - Click on [Sync team] --> The page is reloaded --> The buttons are disabled - Wait a bit - Refresh the page --> The remove button is enabled again, and the sync button is gone ------------------------------------------------------------------- 2. Daily job should clean leftover failed synchronizations. - Add a fake sync in the table program_management_team_synchronization_pending with a timestamp === now() - 1day - Launch daily-job and process sytem events --> The previously added n-uplet should have been deleted Change-Id: I6a1728292ef25d4b01f09f00bdec00e8701c1ece

Modified Files

Name
M plugins/program_management/db/install.sql +6 −0 Go to diff View file
A plugins/program_management/db/mysql/2021/202207271424_add_team_synchronizations_pending_table.php +43 −0 Go to diff View file
M plugins/program_management/db/uninstall.sql +1 −0 Go to diff View file
M plugins/program_management/include/Adapter/Program/Admin/Team/TeamPresenter.php +1 −1 Go to diff View file
M plugins/program_management/include/Adapter/Program/Admin/Team/TeamsPresenterBuilder.php +22 −1 Go to diff View file
A plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/PendingSynchronizationDao.php +76 −0 Go to diff View file
M plugins/program_management/include/Adapter/Program/Backlog/AsynchronousCreation/SynchronizeTeamProcessor.php +29 −0 Go to diff View file
M plugins/program_management/include/DisplayAdminProgramManagementController.php +7 −0 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/ClearPendingTeamSynchronization.php +29 −0 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/StorePendingTeamSynchronization.php +29 −0 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/AsynchronousCreation/VerifyIsSynchronizationPending.php +29 −0 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/TeamSynchronization/CleanPendingSynchronizationDaily.php +28 −0 Go to diff View file
A plugins/program_management/include/Domain/Program/Backlog/TeamSynchronization/SynchronizationCleaner.php +40 −0 Go to diff View file
M plugins/program_management/include/SynchronizeTeamController.php +3 −0 Go to diff View file
M plugins/program_management/include/program_managementPlugin.php +25 −8 Go to diff View file
M plugins/program_management/scripts/admin/src/index.ts +2 −2 Go to diff View file
M plugins/program_management/scripts/admin/src/teams/synchronize-team.test.ts +16 −7 Go to diff View file
M plugins/program_management/scripts/admin/src/teams/synchronize-team.ts +20 −13 Go to diff View file
M plugins/program_management/site-content/fr_FR/LC_MESSAGES/tuleap-program_management.po +3 −0 Go to diff View file
M plugins/program_management/site-content/pt_BR/LC_MESSAGES/tuleap-program_management.po +3 −0 Go to diff View file
M plugins/program_management/templates/admin/teams/admin-list-teams.mustache +8 −0 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Admin/Team/TeamsPresenterBuilderTest.php +12 −0 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/AsynchronousCreation/SynchronizeTeamProcessorTest.php +7 −1 Go to diff View file
M plugins/program_management/tests/unit/DisplayAdminProgramManagementControllerTest.php +5 −1 Go to diff View file
A plugins/program_management/tests/unit/Domain/Program/Backlog/TeamSynchronization/SynchronizationCleanerTest.php +35 −0 Go to diff View file
A plugins/program_management/tests/unit/Stub/CleanPendingSynchronizationDailyStub.php +47 −0 Go to diff View file
A plugins/program_management/tests/unit/Stub/ClearPendingTeamSynchronizationStub.php +49 −0 Go to diff View file
A plugins/program_management/tests/unit/Stub/StorePendingTeamSynchronizationStub.php +49 −0 Go to diff View file
A plugins/program_management/tests/unit/Stub/VerifyIsSynchronizationPendingStub.php +48 −0 Go to diff View file
M plugins/program_management/tests/unit/SynchronizeTeamControllerTest.php +8 −3 Go to diff View file