stable

Clone or download

Read-only

Do not refresh the whole folder after item creation

Part of story #12447: Modal new document for empty/wiki/link Now on POST /docman_items we return the id of the created document (*no* full item representation for the incoming tus implementation). This allow us to retrieve only the created item instead of loading the whole folder. Change-Id: I6cafece6d1ee729aa849d87bd33374b4a6c63aa5

Modified Files

Name
A plugins/docman/include/REST/v1/CreatedItemRepresentation.php +46 −0 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemCreator.php +5 −0 Go to diff View file
M plugins/docman/include/REST/v1/DocmanItemsResource.php +8 −1 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.js +3 −1 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.spec.js +1 −0 Go to diff View file
M plugins/document/scripts/document/store/actions.js +4 −2 Go to diff View file
M plugins/document/scripts/document/store/actions.spec.js +13 −3 Go to diff View file
M plugins/document/scripts/document/store/mutations.js +9 −0 Go to diff View file
M plugins/document/scripts/document/store/mutations.spec.js +27 −0 Go to diff View file