Skip to content

Conversation

@juliusknorr
Copy link
Member

This will make sure that the API can be used properly by clients.

Fixes #48 though the final API to be implemented in clients should also include further API adjustments for #51, so this might change during further development effort.

@juliusknorr juliusknorr added the enhancement New feature or request label Feb 8, 2022
@juliusknorr juliusknorr mentioned this pull request Feb 8, 2022
11 tasks
* @package OCA\FilesLock\Controller
*/
class LockController extends Controller {
class LockController extends \OCP\AppFramework\OCSController {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe import OCSController

$file = $this->fileService->getFileFromId($user->getUID(), (int)$fileId);

$lock = $this->lockService->lockFile($file, $user);
$lock = $this->lockService->lockFileAsUser($file, $user);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't test does lockFileAsUser() exist in LockService ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, good catch, seems I failed to commit only the relevant parts here, this is from #54

@ArtificialOwl
Copy link
Member

Code looks good, will test (the OCS part) later

@ArtificialOwl
Copy link
Member

can you remove it so we can work on merging this one ?

@juliusknorr
Copy link
Member Author

Comments addressed

@juliusknorr juliusknorr added this to the 24 milestone Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document API

3 participants