aboutsummaryrefslogtreecommitdiff
path: root/internal/db/repos.go
Commit message (Collapse)AuthorAge
* db: migrate to GORM v2 (#6309)ᴜɴᴋɴᴡᴏɴ2020-09-06
|
* db: add tests for users (#6116)ᴜɴᴋɴᴡᴏɴ2020-04-18
| | | | | | | | | | | | | | | | | | | | | * Add new methods * Use Users.Create to replace previous hack * Reduce side effect * Do not clear tables when test failed * test_users_Authenticate * Rename constant * test_users_Create * test_users_GetByEmail * test_users_GetByID * test_users_GetByUsername
* db: add tests for repos (#6112)ᴜɴᴋɴᴡᴏɴ2020-04-17
| | | | | | | | | | | * Add Repos.create method * Fix repo name error handling * Fix all compile errors * Update github.com/go-macaron/captcha to fix http issue * Add repos tests
* db: use gorm function to check `ErrRecordNotFound` (#6060)ᴜɴᴋɴᴡᴏɴ2020-04-05
|
* lfs: implement HTTP routes (#6035)ᴜɴᴋɴᴡᴏɴ2020-04-04
* Bootstrap with GORM * Fix lint error * Set conn max lifetime to one minute * Fallback to use gorm v1 * Define HTTP routes * Finish authentication * Save token updated * Add docstring * Finish authorization * serveBatch rundown * Define types in lfsutil * Finish Batch * authutil * Finish basic * Formalize response error * Fix lint errors * authutil: add tests * dbutil: add tests * lfsutil: add tests * strutil: add tests * Formalize 401 response