Lunny Xiao
1d8543e7db
Move some files into models' sub packages ( #20262 )
...
* Move some files into models' sub packages
* Move functions
* merge main branch
* Fix check
* fix check
* Fix some tests
* Fix lint
* Fix lint
* Revert lint changes
* Fix error comments
* Fix lint
Co-authored-by: 6543 <6543@obermui.de>
2 years ago
Lunny Xiao
de8e3948a5
Refactor auth package ( #17962 )
3 years ago
wxiaoguang
df64fa4865
Decouple unit test code from business code ( #17623 )
3 years ago
Lunny Xiao
5842a55b31
Move login related structs and functions to models/login ( #17093 )
...
* Move login related structs and functions to models/login
* Fix test
* Fix lint
* Fix lint
* Fix lint of windows
* Fix lint
* Fix test
* Fix test
* Only load necessary fixtures when preparing unit tests envs
* Fix lint
* Fix test
* Fix test
* Fix error log
* Fix error log
* Fix error log
* remove unnecessary change
* fix error log
* merge main branch
3 years ago
Lunny Xiao
a4bfef265d
Move db related basic functions to models/db ( #17075 )
...
* Move db related basic functions to models/db
* Fix lint
* Fix lint
* Fix test
* Fix lint
* Fix lint
* revert unnecessary change
* Fix test
* Fix wrong replace string
* Use *Context
* Correct committer spelling and fix wrong replaced words
Co-authored-by: zeripath <art27@cantab.net>
3 years ago
zeripath
1904941382
Add test to ensure that dumping of login sources remains correct ( #16847 )
...
#16831 has occurred because of a missed regression. This PR adds a simple test to
try to prevent this occuring again.
Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago
zeripath
edb838997c
Fix setting version table in dump ( #15753 )
...
* Fix setting version table in dump
As noted on Discord there is a problem with gitea dump where the version table
is not being dumped correctly.
This is due to a missing pointer in the TableInfo.
This PR fixes this.
Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update models_test.go
4 years ago
6543
cfd8e8a489
gitea dump: include version & Check InstallLock ( #12760 )
...
* gitea dump: include version
* Check InstallLock (close #12759 )
* fix test
* fix lint
4 years ago
Lunny Xiao
f83db078f0
Move database settings from models to setting ( #7806 )
...
* move database settings from models to setting
* update docs
* fix checkout pr
* fix tests
* fix lint
* remove unsupported tidb options
* correct wrong variable name
* remove tidb totally
5 years ago
Lunny Xiao
91dcccf72d
fix dump table name error and add some test for dump database ( #6394 )
6 years ago
techknowlogick
d84da8fe65
Change parsing of postgresql settings ( #4275 )
...
* Change parsing of postgresql settings
Fix #4200
* Add copyright
* update postgresql connection string
* add tests
7 years ago
Kim "BKC" Carlbäcker
d349f059af
Cleaner IMO ( #1361 )
8 years ago
Bo-Yi Wu
1ec6b1a258
fix: gofmt error. ( #918 )
8 years ago
Ethan Koenig
d2329e1c26
Use assert in legacy unit tests ( #867 )
8 years ago
Unknwon
5be881756b
#3442 add test suites
8 years ago
Unknown
830494a8aa
Remove old files
11 years ago
zhsso
a4cbe79567
fix
11 years ago
zhsso
f3ed11d177
mistakes
11 years ago
Unknown
3144fac03c
IP: RC Code Review
11 years ago
Unknown
f6596f11c4
All configuration reload-able
11 years ago
Unknown
8ef198dfac
Formatting
11 years ago
Lunny Xiao
237193ef2a
add user models
11 years ago
Lunny Xiao
a30e5bcaf8
add createrepository & deleterepository
11 years ago