stable

Clone or download

Read-only

Implement lock listing

This change is part of story #12323 This feature is secured by a feature flag in Forge Config: feature_gitlfs_lock_api It can be tested using the lfs client by issuing a `git lfs locks` /!\ Following discussions, although pagination is described in the Git LFS spec, it has been removed from this commit due to the fact that the same authentication token is used for going through it which is incompatible with our one-shot tokens implementation. It will be implemented later on if ever needed. /!\ Change-Id: Idad875417da7b55c551e4d10638d3b114434d61b

Modified Files

Name
A plugins/gitlfs/include/Lock/Controller/LFSLockListController.php +146 −0 Go to diff View file
M plugins/gitlfs/include/Lock/LockDao.php +38 −0 Go to diff View file
A plugins/gitlfs/include/Lock/LockRetriever.php +74 −0 Go to diff View file
A plugins/gitlfs/include/Lock/Request/LockListRequest.php +92 −0 Go to diff View file
M plugins/gitlfs/include/Lock/Response/LockResponseBuilder.php +21 −1 Go to diff View file
R plugins/gitlfs/include/Lock/Response/LockResponseSuccessfulCreation.php Go to diff View file
A plugins/gitlfs/include/Lock/Response/LockResponseSuccessfulCreationRepresentation.php +44 −0 Go to diff View file
A plugins/gitlfs/include/Lock/Response/LockResponseSuccessfulListRepresentation.php +41 −0 Go to diff View file
M plugins/gitlfs/include/gitlfsPlugin.class.php +20 −0 Go to diff View file
A plugins/gitlfs/phpunit/Lock/Request/LockListRequestTest.php +63 −0 Go to diff View file
M plugins/gitlfs/phpunit/Lock/Response/LockResponseBuilderTest.php +43 −1 Go to diff View file