stable

Clone or download

Read-only

feat: Check worker availability for xml import

Since creation of a project with an archive is now delegated to an asynchronous worker, we need to be sure that workers are available before allowing users to create project with this option. To be able to test you have to set 0 for sys_nb_backend_workers in forgeconfig table (there is a high chance that you cannot do it via tuleap config-set due to protections that have been put in place). Once set to 0, creation from project cannot succeed, and is not proposed as an option. part of story #36484 create a new project from an XML template Change-Id: I64c07c64726b6093b799328b0acb747273740297

Modified Files

Name
M src/common/Project/REST/v1/Project/ProjectCreationDataPOSTProjectBuilder.php +3 −2 Go to diff View file
M src/common/Project/REST/v1/ProjectResource.class.php +4 −1 Go to diff View file
M src/common/Project/Registration/ProjectRegistrationPresenter.php +1 −3 Go to diff View file
M src/common/Project/Registration/ProjectRegistrationPresenterBuilder.php +9 −27 Go to diff View file
M src/common/Project/Registration/Template/CustomProjectArchiveFeatureFlag.php +5 −4 Go to diff View file
A src/common/Project/Registration/Template/VerifyProjectCreationFromArchiveIsAllowed.php +26 −0 Go to diff View file
M src/common/Request/RouteCollector.php +4 −2 Go to diff View file
A tests/lib/Stubs/Project/Registration/Template/VerifyProjectCreationFromArchiveIsAllowedStub.php +47 −0 Go to diff View file
M tests/unit/common/Project/REST/v1/ProjectCreationDataPOSTProjectBuilderTest.php +3 −1 Go to diff View file
M tests/unit/common/Project/Registration/ProjectRegistrationPresenterBuilderTest.php +3 −1 Go to diff View file
M tests/unit/common/Project/Registration/Template/CustomProjectArchiveFeatureFlagTest.php +39 −2 Go to diff View file