Joe Chen
133b9d9044
refactor(db): finish migrate methods off `user.go` ( #7337 )
2023-02-07 23:39:00 +08:00
Joe Chen
13099a7e4f
refactor(db): add `Users.Update` ( #7263 )
2022-11-27 15:19:44 +08:00
Joe Chen
5fb29db2db
refactor(db): migrate methods off and delete deprecated methods from `user.go` ( #7231 )
2022-11-05 23:33:05 +08:00
Joe Chen
fd798b4197
refactor(db): migrate methods off `user.go` ( #7228 )
2022-11-05 17:55:05 +08:00
Joe Chen
a66c90462d
refactor(db): migrate methods off `user.go` and `org.go` ( #7219 ) ( #7227 )
2022-11-05 13:12:53 +08:00
Joe Chen
1905b19ee7
refactor(db): migrate methods off `user.go` ( #7219 )
2022-10-30 23:04:24 +08:00
Joe Chen
ce25881c88
refactor(db): move some methods off `user.go` ( #7199 )
2022-10-22 20:01:38 +08:00
Joe Chen
c502dc6ed8
refactor(db): move some methods from `user.go` to `users.go` ( #7195 )
2022-10-22 14:41:40 +08:00
deepsource-autofix[bot]
deec3516d5
autofix: fix check for empty string ( #6804 )
...
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2022-03-06 16:33:45 +08:00
Atin
d6987ee05b
chore: fix typos in code comments ( #6556 )
2021-05-19 13:12:09 +08:00
Achilleas Koutsou
c4360747a3
repo: support unlisted but publicly accessible repositories ( #6176 )
...
Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
2020-09-04 03:04:22 +08:00
ᴜɴᴋɴᴡᴏɴ
f3993b9cdb
organization: limit showing at most 12 members in profile page ( #6254 )
2020-08-17 21:09:22 +08:00
ᴜɴᴋɴᴡᴏɴ
9d64d222a8
db: add tests for users ( #6116 )
...
* 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
2020-04-18 12:07:30 +08:00
ᴜɴᴋɴᴡᴏɴ
34145c990d
lfs: implement HTTP routes ( #6035 )
...
* 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
2020-04-04 21:14:15 +08:00
ᴜɴᴋɴᴡᴏɴ
5843038a08
workflows: enable golangci-lint ( #5998 )
...
* Create golint.yml
* Update golint.yml
* Update golint.yml
* Fix errcheck
* Fix gosimple
* Fix staticcheck
2020-03-21 13:39:32 +08:00
Michael Li
6bd08a0b6f
internal/db/org: fix private repositories are hidden in the organization view ( #5890 )
2020-01-21 21:11:00 +08:00
Unknwon
01c8df01ec
internal: move packages under this directory ( #5836 )
...
* Rename pkg -> internal
* Rename routes -> route
* Move route -> internal/route
* Rename models -> db
* Move db -> internal/db
* Fix route2 -> route
* Move cmd -> internal/cmd
* Bump version
2019-10-24 01:51:46 -07:00