stable

Clone or download

Read-only

Implement lock creation

This change is part of story #12323 This feature is secured by a feature flag in Forge Config: feature_gitlfs_lock_api /!\ You can acquire multiple locks for a file/reference. This is on purpose, lock check on creation will be implemented in a future change. It can be tested using the lfs client by doing a `git lfs lock path/to/your/file` Change-Id: I2ab0747383cc3b6dca978bf215b21bd07d7713ac

Modified Files

Name
M plugins/gitlfs/db/install.sql +11 −1 Go to diff View file
A plugins/gitlfs/db/mysql/updates/2019/201901111045_add_lock_table.php +48 −0 Go to diff View file
M plugins/gitlfs/db/uninstall.sql +1 −0 Go to diff View file
M plugins/gitlfs/include/Batch/LFSBatchController.php +26 −22 Go to diff View file
M plugins/gitlfs/include/Batch/Request/BatchRequest.php +7 −9 Go to diff View file
A plugins/gitlfs/include/HTTP/GitLfsHTTPOperation.php +27 −0 Go to diff View file
A plugins/gitlfs/include/HTTP/LFSAPIHTTPAccessControl.php +73 −0 Go to diff View file
R plugins/gitlfs/include/Batch/LSFBatchAPIHTTPAuthorization.php Go to diff View file
A plugins/gitlfs/include/HTTP/ReferencedOperation.php +27 −0 Go to diff View file
A plugins/gitlfs/include/HTTP/RequestReference.php +39 −0 Go to diff View file
R plugins/gitlfs/include/Batch/LFSBatchAPIHTTPAccessControl.php Go to diff View file
A plugins/gitlfs/include/Lock/Controller/LFSLockCreateController.php +155 −0 Go to diff View file
A plugins/gitlfs/include/Lock/Lock.php +80 −0 Go to diff View file
A plugins/gitlfs/include/Lock/LockCreator.php +64 −0 Go to diff View file
A plugins/gitlfs/include/Lock/LockDao.php +45 −0 Go to diff View file
A plugins/gitlfs/include/Lock/Request/IncorrectlyFormattedLockCreateRequestException.php +25 −0 Go to diff View file
A plugins/gitlfs/include/Lock/Request/LockCreateRequest.php +103 −0 Go to diff View file
A plugins/gitlfs/include/Lock/Response/LockResponse.php +28 −0 Go to diff View file
A plugins/gitlfs/include/Lock/Response/LockResponseBuilder.php +31 −0 Go to diff View file
A plugins/gitlfs/include/Lock/Response/LockResponseSuccessfulCreation.php +51 −0 Go to diff View file
M plugins/gitlfs/include/gitlfsPlugin.class.php +63 −16 Go to diff View file
R plugins/gitlfs/phpunit/Batch/LFSBatchAPIHTTPAccessControlTest.php Go to diff View file
R plugins/gitlfs/phpunit/Batch/LSFBatchAPIHTTPAuthorizationTest.php Go to diff View file
A plugins/gitlfs/phpunit/Lock/Request/LockCreateRequestTest.php +58 −0 Go to diff View file
A plugins/gitlfs/phpunit/Lock/Response/LockResponseBuilderTest.php +64 −0 Go to diff View file