richdocuments icon indicating copy to clipboard operation
richdocuments copied to clipboard

ONHOLD/WIP: POC allow customizing supported formats via app config

Open mrow4a opened this issue 3 years ago • 3 comments

feat: https://github.com/owncloud/richdocuments/issues/207 feat: https://github.com/owncloud/enterprise/issues/3061

previous: it was not possible to specify which formats are supported by Collabora now: it is possible to specify formats with which Collabora should be opened

todo:

  • [x] settings for formats are populated from backend
  • [x] app setting can be added command line
  • [ ] probably needs also mapping from extension to format e.g. ("application/pdf"->".pdf") (1md)
  • [ ] app setting can be added in Admin UI (this parts begs for refactor but can be like this too..) (1-2md)
  • [ ] validate settings added whether they are really supported by collabora (0.5md)
  • [ ] add tests and qa (2md)
  • [ ] add admin docs (0.5md)

By default all supported formats are allowed, to customize execute (e.g. remove pdf if not needed):

occ config:app:set richdocuments supported_mimetypes --value '["application\/pdf","application\/vnd.oasis.opendocument.text","application\/vnd.oasis.opendocument.spreadsheet","application\/vnd.oasis.opendocument.graphics","application\/vnd.oasis.opendocument.presentation","application\/vnd.oasis.opendocument.text-flat-xml","application\/vnd.oasis.opendocument.spreadsheet-flat-xml","application\/vnd.oasis.opendocument.graphics-flat-xml","application\/vnd.oasis.opendocument.presentation-flat-xml","application\/vnd.lotus-wordpro","image\/svg+xml","application\/vnd.visio","application\/vnd.wordperfect","application\/msonenote","application\/msword","application\/rtf","text\/rtf","text\/plain","application\/vnd.openxmlformats-officedocument.wordprocessingml.document","application\/vnd.openxmlformats-officedocument.wordprocessingml.template","application\/vnd.ms-word.document.macroEnabled.12","application\/vnd.ms-word.template.macroEnabled.12","application\/vnd.ms-excel","application\/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application\/vnd.openxmlformats-officedocument.spreadsheetml.template","application\/vnd.ms-excel.sheet.macroEnabled.12","application\/vnd.ms-excel.template.macroEnabled.12","application\/vnd.ms-excel.addin.macroEnabled.12","application\/vnd.ms-excel.sheet.binary.macroEnabled.12","application\/vnd.ms-powerpoint","application\/vnd.openxmlformats-officedocument.presentationml.presentation","application\/vnd.openxmlformats-officedocument.presentationml.template","application\/vnd.openxmlformats-officedocument.presentationml.slideshow","application\/vnd.ms-powerpoint.addin.macroEnabled.12","application\/vnd.ms-powerpoint.presentation.macroEnabled.12","application\/vnd.ms-powerpoint.template.macroEnabled.12","application\/vnd.ms-powerpoint.slideshow.macroEnabled.12"]'

mrow4a avatar Mar 02 '22 18:03 mrow4a

:boom: Acceptance tests pipeline webUISecV-master-chrome-mariadb10.2-php7.4 failed. The build has been cancelled.

https://drone.owncloud.com/owncloud/richdocuments/1826/11/1

ownclouders avatar Mar 02 '22 18:03 ownclouders

:boom: Acceptance tests pipeline webUISecV-latest-chrome-mariadb10.2-php7.4 failed. The build has been cancelled.

https://drone.owncloud.com/owncloud/richdocuments/1826/13/1

ownclouders avatar Mar 02 '22 18:03 ownclouders

from PM -> on hold

mrow4a avatar Sep 30 '22 08:09 mrow4a