stable

Clone or download

Read-only

[chore] prepare merge of POST project_files route inside POST projects

part of story #36484 create a new project from an XML template Why merging route? Previous architecture was weird, uploading a file is conceptually the same thing than creating a project from an xml template the route POST should handle the creation of the project, we need to merge the two routes Why this refacto? In order to merge the project_files into the existing POST project route, I'll need to add a new ProjectCreationData from zipArchive This patch: - adds types in ProjectCreationData - add namespace in ProjectCreationData - moves file concerning Project creation inside a common namespace src/common/Project/REST/v1/Project/ How to test the absence of #regression: - you can create a project from any template from UI - you can create a project from a project you're admin of in advanced settings - in the Details tab of the created project, the template used by project is correct Change-Id: Ia963db0f37fc90216bab9fc1693db45d6943b3c3

Modified Files

Name
M plugins/jira_import/include/Project/CreateProjectFromJira.php +1 −1 Go to diff View file
M plugins/jira_import/include/Project/ReplayImportCommand.php +1 −1 Go to diff View file
M plugins/svn/tests/unit/SVN/Service/ServiceActivatorTest.php +2 −2 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Service/ServiceActivatorTest.php +3 −2 Go to diff View file
M src/common/Layout/NewDropdown/NewDropdownPresenterBuilder.php +2 −1 Go to diff View file
M src/common/Project/Admin/DescriptionFields/FieldUpdator.php +1 −1 Go to diff View file
M src/common/Project/Admin/Service/ProjectServiceActivator.php +3 −3 Go to diff View file
R src/common/Project/ProjectCreationData.class.php Go to diff View file
M src/common/Project/ProjectCreator.class.php +1 −0 Go to diff View file
M src/common/Project/ProjectXMLImporter.class.php +1 −0 Go to diff View file
R src/common/Project/REST/v1/File/CreatedFileRepresentation.php Go to diff View file
R src/common/Project/REST/v1/ProjectCreationDataPOSTProjectBuilder.php Go to diff View file
R src/common/Project/REST/v1/File/ProjectFilePOSTRepresentation.php Go to diff View file
M src/common/Project/REST/v1/ProjectFileResource.php +2 −2 Go to diff View file
M src/common/Project/REST/v1/ProjectResource.class.php +2 −1 Go to diff View file
M src/common/Project/REST/v1/RestProjectCreator.php +1 −1 Go to diff View file
M src/common/Project/Registration/ProjectRegistrationBaseChecker.php +1 −1 Go to diff View file
M src/common/Project/Registration/ProjectRegistrationChecker.php +1 −1 Go to diff View file
M src/common/Project/Registration/ProjectRegistrationCheckerAggregator.php +1 −1 Go to diff View file
M src/common/Project/Registration/ProjectRegistrationCheckerBlockErrorSet.php +1 −1 Go to diff View file
M src/common/Project/Registration/ProjectRegistrationPermissionsChecker.php +1 −1 Go to diff View file
M src/common/Project/Registration/ProjectRegistrationRESTChecker.php +1 −1 Go to diff View file
M src/common/Project/Registration/ProjectRegistrationXMLChecker.php +1 −1 Go to diff View file
M src/common/Project/Registration/Template/Upload/InsertFileToUpload.php +1 −1 Go to diff View file
M src/common/Project/Registration/Template/Upload/ProjectFileToUploadCreator.php +1 −1 Go to diff View file
M tests/unit/common/Layout/NewDropdown/NewDropdownPresenterBuilderTest.php +1 −1 Go to diff View file
M tests/unit/common/Project/Admin/DescriptionFields/FieldUpdatorTest.php +1 −1 Go to diff View file
M tests/unit/common/Project/Admin/Service/ProjectServiceActivatorTest.php +11 −10 Go to diff View file
M tests/unit/common/Project/ProjectCreationDataTest.php +0 −1 Go to diff View file
M tests/unit/common/Project/ProjectCreatorTest.php +0 −1 Go to diff View file
M tests/unit/common/Project/REST/v1/ProjectCreationDataPOSTProjectBuilderTest.php +1 −0 Go to diff View file
M tests/unit/common/Project/REST/v1/RestProjectCreatorTest.php +1 −1 Go to diff View file
M tests/unit/common/Project/Registration/ProjectRegistrationBaseCheckerTest.php +1 −1 Go to diff View file
M tests/unit/common/Project/Registration/ProjectRegistrationCheckerAggregatorTest.php +3 −3 Go to diff View file
M tests/unit/common/Project/Registration/ProjectRegistrationCheckerBlockErrorSetTest.php +3 −3 Go to diff View file
M tests/unit/common/Project/Registration/ProjectRegistrationPermissionsCheckerTest.php +1 −1 Go to diff View file
M tests/unit/common/Project/Registration/ProjectRegistrationRESTCheckerTest.php +1 −1 Go to diff View file
M tests/unit/common/Project/Registration/Template/Upload/FileToUploadCreatorTest.php +1 −1 Go to diff View file