summaryrefslogtreecommitdiffstats
path: root/models/org.go
Commit message (Collapse)AuthorAgeFilesLines
* Remove IsOwner, NumTeams from OrgUser (#3269)Ethan Koenig2018-01-081-15/+23
|
* Fix ignored errors when checking if organization, team member (#3177)Ethan Koenig2017-12-211-18/+21
|
* fix org owner cannot be removed if there is not in owner team (#3164)Lunny Xiao2017-12-131-1/+6
|
* Hide unactive on explore users and some refactors (#2741)Lunny Xiao2017-10-241-17/+0
| | | | | | | | | | | | | | | | | | | | | | | | * hide unactive on explore users and some refactors * fix test for removed Organizations * fix test for removed Organizations * fix imports * fix logic bug * refactor the toConds * Rename TestOrganizations to TestSearchUsers and add tests for users * fix other tests * fix other tests * fix watchers tests * fix comments and remove unused code
* Replace deprecated Id method with ID (#2655)Ethan Koenig2017-10-051-3/+3
|
* Reduce usage of allcols on update (#2596)Lunny Xiao2017-09-251-1/+1
| | | | | | * reduce usage of allcols on update * fix bug and tests
* Fix lint errors (#2547)Ethan Koenig2017-09-191-5/+1
|
* Fixes 500 error on dashboard when using MSSQL (#2504)bradder5552017-09-151-1/+1
| | | | | | | | | | | | | | 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.
* improve protected branch to add whitelist support (#2451)Lunny Xiao2017-09-141-0/+5
| | | | | | | | | | | | | | | | | | | | * 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
* Improve org error handling (#2117)Antoine GIRARD2017-07-061-4/+2
| | | | | | | | | | * Improve ErrOrgNotExist type Return new error type Use good error check Use new method to check error Update tests * Fix unchanged method name report
* Refactor session close as xorm already does everything needed internally (#2020)Lauris BH2017-06-211-2/+2
|
* Fix bug in removeOrgRepo (#1858)Ethan Koenig2017-06-021-1/+1
|
* Fix locking bug in removeOrgRepo (#1842)Ethan Koenig2017-06-011-1/+1
|
* Give all units to owner team (#1812)Ethan Koenig2017-05-261-0/+1
|
* fix migrate failed and org dashboard failed on MSSQL database (#1448)Lunny Xiao2017-04-061-4/+21
|
* fix random avatars (#1147)Lunny Xiao2017-03-081-1/+3
|
* fix del org avatar potential delete all avtars (#1120)Lunny Xiao2017-03-061-4/+6
|
* Remove unnecessary loads in org_team (#1035)Ethan Koenig2017-02-241-1/+1
|
* bug fixed on issues and pullsLunny Xiao2017-02-151-1/+0
|
* bug fixed for my repository (#933)Lunny Xiao2017-02-141-2/+6
|
* Small optimization for getTeamIDs (#919)Lunny Xiao2017-02-141-10/+12
| | | | | | * small optimization for getTeamIDs * rename getOrgTeamIDs to getUserTeamIDs and remove orderby
* Fix bug in removeOrgRepoEthan Koenig2017-02-041-2/+20
|
* Cleanup log messagingGabriel Jackson2017-02-021-2/+2
| | | | | | | | | 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.
* Unit tests and bug fix for models/orgEthan Koenig2017-01-271-22/+8
|
* fix xorm NewSession uncorrected usages (#774)Lunny Xiao2017-01-281-4/+6
|
* Fix FIXME and remove superfluous queries in models/org (#749)Ethan Koenig2017-01-251-61/+69
|
* Removes reliance on server specific SQL (#393)btrepp2017-01-141-2/+16
| | | | | | | | 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.
* refactor: Add new deleteOrg func. (#633)Bo-Yi Wu2017-01-111-9/+50
|
* Create missing database indexes (#596)Andrey Nering2017-01-061-1/+1
|
* fix bug #564 (#567)Lunny Xiao2017-01-031-1/+1
|
* Restrict creating organisations by user (#193)Schwobaland2016-12-311-0/+4
| | | | | | | | | | | | | | | | | | | | | | * 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
* slight optimization for GetUserRepositories (#498)Lunny Xiao2016-12-291-8/+11
|
* fix 500 when delete orgnization and resolved #486Lunny Xiao2016-12-271-6/+7
|
* Added sorting to organizations, repos & users page (#222)Bwko2016-12-241-6/+13
|
* Fix random string generator (#384)Denis Denisov2016-12-201-2/+6
| | | | | | | | | | | * 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
* golint for models/org_team.goLunny Xiao2016-11-281-5/+5
|
* Fixes typosBwko2016-11-271-1/+1
|
* Lint models/org.go & models.goBwko2016-11-261-14/+16
|
* optimization on database INLunny Xiao2016-11-121-5/+4
|
* bug fixed for 500 caused by get org users (#149)Lunny Xiao2016-11-121-2/+2
|
* Remove unused importThibault Meyer2016-11-101-1/+0
|
* Merge remote-tracking branch 'upstream/master' into feature/rewrite-xorm-queriesThibault Meyer2016-11-101-1/+2
|\ | | | | | | | | | | | | | | | | # Conflicts: # models/git_diff.go # models/issue.go # models/org.go # models/pull.go # models/repo.go
| * Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-2/+2
| | | | | | | | | | | | | | - 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
* | Rewrite XORM queriesThibault Meyer2016-11-101-43/+67
|/
* Merge pull request #129 from lunny/lunny/SQL_instead_SqlLunny Xiao2016-11-101-2/+2
|\ | | | | use x.SQL instead of x.Sql
| * use x.SQL instead of x.SqlLunny Xiao2016-11-101-2/+2
| |
* | Ordering organizations and users by nameThibault Meyer2016-11-101-17/+30
|/
* And othersSandro Santilli2016-11-071-1/+1
|
* ACCESS_MODE_* -> AccessMode*Sandro Santilli2016-11-071-1/+1
|
* Ordering team by name ascending except for 'Owners' (#48)Thibault Meyer2016-11-061-4/+4
|