Merged
Conversation
2 tasks
ae86f94 to
c49a0e9
Compare
59075db to
d17137d
Compare
Signed-off-by: Julius Härtl <jus@bitgrid.net> TMP: Switch to OCP branch for tests Signed-off-by: Julius Härtl <jus@bitgrid.net> Let locked files open in read only Signed-off-by: Julius Härtl <jus@bitgrid.net> Adapt LockScope to LockContext rename Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Julius Härtl <jus@bitgrid.net>
11d8ab5 to
f526f7d
Compare
Signed-off-by: Julius Härtl <jus@bitgrid.net>
b6aa2be to
8979993
Compare
Member
Author
|
/compile amend / |
Signed-off-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
8979993 to
42a7882
Compare
julien-nc
approved these changes
Apr 21, 2022
| $this->lockManager->lock(new LockContext( | ||
| $file, | ||
| ILock::TYPE_APP, | ||
| Application::APP_NAME |
Member
There was a problem hiding this comment.
Out of topic but this could become Application::APP_ID at some point.
Member
Author
There was a problem hiding this comment.
Yes, something for a separate PR.
| Application::APP_NAME | ||
| )); | ||
| } catch (NoLockProviderException $e) { | ||
| } catch (PreConditionNotMetException $e) { |
Member
Author
There was a problem hiding this comment.
I'd let the actual lock provider handle that, from the text app side there is no special interest if we unlock a file that has already been unlocked.
Member
Author
|
/backport to stable24 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To be tested together with nextcloud/files_lock#54