Commit Graph

10 Commits (8a6790b2aa07fa006d0338669e1da6134a58e313)

Author SHA1 Message Date
zeripath 9269b7f627
Multiple LFS improvements ()
* Add more logging in the LFS server

Adds more logging in the LFS server and stops sending internal server
error information to the client

* Add LFS Lock cursor implementation

* Simplify Claims in LFS and remove the float64 casts

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Lauris BH <lauris@nix.lv>
zeripath dc2fe9801f Make repository management section handle lfs locks ()
* Make repository maangement section handle lfs locks

* Add check attribute handling and handle locking paths better

* More cleanly check-attributes

* handle error

* Check if file exists in default branch before linking to it.

* fixup

* Properly cleanPath

* Use cleanPath

* Sigh
zeripath 6551a9d6ca
Ensure Request Body Readers are closed in LFS server ()
Christian Muehlhaeuser 54d96c79b5 Removed unnecessary conversions ()
No need to convert to the same type.
kolaente f9ec2f89f2 Add golangci ()
zeripath 31557b1274
Fix LFS Locks over SSH ()
* Fix LFS Locks over SSH
* Mark test as skipped
Lunny Xiao 34eee25bd4
Move sdk structs to modules/structs ()
* move sdk structs to moduels/structs

* fix tests

* fix fmt

* fix swagger

* fix vendor
Antoine GIRARD 9e842c8a72 Fix SSH auth lfs locks ()
* Fix SSH auth LFS locks

* Activate SSH/lock test

* Remove debug

* Follow @lunny recommendation for AfterLoad method
Antoine GIRARD 4035ab05fa Fix git lfs path ()
* add suffix .git

* Remove Content-Type on GET methods

* Add migrations to force creation before any further potential migration
Antoine GIRARD d99f4ab003 Git LFS lock api ()
* Implement routes

* move to api/sdk and create model

* Implement add + list

* List return 200 empty list no 404

* Add verify lfs lock api

* Add delete and start implementing auth control

* Revert to code.gitea.io/sdk/gitea vendor

* Apply needed check for all lfs locks route

* Add simple tests

* fix lint

* Improve tests

* Add delete test + fix

* Add lfs ascii header

* Various fixes from review + remove useless code + add more corner case testing

* Remove repo link since only id is needed.

Save a little of memory and cpu time.

* Improve tests

* Use TEXT column format for path + test

* fix mispell

* Use NewRequestWithJSON for POST tests

* Clean path

* Improve DB format

* Revert uniquess repoid+path

* (Re)-setup uniqueness + max path length

* Fixed TEXT in place of VARCHAR

* Settle back to maximum VARCHAR(3072)

* Let place for repoid in key

* Let place for repoid in key

* Let place for repoid in key

* Revert back