stable

Clone or download

Read-only

Introduce a setting allowing to use all project visibility mode

A new setting default_project_visibility can be used with the same values than the ones available in the XML import (private, private-wo-restr, unrestricted and public) to set the default project visibility mode. This setting, when set, takes priority on the existing sys_is_project_public which will be removed from the default local.inc. default_project_visibility will be modifiable in the site administration web UI and through the Tuleap CLI. Part of story #13237: Prevent restricted to be added to private projects Change-Id: I3fafd4f284cc2be45352edb06cdacd252a8a42fc

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/AdminController.class.php +3 −1 Go to diff View file
M plugins/agiledashboard/include/Planning/PlanningController.class.php +3 −1 Go to diff View file
M src/common/CLI/Command/ImportProjectXMLCommand.php +3 −1 Go to diff View file
A src/common/Project/DefaultProjectVisibilityRetriever.php +67 −0 Go to diff View file
M src/common/Project/OneStepCreation/OneStepCreationController.class.php +15 −3 Go to diff View file
M src/common/Project/OneStepCreation/OneStepCreationRequest.class.php +10 −2 Go to diff View file
M src/common/Project/OneStepCreation/OneStepCreationRouter.class.php +13 −5 Go to diff View file
M src/common/Project/ProjectCreationData.class.php +33 −18 Go to diff View file
M src/common/Project/ProjectCreator.class.php +21 −19 Go to diff View file
M src/common/Project/ProjectXMLImporter.class.php +2 −1 Go to diff View file
M src/common/Project/REST/v1/ProjectResource.class.php +2 −0 Go to diff View file
M src/www/project/register.php +4 −1 Go to diff View file
M src/www/soap/project/index.php +3 −1 Go to diff View file
M tests/integration/ProjectCreationTest.php +2 −0 Go to diff View file
M tests/integration/ProjectImportTest.php +2 −0 Go to diff View file
A tests/phpunit/common/Project/DefaultProjectVisibilityRetrieverTest.php +107 −0 Go to diff View file
M tests/phpunit/common/Project/ProjectCreationDataTest.php +15 −2 Go to diff View file
M tests/phpunit/common/Project/ProjectXMLImporterTest.php +3 −1 Go to diff View file
M tests/simpletest/common/Project/OneStepProjectCreationPresenterTest.php +7 −1 Go to diff View file
M tests/simpletest/common/Project/OneStepProjectCreationRequestTest.php +7 −1 Go to diff View file
M tests/simpletest/common/Project/OneStepProjectCreationValidatorTest.php +8 −2 Go to diff View file
M tests/simpletest/common/Project/ProjectCreatorTest.php +8 −3 Go to diff View file