stable

Clone or download

Read-only

Git LFS Batch request API processes upload request

A proper response is provided to an upload request [0] and the basic transfer upload URL exists. The basic transfer upload handler is however not yet implemented so no authorization is verified and the object is not saved. This is part of story #12322: have git-lfs batch and basic transfer API [0] https://github.com/git-lfs/git-lfs/blob/master/docs/api/batch.md#requests Change-Id: I006794c42f180b5b2d7f9dae5ecddd98c5226e75

Modified Files

Name
M plugins/git/include/GitRepositoryFactory.class.php +1 −1 Go to diff View file
M plugins/gitlfs/include/Batch/LFSBatchController.php +23 −11 Go to diff View file
M plugins/gitlfs/include/Batch/Request/BatchRequest.php +5 −4 Go to diff View file
A plugins/gitlfs/include/Batch/Response/Action/BatchResponseActionContent.php +52 −0 Go to diff View file
A plugins/gitlfs/include/Batch/Response/Action/BatchResponseActionHref.php +29 −0 Go to diff View file
A plugins/gitlfs/include/Batch/Response/Action/BatchResponseActionHrefUpload.php +49 −0 Go to diff View file
A plugins/gitlfs/include/Batch/Response/Action/BatchResponseActions.php +25 −0 Go to diff View file
A plugins/gitlfs/include/Batch/Response/Action/BatchResponseActionsForUploadOperation.php +41 −0 Go to diff View file
A plugins/gitlfs/include/Batch/Response/BatchResponseObject.php +25 −0 Go to diff View file
A plugins/gitlfs/include/Batch/Response/BatchResponseObjectWithActions.php +62 −0 Go to diff View file
A plugins/gitlfs/include/Batch/Response/BatchSuccessfulResponse.php +49 −0 Go to diff View file
A plugins/gitlfs/include/Batch/Response/BatchSuccessfulResponseBuilder.php +78 −0 Go to diff View file
A plugins/gitlfs/include/Batch/Response/UnknownOperationException.php +25 −0 Go to diff View file
A plugins/gitlfs/include/Transfer/Basic/LFSBasicTransferUploadController.php +39 −0 Go to diff View file
R plugins/gitlfs/include/Batch/Request/BatchRequestTransfer.php Go to diff View file
M plugins/gitlfs/include/gitlfsPlugin.class.php +20 −1 Go to diff View file
A plugins/gitlfs/phpunit/Batch/Response/Action/BatchResponseActionContentTest.php +42 −0 Go to diff View file
A plugins/gitlfs/phpunit/Batch/Response/BatchResponseObjectWithActionsTest.php +46 −0 Go to diff View file
A plugins/gitlfs/phpunit/Batch/Response/BatchSuccessfulResponseBuilderTest.php +77 −0 Go to diff View file
A plugins/gitlfs/phpunit/Batch/Response/BatchSuccessfulResponseTest.php +46 −0 Go to diff View file