Joe Chen
fce3e65b2c
orgsAddMember
2023-12-17 16:42:35 -05:00
Joe Chen
bf92bcdf66
orgsDeleteByID
2023-12-17 16:42:35 -05:00
Joe Chen
6345c503c8
orgsCount
2023-12-17 16:42:14 -05:00
Joe Chen
cbd3c7a40b
orgsList
2023-12-17 16:42:14 -05:00
Joe Chen
0ca926e87b
fixup
2023-12-17 16:42:14 -05:00
Joe Chen
26f8ddfca0
orgsGetByName
2023-12-17 16:42:14 -05:00
Joe Chen
ed260cbcb9
orgsCreate
2023-12-17 16:41:34 -05:00
Joe Chen
9797508a0a
GetUserMirrorRepositories
2023-12-17 16:39:41 -05:00
Joe Chen
2971cabae1
getOrgUsersByOrgID
2023-12-17 16:39:41 -05:00
Joe Chen
849d281bfa
GetOwnedOrgsByUserIDDesc
2023-12-17 16:39:41 -05:00
Joe Chen
a18290d166
fix race
2023-12-17 16:39:41 -05:00
Joe Chen
b332af5653
Fix damn test
2023-12-17 16:39:41 -05:00
Joe Chen
bd31c3fa6f
Delete `GetOrgsByUserID`
2023-12-17 16:39:41 -05:00
Joe Chen
ac636b53cf
`DeleteByID`
2023-12-17 16:39:41 -05:00
Joe Chen
a44928493d
Fix `Orgs.Join`
2023-12-17 16:39:40 -05:00
Joe Chen
e0a14a54fe
Use `OrganizationsStore.Create` replace tests hack
2023-12-17 16:38:42 -05:00
Joe Chen
371c56e306
fixup
2023-12-17 16:37:40 -05:00
deepsource-autofix[bot]
9cc3cc7a26
style: format code with Go fmt and Gofumpt
...
This commit fixes the style issues introduced in d1a28d3 according to the output
from Go fmt and Gofumpt.
Details: https://github.com/gogs/gogs/pull/7538
2023-12-17 16:34:10 -05:00
Joe Chen
10fd9e9e38
db: migrate `org.go` to `orgs.go` with GORM
2023-12-17 16:34:09 -05:00
Joe Chen
25fdeaac49
db: pass context to tests by default ( #7622 )
...
[skip ci]
2023-12-17 16:32:28 -05:00
Joe Chen
31a0964e12
dbtest: properly close test connection ( #7598 )
2023-11-12 19:09:50 -05:00
Athanasios Oikonomou
c531da02ca
commit: fix `matchUsersWithCommitEmails` ( #7561 )
...
Co-authored-by: Joe Chen <jc@unknwon.io>
2023-11-01 11:58:48 -04:00
Joe Chen
069f1ed9a4
db: migrate `admin.go` to `notices.go` with GORM ( #7536 )
2023-08-23 00:15:30 -04:00
dependabot[bot]
0ca017d0a8
mod: bump github.com/go-ldap/ldap/v3 from 3.4.4 to 3.4.5 ( #7476 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joe Chen <jc@unknwon.io>
2023-06-17 12:17:06 -04:00
Joe Chen
0721ef2399
refactor(db): migrate off `user_email.go` to `users.go` ( #7452 )
2023-05-14 20:15:47 -04:00
Joe Chen
ada1083462
tests(db): fix data race ( #7444 )
...
[skip ci]
2023-05-08 23:02:45 -04:00
TheDarkUndoing
5483d97f73
gitutil: strip SSH port from submodule URL when rendering for HTML link ( #7383 )
...
Co-authored-by: Joe Chen <jc@unknwon.io>
2023-03-05 20:00:56 +08:00
Joe Chen
3e3d6eda12
chore: update Go versions in CI ( #7346 )
2023-02-19 18:10:34 +08:00
Joe Chen
15d0d6a94b
fix(db): correctly check Git path on case-insensitive file system ( #7359 )
2023-02-18 22:15:13 +08:00
Joe Chen
0f8c71d3b3
fix(migration): skip v20 if column `sha256` already exists ( #7354 )
2023-02-14 22:44:23 +08:00
Joe Chen
8f9895acaf
fix(db): sanitize user full name after find ( #7353 )
2023-02-14 21:46:09 +08:00
Joe Chen
b34ee73497
feat(ssh): support dynamic list of algorithms ( #7345 )
2023-02-12 13:10:41 +08:00
Joe Chen
3a28168d41
fix(backup): skip "data" in the custom directory ( #7343 )
2023-02-12 00:14:51 +08:00
Vamsi Atluri
ef1fe1bb3b
conf: add new config option for default branch name ( #7291 )
...
Co-authored-by: Vamsi Atluri <me@vamc19.dev>
Co-authored-by: Joe Chen <jc@unknwon.io>
2023-02-11 16:37:24 +08:00
Joe Chen
8350daf505
refactor(db): merge relation stores into entity stores ( #7341 )
2023-02-08 13:55:54 +08:00
Joe Chen
133b9d9044
refactor(db): finish migrate methods off `user.go` ( #7337 )
2023-02-07 23:39:00 +08:00
Joe Chen
7ff09cf359
refactor(db): migrate methods off `user.go` ( #7336 )
2023-02-05 16:28:47 +08:00
Zachary Walters
5887bc116f
chore: remove usages of the deprecated `ioutil` ( #7332 )
...
Co-authored-by: Joe Chen <jc@unknwon.io>
2023-02-04 13:43:36 +08:00
Joe Chen
6d220540c1
refactor(db): migrate methods off `user.go` ( #7334 )
2023-02-04 13:36:00 +08:00
Joe Chen
ed51686240
refactor(db): migrate methods off `user.go` ( #7333 )
2023-02-04 12:22:37 +08:00
Joe Chen
cc4d4eacad
refactor(db): migrate methods off `user.go` ( #7331 )
2023-02-04 00:02:34 +08:00
Joe Chen
c53a1998c5
all: replace `interface{}` with `any` ( #7330 )
...
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
2023-02-02 21:25:25 +08:00
Joe Chen
614382fec0
refactor(db): migrate methods off `user.go` ( #7329 )
2023-02-02 21:14:27 +08:00
dependabot[bot]
6133415f6d
mod: bump gorm.io/driver/postgres from 1.4.5 to 1.4.6 ( #7299 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Joe Chen <jc@unknwon.io>
2023-01-07 16:52:04 +08:00
xpume
83335043e2
chore: fix typo in docstring ( #7269 )
2022-12-08 21:58:01 +08:00
Joe Chen
ae20d03aec
refactor(db): migrate `UpdateUser` off `user.go` ( #7267 )
2022-11-27 19:36:10 +08:00
Joe Chen
44333afd20
chore: consistently use `errors.Cause` for identifying error types ( #7264 )
2022-11-27 15:53:26 +08:00
Joe Chen
13099a7e4f
refactor(db): add `Users.Update` ( #7263 )
2022-11-27 15:19:44 +08:00
Joe Chen
a7dbc970df
fix(db): update `user.updated_unix` upon changing username ( #7262 )
2022-11-25 23:01:41 +08:00
Joe Chen
644a3a9d78
refactor(db): migrate `ChangeUsername` off `user.go` ( #7261 )
2022-11-25 22:40:20 +08:00