stable

Clone or download

Read-only

[tech] Introducing ProjectRegistrationSubmittedField* objets

This is part of story #21386: dry run REST project creation No functional change expected in this patch. This commit introduces objets to deal with submitted project fields during the project registration process. Those objects will be used to deal with project registration validation and dry/run REST route. Change-Id: Ib0b9d420124a7170717b7eb75bdceb5519a13059

Modified Files

Name
M site-content/fr_FR/LC_MESSAGES/tuleap-core.po +8 −0 Go to diff View file
M src/common/Project/Admin/DescriptionFields/FieldDoesNotExistException.php +23 −1 Go to diff View file
M src/common/Project/Admin/DescriptionFields/FieldUpdator.php +2 −69 Go to diff View file
M src/common/Project/Admin/DescriptionFields/MissingMandatoryFieldException.php +23 −1 Go to diff View file
A src/common/Project/Admin/DescriptionFields/ProjectRegistrationSubmittedField.php +49 −0 Go to diff View file
A src/common/Project/Admin/DescriptionFields/ProjectRegistrationSubmittedFieldsCollection.php +84 −0 Go to diff View file
A src/common/Project/Admin/DescriptionFields/ProjectRegistrationSubmittedFieldsCollectionConsistencyChecker.php +85 −0 Go to diff View file
M src/common/Project/DescriptionFieldsDao.php +15 −0 Go to diff View file
M src/common/Project/DescriptionFieldsFactory.php +12 −5 Go to diff View file
M src/common/Project/ProjectCreationData.class.php +21 −16 Go to diff View file
M src/common/Project/ProjectCreator.class.php +0 −1 Go to diff View file
M src/common/Project/REST/v1/ProjectCreationDataPOSTProjectBuilder.php +17 −0 Go to diff View file
M src/common/Project/REST/v1/ProjectResource.class.php +6 −6 Go to diff View file
M src/common/Project/REST/v1/RestProjectCreator.php +12 −28 Go to diff View file
M tests/rest/tests/ProjectTest.php +1 −0 Go to diff View file
M tests/unit/common/Project/Admin/DescriptionFields/FieldUpdatorTest.php +14 −103 Go to diff View file
A tests/unit/common/Project/Admin/DescriptionFields/ProjectRegistrationSubmittedFieldsCollectionConsistencyCheckerTest.php +97 −0 Go to diff View file
A tests/unit/common/Project/Admin/DescriptionFields/ProjectRegistrationSubmittedFieldsCollectionTest.php +74 −0 Go to diff View file
M tests/unit/common/Project/REST/v1/ProjectCreationDataPOSTProjectBuilderTest.php +111 −0 Go to diff View file
M tests/unit/common/Project/REST/v1/RestProjectCreatorTest.php +40 −16 Go to diff View file