stable
Clone or download
To not loose project creation context when we send back the url to upload XML archive via tus protocole, we need to create the project first. It is created in a new status 'X' (as in XML, if you have a better suggestionβ¦). * This project is not accessible * This project does not appear in pending projects page In next contribution the id of this new project will be stored alongside tus file in `project_file_upload` table so that we will be able to continue the XML import in the Finisher. Note: In order to be consistent with other resources (e.g docman files), we send back the id and uri of the project alongside the upload href. This is needed for the client to know where to look at when the project will be fully created (for now it will get only 404 since XML import is not implemented yet). part of story #36484 create a new project from an XML template Change-Id: I01a3cacd1c8408653ca8cb5dc290a2eaef45e443
Modified Files
Name | ||||
---|---|---|---|---|
M | src/common/Project/Admin/ProjectListResultsPresenterBuilder.php | +4 | β0 | Go to diff View file |
M | src/common/Project/Project.class.php | +2 | β0 | Go to diff View file |
M | src/common/Project/ProjectCreationData.php | +11 | β0 | Go to diff View file |
M | src/common/Project/ProjectCreator.class.php | +20 | β0 | Go to diff View file |
M | src/common/Project/ProjectXMLImporter.class.php | +2 | β2 | Go to diff View file |
M | src/common/Project/REST/v1/Project/PostProjectCreated.php | +5 | β2 | Go to diff View file |
M | src/common/Project/REST/v1/Project/ProjectFromArchiveRepresentation.php | +14 | β1 | Go to diff View file |
M | src/common/Project/REST/v1/ProjectResource.class.php | +1 | β0 | Go to diff View file |
M | src/common/Project/REST/v1/RestProjectCreator.php | +11 | β1 | Go to diff View file |
M | src/common/Project/Registration/ProjectCreationDao.php | +1 | β2 | Go to diff View file |
M | tests/unit/common/Project/ProjectCreationDataTest.php | +2 | β0 | Go to diff View file |
M | tests/unit/common/Project/REST/v1/RestProjectCreatorTest.php | +13 | β0 | Go to diff View file |