Antoine GIRARD
8d81576b4b
Improve org error handling ( #2117 )
* Improve ErrOrgNotExist type
Return new error type
Use good error check
Use new method to check error
Update tests
* Fix unchanged method name report
8 years ago
Lauris BH
625f482b25
Refactor session close as xorm already does everything needed internally ( #2020 )
8 years ago
Ethan Koenig
bd325693a4
Fix bug in removeOrgRepo ( #1858 )
8 years ago
Ethan Koenig
ec27f3afc4
Fix locking bug in removeOrgRepo ( #1842 )
8 years ago
Ethan Koenig
4717565b30
Give all units to owner team ( #1812 )
8 years ago
Lunny Xiao
e00109313a
fix migrate failed and org dashboard failed on MSSQL database ( #1448 )
9 years ago
Lunny Xiao
8595a5ae44
fix random avatars ( #1147 )
9 years ago
Lunny Xiao
8da1aca43a
fix del org avatar potential delete all avtars ( #1120 )
9 years ago
Ethan Koenig
1dc6a2df45
Remove unnecessary loads in org_team ( #1035 )
9 years ago
Lunny Xiao
60e378e505
bug fixed on issues and pulls
9 years ago
Lunny Xiao
da8f2f53b6
bug fixed for my repository ( #933 )
9 years ago
Lunny Xiao
d96eba4e26
Small optimization for getTeamIDs ( #919 )
* small optimization for getTeamIDs
* rename getOrgTeamIDs to getUserTeamIDs and remove orderby
9 years ago
Ethan Koenig
51b00090a3
Fix bug in removeOrgRepo
9 years ago
Gabriel Jackson
3e7f8ec9d3
Cleanup log messaging
This change corrects a few logging issues:
* Standardized formatting errors with '%v'.
* Standardized failure warning word usage.
* Corrected an instance of using the standard log library when
the gitea log library should be used instead.
9 years ago
Ethan Koenig
8dbcd9a8c4
Unit tests and bug fix for models/org
9 years ago
Lunny Xiao
1e4337d0a2
fix xorm NewSession uncorrected usages ( #774 )
9 years ago
Ethan Koenig
6c8f6ede64
Fix FIXME and remove superfluous queries in models/org ( #749 )
9 years ago
btrepp
552c1f4793
Removes reliance on server specific SQL ( #393 )
Breaks the retrieval of repositories into two queries
This fetches the paged ids in one go, then the
actual repository information in a second query
Some databases do not support SELECT with *
when group by is used.
9 years ago
Bo-Yi Wu
9d8c8d095a
refactor: Add new deleteOrg func. ( #633 )
9 years ago
Andrey Nering
57b5bd07c9
Create missing database indexes ( #596 )
9 years ago
Lunny Xiao
08efcd2f26
fix bug #564 ( #567 )
9 years ago
Schwobaland
37837ccf97
Restrict creating organisations by user ( #193 )
* restrict creating organizations based on right on user
* revert bindata.go
* reverse vendor lib
* revert goimports change
* set AllowCreateOrganization default value to true
* revert locale
* added default value for AllowCreateOrganization
* fix typo in migration-comment
* fix comment
* add coments in migration
9 years ago
Lunny Xiao
a950e79568
slight optimization for GetUserRepositories ( #498 )
9 years ago
Lunny Xiao
4940c21eec
fix 500 when delete orgnization and resolved #486
9 years ago
Bwko
af9ca1d20a
Added sorting to organizations, repos & users page ( #222 )
9 years ago
Denis Denisov
820c295d94
Fix random string generator ( #384 )
* Remove unused custom-alphabet feature of random string generator
Fix random string generator
Random string generator should return error if it fails to read random data via crypto/rand
* Fixes variable (un)initialization mixed assign
Update test GetRandomString
9 years ago
Lunny Xiao
779922bc61
golint for models/org_team.go
9 years ago
Bwko
fcde7de425
Fixes typos
9 years ago
Bwko
baf45e47ef
Lint models/org.go & models.go
9 years ago
Lunny Xiao
ae0c01e86d
optimization on database IN
9 years ago
Lunny Xiao
abaec03e67
bug fixed for 500 caused by get org users ( #149 )
9 years ago
Thibault Meyer
8cac8c6dde
Remove unused import
9 years ago
Thibault Meyer
b747797b29
Merge remote-tracking branch 'upstream/master' into feature/rewrite-xorm-queries
# Conflicts:
# models/git_diff.go
# models/issue.go
# models/org.go
# models/pull.go
# models/repo.go
9 years ago
Thibault Meyer
5d29fda874
Rewrite XORM queries
9 years ago
Sandro Santilli
cb1b3cc148
Update import paths from github.com/go-gitea to code.gitea.io ( #135 )
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis
See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
9 years ago
Lunny Xiao
00146d574d
Merge pull request #129 from lunny/lunny/SQL_instead_Sql
use x.SQL instead of x.Sql
9 years ago
Thibault Meyer
4356fe09dd
Ordering organizations and users by name
9 years ago
Lunny Xiao
4e8fff5273
use x.SQL instead of x.Sql
9 years ago
Sandro Santilli
0daccd049a
And others
9 years ago
Sandro Santilli
58cc4e56fa
ACCESS_MODE_* -> AccessMode*
9 years ago
Thibault Meyer
8ec34183a7
Ordering team by name ascending except for 'Owners' ( #48 )
9 years ago
Rémy Boulanouar
9712d5ee89
Change import reference to match gitea instead of gogs ( #37 )
9 years ago
Thibault Meyer
b70363bb1d
Verify list len before use it with IN ( #3423 )
9 years ago
Unknwon
b85aba0b67
Add org.getUserTeams to reduce redundant code
9 years ago
Unknwon
027aebc72c
#1384 add pagination for repositories
9 years ago
Unknwon
3b42ab0e57
Refactor User.Id to User.ID
9 years ago
Unknwon
ed22b6b01b
#2903 use different reversed words and patterns for repository and user
9 years ago
Unknwon
3b27731934
#3066 fix create organization ignores full name property
9 years ago
Unknwon
7b4e810eb5
#2854 fix no mail notification when issue is closed/reopened
9 years ago
Kim Carlbäcker
73137c2db2
Fix listing team members ( #3048 )
10 years ago