-
Notifications
You must be signed in to change notification settings - Fork 28
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
Adding support for a Lock API #160
Conversation
@wkloucek we need a dummy implementation (like method not supported), and then we can jump into the real implementation, would be able to provide it? |
78f4c2b
to
32f5cae
Compare
I'll have a look tomorrow |
Thanks, feel free to ping me as I'm also adding something (having WOPI as a "reference" for now) |
How can we specify / document some implementation details that can not be directly mapped in the protobuf defintions? For example:
@glpatcern Do we need a |
also, please have a look at cs3org/reva#2350 |
Good questions, also the lock implementation itself is to be defined - and I added some comments detailing a possible reference implementation. I don't think we can do more than commenting what
(that is implied by the lock types definitions, but yeah maybe I'll spell it out more explicitly)
same here
As you say
Also thanks for the dummy implementations and the non-dummy wiring in the gateway ;-) |
You're right, that should be the place to put it
You're right, it's all coherent |
I think these are pretty good guidelines, and a concise very concise writeup 👌 |
OK, now the specs are more spelled out - and I suggest a slight change in my last commit: |
Do you mean perhaps " |
No, really when it's not locked. If it's locked and the user has read access, |
I see! thanks for clarifying :) |
Also some more detailed specs are provided for the implementations
As recently discussed, this is a minimal API that would initially be used by the WOPI server to manage its locks.
The idea is to implement the
SHARED
lock type only for now, as that's the closest to the current WOPI server implementation. At a later stage, theWRITE
lock (enforced by sync/webdav clients) would be more appropriate for the WOPI server.Fixes #6. At least strives to ;-) (and comments are welcome to have as complete an API as possible)