Commit Graph

51 Commits (669bbbaf243ae1e65d6667eb91d2a963b526ebd7)

Author SHA1 Message Date
Lunny Xiao dd30d9d5c0
Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 12 months ago
Lunny Xiao df1e7d0067
Use db.Find instead of writing methods for every object (#28084) 1 year ago
JakobDev cc5df26680
Even more `db.DefaultContext` refactor (#27352) 1 year ago
Lunny Xiao 673cf6af76
make writing main test easier (#27270) 1 year ago
JakobDev 7047df36d4
Another round of `db.DefaultContext` refactor (#27103) 1 year ago
JakobDev f91dbbba98
Next round of `db.DefaultContext` refactor (#27089) 1 year ago
JakobDev 76659b1114
Reduce usage of `db.DefaultContext` (#27073) 1 year ago
Nanguan Lin da50be7360
Replace 'userxx' with 'orgxx' in all test files when the user type is org (#27052) 1 year ago
Lunny Xiao 4f32abaf94
move repository deletion to service layer (#26948) 1 year ago
KN4CK3R f656d2d92c
Remove unused code (#25734) 1 year ago
Lunny Xiao 11598885b3
Use RepositoryList instead of []*Repository (#25074) 1 year ago
Philip Peterson 63d5e762d8
Add missing test case and fix typo in tests (#24915) 2 years ago
wxiaoguang 4647660776
Rewrite logger system (#24726) 2 years ago
Yarden Shoham 0a3c4d4a59
Fix team members API endpoint pagination (#24754) 2 years ago
yp05327 da6e9f63df
Add owner team permission check test (#24096) 2 years ago
yp05327 26a0cd7143
Allow repo admins too to delete the repo (#23940) 2 years ago
yp05327 bbf83f5d4b
Improve permission check of packages (#23879) 2 years ago
yp05327 6eb856c614
Fix owner team access mode value in team_unit table (#23675) 2 years ago
yp05327 cf29ee6dd2
Add missing tabs to org projects page (#22705) 2 years ago
yp05327 7eaf192967
Rename `GetUnits` to `LoadUnits` (#22970) 2 years ago
Lunny Xiao bd820aa9c5
Add context cache as a request level cache (#22294) 2 years ago
KN4CK3R e8186f1c0f
Map OIDC groups to Orgs/Teams (#21441) 2 years ago
Gusted 1b53a9e914
Don't return duplicated users who can create org repo (#22560) 2 years ago
Lunny Xiao 6fe3c8b398
Support org/user level projects (#22235) 2 years ago
Jason Song 659055138b
Secrets storage with SecretKey encrypted (#22142) 2 years ago
Lunny Xiao 68704532c2
Rename almost all Ctx functions (#22071) 2 years ago
Lunny Xiao 0a7d3ff786
refactor some functions to support ctx as first parameter (#21878) 2 years ago
flynnnnnnnnnn e81ccc406b
Implement FSFE REUSE for golang files (#21840) 2 years ago
KN4CK3R 88d5275614
Do not allow Ghost access to limited visible user/org (#21849) 2 years ago
Lunny Xiao 34283a74e8
Allow detect whether it's in a database transaction for a context.Context (#21756) 2 years ago
delvh 0ebb45cfe7
Replace all instances of fmt.Errorf(%v) with fmt.Errorf(%w) (#21551) 2 years ago
KN4CK3R c3b2e44392
Add team member invite by email (#20307) 2 years ago
zeripath 716fcfcf72
Make every not exist error unwrappable to a fs.ErrNotExist (#20891) 2 years ago
6543 c5e88fb03d
[API] teamSearch show teams with no members if user is admin (#21204) 2 years ago
Lunny Xiao 1d8543e7db
Move some files into models' sub packages (#20262) 2 years ago
Gusted 0b4c166e8a
Fix SQL Query for `SearchTeam` (#20844) 2 years ago
Lunny Xiao 86c85c19b6
Refactor AssertExistsAndLoadBean to use generics (#20797) 2 years ago
Tyrone Yeh 931c02d152
Add order by for assignee no sort issue (#20053) 2 years ago
luzpaz d29d6d1991
Fix various typos (#20338) 2 years ago
Lunny Xiao 0649c54275
Adjust transaction handling via db.Context (#20031) 2 years ago
Wim cb50375e2b
Add more linters to improve code readability (#19989) 2 years ago
Lunny Xiao d91d4db344
Move tests as seperate sub packages to reduce duplicated file names (#19951) 2 years ago
Lunny Xiao fd7d83ace6
Move almost all functions' parameter db.Engine to context.Context (#19748) 3 years ago
Lunny Xiao d81e31ad78
Move org functions (#19753) 3 years ago
zuzuviewer 77e9346342
Fix duplicate entry error when add team member (#19702) 3 years ago
6543 06e4687cec
more context for models (#19511) 3 years ago
qwerty287 ae6a52440a
Fix panic in team repos API (#19431) 3 years ago
Lunny Xiao b8911fb456
Use a struct as test options (#19393) 3 years ago
Lunny Xiao 89b9d42f08
Fix broken of team create (#19288) 3 years ago
6543 3e88af898a
Make git.OpenRepository accept Context (#19260) 3 years ago