Repository navigation
E5515 feature/wopi locks - #486
Conversation
b7caba3 to
626e8d8
Compare
626e8d8 to
9f33a5a
Compare
9f33a5a to
7383479
Compare
69a065f to
a0862e8
Compare
|
Kudos, SonarCloud Quality Gate passed! |
|
@jvillafanez adjusted to the review |
|
I expected something like: I'm not sure if there is any drawback with any of the approaches. Maybe in your code, the server will be fixed (it won't change) when the constructor is run, so if the server changes later it could be a problem (the reference will still point to the old server, not the new one), but this shouldn't be a realistic scenario because there is no reason to change the server reference. In terms of memory usage, I guess it could be a couple of additional references that need to stay in memory, but the object itself can't be freed, so this shouldn't be a problem. |
jvillafanez
left a comment
There was a problem hiding this comment.
Code looks fine, just minor things.
In fact this is what has been done |








implements https://github.com/owncloud/enterprise/issues/5515
NOTE: for reviewing, much of the code is carried over and refactored from past implementation (DocumentController -> WopiController)
\OC::$server->Xto class variables so unit testing is possible\OC::$server->Xto class variables so unit testing is possibleStorage->DocumentService'SupportsGetLock' => false, 'SupportsLocks' => false,as preparation to implement locking workflow as in https://learn.microsoft.com/en-us/microsoft-365/cloud-storage-partner-program/rest/files/lock?source=recommendations'SupportsGetLock' => false, 'SupportsLocks' => true,