stable

Clone or download

Read-only

Save document edited in ONLYOFFICE

Currently the metadata saved with the document are quite primitive: multiple authors are not managed, no specific information about ONLYOFFICE. This will be improved in future contributions. To test: 1. Start ONLYOFFICE in your dev stack 2. Enable the feature flag with `tuleap config-set feature_flag_onlyoffice_edit_document 1` 3. Open a document you can edit into ONLYOFFICE 4. Do some changes in the document and then close ONLYOFFICE 5. After a few seconds the callback URL should be called and the document saved Part of story #28263: edit office document stored in Document Change-Id: If3d9716eb36d610465474dad6c72294355029bf7

Modified Files

Name
A plugins/onlyoffice/include/Save/NewFileVersionToCreate.php +36 −0 Go to diff View file
A plugins/onlyoffice/include/Save/OnlyOfficeCallbackDocumentSaver.php +197 −0 Go to diff View file
M plugins/onlyoffice/include/Save/OnlyOfficeSaveController.php +11 −5 Go to diff View file
M plugins/onlyoffice/include/Save/OptionalValue.php +15 −0 Go to diff View file
A plugins/onlyoffice/include/Save/SaveOnlyOfficeCallbackDocument.php +39 −0 Go to diff View file
M plugins/onlyoffice/include/onlyofficePlugin.php +23 −1 Go to diff View file
A plugins/onlyoffice/tests/unit/Save/OnlyOfficeCallbackDocumentSaverTest.php +331 −0 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/OnlyOfficeSaveControllerTest.php +37 −4 Go to diff View file
M plugins/onlyoffice/tests/unit/Save/OptionalValueTest.php +8 −0 Go to diff View file