stable

Clone or download

Read-only

Add the approval update action for the file update modal

This is a part of the story #12453 Update document modal for existing items The approval action are displayed only if the file has an non closed approval table How to test : - In the new docman UI, try to update a file which has not approval table => The approvals update options are not displayed - Try to update a file which contains an approval table => The approvals update options should be displayed - Tests each options => Go to approval menu via the dropdown ( it will redirect to the old docman menu ) => If option = 'copy' => the new approval table should be the same as the approval table before the update => If option = 'reset => A new approval cycle should be started. That means whatever the reviewers status before the update. The status will be 'Not yet' for all reviewers after the update. => If option = 'empty' => A new disabled approval table will be create after the update. => If no option checked => It should returns an error Change-Id: I646f072bf739858a05d02b47ca495197211f6104

Modified Files

Name
M plugins/docman/include/REST/v1/ItemRepresentation.php +31 −17 Go to diff View file
M plugins/docman/include/REST/v1/ItemRepresentationBuilder.php +6 −2 Go to diff View file
M plugins/docman/phpunit/REST/v1/ItemRepresentationBuilderTest.php +3 −0 Go to diff View file
M plugins/docman/phpunit/REST/v1/ItemRepresentationCollectionBuilderTest.php +10 −3 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTest.php +63 −7 Go to diff View file
M plugins/docman/tests/rest/Docman/DocmanItemsTestFilesTest.php +1 −1 Go to diff View file
M plugins/docman/tests/rest/DocmanDataBuilder.php +22 −11 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.js +10 −2 Go to diff View file
M plugins/document/scripts/document/app.spec.js +4 −1 Go to diff View file
A plugins/document/scripts/document/components/Folder/UpdateItem/ApprovalUpdateProperties.spec.js +70 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/UpdateItem/ApprovalUpdateProperties.vue +69 −0 Go to diff View file
A plugins/document/scripts/document/components/Folder/UpdateItem/FileUpdateProperties.spec.js +61 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/UpdateItem/FileUpdateProperties.vue +8 −1 Go to diff View file
M plugins/document/scripts/document/components/Folder/UpdateItem/UpdateFileModal.vue +8 −3 Go to diff View file
M plugins/document/scripts/document/po/fr.po +25 −0 Go to diff View file
M plugins/document/scripts/document/store/actions.js +6 −4 Go to diff View file