Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppData API for settings ... #4041

Open
mmeeks opened this issue Sep 16, 2024 · 2 comments
Open

AppData API for settings ... #4041

mmeeks opened this issue Sep 16, 2024 · 2 comments
Labels
1. to develop Waiting for a developer enhancement New feature or request

Comments

@mmeeks
Copy link
Contributor

mmeeks commented Sep 16, 2024

We would like a new API extension to WOPI that lets us serialize configuration data; essentially a two layer system and then user set of settings. Discussed with @elzody

  • CheckFileInfo
    -> we want two directory listings:
    [ each with a file-name, and an opaque to us string etag (- did it change? -) ]
    -> one directory per system ...
    -> one directory per user ...

    => similar to the fonts end-point ? ...
    => could re-use the JSON there ? ...
    + JSON - name + stamp

    => implementation should use AppData
    + as per fonts ...
    => nice API for this IAppData
    + will give us a directory listing.

  • URLs -> to find this stuff ...

    • we get handed the URLs in CheckFileInfo
      => authentication token to get them ...

Fun code in:
lib/Controller/DocumentController.php
lib/Controller/WopiController.php

  • Links to other things in the WopiController.php response

  • We would need an end-point:

    • to up-load over existing files ...

    • create new files [!?] ...

      • so we need an end-point we can up-load / create new files over - at JSON top-level.
    • richdocuments/appinfo/routes.php -> defines the end-points.

  • Suggest we use eg. 'SettingJSON' = '{ foo }' in the CheckFileInfo ... and have URLs in there.

would use access_token for authentication for the fetch & up-load.

@mmeeks
Copy link
Contributor Author

mmeeks commented Sep 16, 2024

Other bits we might need: users have a habit of corrupting their settings (somehow) - so a "restore defaults" - which just deletes all settings would be useful in the Nextcloud settings.

@mmeeks
Copy link
Contributor Author

mmeeks commented Sep 16, 2024

@pedropintosilva and @juliushaertl - you'd be interested in this perhaps :-)

@juliusknorr juliusknorr added enhancement New feature or request 1. to develop Waiting for a developer labels Sep 17, 2024
@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Office team Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Waiting for a developer enhancement New feature or request
Projects
Status: 🧭 Planning evaluation (don't pick)
Development

No branches or pull requests

2 participants