Ethan Koenig
4cb9394a97
Fix lint errors ( #2547 )
7 years ago
bradder555
ad24a3134d
Fixes 500 error on dashboard when using MSSQL ( #2504 )
...
MSSQL rejects the query:
SELECT "repository"."id" FROM "repository"
INNER JOIN "team_repo" ON "team_repo".repo_id="repository".id AND
"repository".is_mirror=1
WHERE (
("repository".owner_id=2 AND "repository".is_private=0)
OR team_repo.team_id IN (1)
)
GROUP BY "repository".id ORDER BY updated_unix DESC
when the order by term (updated_unix) is not included in the group by
term.
7 years ago
Lunny Xiao
1739e84ac0
improve protected branch to add whitelist support ( #2451 )
...
* improve protected branch to add whitelist support
* fix lint
* fix style check
* fix tests
* fix description on UI and import
* fix test
* bug fixed
* fix tests and languages
* move isSliceInt64Eq to util pkg; improve function names & typo
7 years ago
Antoine GIRARD
30787e48f2
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
7 years ago
Lauris BH
6db387a21e
Refactor session close as xorm already does everything needed internally ( #2020 )
7 years ago
Ethan Koenig
036ce3f813
Fix bug in removeOrgRepo ( #1858 )
8 years ago
Ethan Koenig
336e311a7c
Fix locking bug in removeOrgRepo ( #1842 )
8 years ago
Ethan Koenig
39348cd27e
Give all units to owner team ( #1812 )
8 years ago
Lunny Xiao
5acfc7c4bc
fix migrate failed and org dashboard failed on MSSQL database ( #1448 )
8 years ago
Lunny Xiao
5d40db629c
fix random avatars ( #1147 )
8 years ago
Lunny Xiao
0376029241
fix del org avatar potential delete all avtars ( #1120 )
8 years ago
Ethan Koenig
76057105ca
Remove unnecessary loads in org_team ( #1035 )
8 years ago
Lunny Xiao
9c645b54dc
bug fixed on issues and pulls
8 years ago
Lunny Xiao
4cfde304df
bug fixed for my repository ( #933 )
8 years ago
Lunny Xiao
55ae78208e
Small optimization for getTeamIDs ( #919 )
...
* small optimization for getTeamIDs
* rename getOrgTeamIDs to getUserTeamIDs and remove orderby
8 years ago
Ethan Koenig
f82ea42679
Fix bug in removeOrgRepo
8 years ago
Gabriel Jackson
bf6f61cc69
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.
8 years ago
Ethan Koenig
a2412492da
Unit tests and bug fix for models/org
8 years ago
Lunny Xiao
bb5a6b7a07
fix xorm NewSession uncorrected usages ( #774 )
8 years ago
Ethan Koenig
da1b6164fe
Fix FIXME and remove superfluous queries in models/org ( #749 )
8 years ago
btrepp
302fa42980
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.
8 years ago
Bo-Yi Wu
cbf2a967c5
refactor: Add new deleteOrg func. ( #633 )
8 years ago
Andrey Nering
84b7d29d34
Create missing database indexes ( #596 )
8 years ago
Lunny Xiao
09dabe2ff2
fix bug #564 ( #567 )
8 years ago
Schwobaland
c0904f1942
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
8 years ago
Lunny Xiao
799d0c2030
slight optimization for GetUserRepositories ( #498 )
8 years ago
Lunny Xiao
ba134bd27a
fix 500 when delete orgnization and resolved #486
8 years ago
Bwko
fa3abc22c0
Added sorting to organizations, repos & users page ( #222 )
8 years ago
Denis Denisov
380e32e129
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
8 years ago
Lunny Xiao
21846d16e5
golint for models/org_team.go
8 years ago
Bwko
a4ece1f223
Fixes typos
8 years ago
Bwko
0b9cf10340
Lint models/org.go & models.go
8 years ago
Lunny Xiao
ade6d4a20f
optimization on database IN
8 years ago
Lunny Xiao
9bf28a2799
bug fixed for 500 caused by get org users ( #149 )
8 years ago
Thibault Meyer
b12f2a5916
Remove unused import
8 years ago
Thibault Meyer
a4454f5d0f
Rewrite XORM queries
8 years ago
Sandro Santilli
4247304f5a
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
8 years ago
Thibault Meyer
3a10a0c1ca
Ordering organizations and users by name
8 years ago
Lunny Xiao
7dcc3bc3d7
use x.SQL instead of x.Sql
8 years ago
Sandro Santilli
aadd7dcdc3
And others
8 years ago
Sandro Santilli
f388661bda
ACCESS_MODE_* -> AccessMode*
8 years ago
Thibault Meyer
fe8bfa54de
Ordering team by name ascending except for 'Owners' ( #48 )
8 years ago
Rémy Boulanouar
2d68bd1ef9
Change import reference to match gitea instead of gogs ( #37 )
8 years ago
Thibault Meyer
8ad92bb8a4
Verify list len before use it with IN ( #3423 )
8 years ago
Unknwon
a562228c5e
Add org.getUserTeams to reduce redundant code
8 years ago
Unknwon
e74630ae3b
#1384 add pagination for repositories
8 years ago
Unknwon
1f2e173a74
Refactor User.Id to User.ID
8 years ago
Unknwon
69f5308761
#2903 use different reversed words and patterns for repository and user
8 years ago
Unknwon
4f78abe7dc
#3066 fix create organization ignores full name property
8 years ago
Unknwon
f1b8d52eb3
#2854 fix no mail notification when issue is closed/reopened
8 years ago