stable

Clone or download

Read-only

feat: Update metadata of an artidoc

User can now update the metadata of an artidoc document. Since we cannot inject artidoc specific stuff into document app, we cannot have dedicated artidoc properties (ex: tracker selection). So the route will be standard for every "other types" document: user can only update docman properties. Further configuration of the document will have to be done in artidoc application. Note: like with former contributions, it is not possible to setup a test environment with artidoc documents, so we cannot add REST tests for this new route. It will be done later in dedicated contribution. Part of story #37542: display a read only Document Change-Id: I4ff9a01231e0de8eb942e02c3edfba2c15ef2d63

Modified Files

Name
M plugins/docman/include/REST/ResourcesInjector.php +7 −0 Go to diff View file
A plugins/docman/include/REST/v1/DocmanOtherTypeDocumentsResource.php +143 −0 Go to diff View file
A plugins/docman/tests/rest/Docman/DocmanOtherTypeTest.php +41 −0 Go to diff View file
M plugins/document/scripts/document/api/properties-rest-querier.test.ts +28 −0 Go to diff View file
M plugins/document/scripts/document/api/properties-rest-querier.ts +24 −0 Go to diff View file
A plugins/document/scripts/document/helpers/type-check-helper.test.ts +54 −0 Go to diff View file
M plugins/document/scripts/document/helpers/type-check-helper.ts +11 −0 Go to diff View file
M plugins/document/scripts/document/store/properties/properties-actions.test.ts +20 −3 Go to diff View file
M plugins/document/scripts/document/store/properties/properties-actions.ts +12 −0 Go to diff View file