]> source.dussan.org Git - gitea.git/commit
Correctly set the organization num repos (#11339)
authorzeripath <art27@cantab.net>
Mon, 11 May 2020 22:04:08 +0000 (23:04 +0100)
committerGitHub <noreply@github.com>
Mon, 11 May 2020 22:04:08 +0000 (01:04 +0300)
commitc42c31a111756c931292a404feabf24750d886e0
tree6fa3a7bd324d1d4037d26d67415159990c0b4e19
parent45968b9f44516d940841b16fc833111f2b5ffbdb
Correctly set the organization num repos (#11339)

* Correctly set the organization num repos

Correctly set the organization num repos to the number of
accessible repos for the user

Fix #11194

Signed-off-by: Andrew Thornton <art27@cantab.net>
* as per @lunny

Signed-off-by: Andrew Thornton <art27@cantab.net>
* attempt to fix mssql

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Update models/user.go

* Explicit columns

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add test and fix 0 counted orgs

Signed-off-by: Andrew Thornton <art27@cantab.net>
* remove orgname from api

Signed-off-by: Andrew Thornton <art27@cantab.net>
integrations/api_helper_for_declarative_test.go
integrations/org_count_test.go [new file with mode: 0644]
models/user.go
routers/api/v1/api.go