Commit Graph

22 Commits (a4cd4616c6f8524f8eb79d6184e855b3a8164130)

Author SHA1 Message Date
Ethan Koenig aa962deec0 Replace deprecated Id method with ID ()
Lunny Xiao dd55534b82 Reduce usage of allcols on update ()
* reduce usage of allcols on update

* fix bug and tests
Lunny Xiao 1739e84ac0 improve protected branch to add whitelist support ()
* 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
Ethan Koenig f29458bd3a EnableUnit() -> UnitEnabled() ()
Antoine GIRARD 30787e48f2 Improve org error handling ()
* Improve ErrOrgNotExist type
Return new error type
Use good error check
Use new method to check error
Update tests

* Fix unchanged method name report
Lauris BH 6db387a21e Refactor session close as xorm already does everything needed internally ()
Lunny Xiao fd6034aaf2 Add units to team ()
* add units to team

* fix lint

* finish team setting backend

* finished permission controll on routes

* fix import blank line

* add unit check on ssh/http pull and push and fix test failed

* fix fixtures data

* remove unused code
Sandro Santilli f73e734411 Run "make fmt" with go-1.6 ()
Ethan Koenig ec0ae5d50c Refactor and fix incorrect comment ()
Ethan Koenig d21d5fd736 Remove unnecessary loads in org_team ()
Ethan Koenig 76057105ca Remove unnecessary loads in org_team ()
Ethan Koenig 4f3880ff15 Bug fixes and unit tests for org_team ()
Lunny Xiao 7fd14bf7bd optimization for team get repos ()
Lunny Xiao 0642cb330c Small opitimization for getUserTeams ()
* Small opitimization for getUserTeams

* more compact
Lunny Xiao bb5a6b7a07 fix xorm NewSession uncorrected usages ()
Lunny Xiao f215d78157 rename all uID -> userID on models/org_team.go
Lunny Xiao 21846d16e5 golint for models/org_team.go
Thibault Meyer a4454f5d0f
Rewrite XORM queries
Sandro Santilli f388661bda ACCESS_MODE_* -> AccessMode*
LefsFlare 55a4d46f5d Adds checking of reserved keywords against team names ()
Unknwon 1f2e173a74 Refactor User.Id to User.ID
Unknwon b1d41cfa60 add admin APIs to add/remove a user from teams