stable

Clone or download

Read-only

Extract the LFS Object representation from the batch request representation

The LFS Object representation is going to be needed outside of the batch request space, this contribution deals with this refactoring. Also, the LFS object ID format is now enforced to be sure Tuleap does not try to work with LFS object with impossible OIDs. Besides enforcing the LFS object ID format, no functionnal change is expected. This is part of story #12322: have git-lfs batch and basic transfer API Change-Id: I929c3cacc827dadca22b7fa11a4dc5a4774497a4

Modified Files

Name
M plugins/gitlfs/include/Authorization/Action/ActionAuthorizationRequest.php +4 −4 Go to diff View file
M plugins/gitlfs/include/Authorization/Action/ActionAuthorizationTokenCreator.php +1 −1 Go to diff View file
M plugins/gitlfs/include/Authorization/Action/ActionAuthorizationVerifier.php +6 −1 Go to diff View file
M plugins/gitlfs/include/Authorization/Action/AuthorizedAction.php +9 −20 Go to diff View file
M plugins/gitlfs/include/Batch/Request/BatchRequest.php +28 −3 Go to diff View file
M plugins/gitlfs/include/Batch/Response/Action/BatchResponseActionHrefUpload.php +4 −4 Go to diff View file
M plugins/gitlfs/include/Batch/Response/Action/BatchResponseActionHrefVerify.php +4 −4 Go to diff View file
M plugins/gitlfs/include/Batch/Response/BatchResponseObjectWithActions.php +7 −17 Go to diff View file
M plugins/gitlfs/include/Batch/Response/BatchSuccessfulResponseBuilder.php +5 −6 Go to diff View file
R plugins/gitlfs/include/Batch/Request/BatchRequestObject.php Go to diff View file
A plugins/gitlfs/include/Object/LFSObjectID.php +48 −0 Go to diff View file
M plugins/gitlfs/phpunit/Authorization/Action/ActionAuthorizationTokenCreatorTest.php +6 −3 Go to diff View file
M plugins/gitlfs/phpunit/Authorization/Action/ActionAuthorizationVerifierTest.php +6 −6 Go to diff View file
M plugins/gitlfs/phpunit/Batch/Request/BatchRequestTest.php +7 −6 Go to diff View file
M plugins/gitlfs/phpunit/Batch/Response/BatchResponseObjectWithActionsTest.php +9 −1 Go to diff View file
M plugins/gitlfs/phpunit/Batch/Response/BatchSuccessfulResponseBuilderTest.php +4 −3 Go to diff View file
A plugins/gitlfs/phpunit/Object/LFSObjectIDTest.php +42 −0 Go to diff View file
A plugins/gitlfs/phpunit/Object/LFSObjectTest.php +48 −0 Go to diff View file