stable

Clone or download

Read-only

feat: Create project before sending tus url

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