zeripath
6311e4ce6a
Fix sqlite deadlock when assigning to a PR ( #5640 )
...
* Fix sqlite deadlock when assigning to a PR
Fix 5639
Signed-off-by: Andrew Thornton <art27@cantab.net>
* More possible deadlocks found and fixed
Signed-off-by: Andrew Thornton <art27@cantab.net>
6 years ago
Lunny Xiao
70a80e31cf
fix sqlite and mssql lock ( #5214 )
6 years ago
Oleg Kovalov
5a4648cdd6
Remove check for negative length ( #5120 )
6 years ago
SagePtr
303d7f7e9c
Do not autocreate directory for new user/orgs ( #4828 ) ( #4849 )
7 years ago
SagePtr
ac968c3c6f
Fix out-of-transaction query in removeOrgUser ( #4521 ) ( #4522 )
7 years ago
Lauris BH
0c59edaafa
Update xorm to latest version and fix correct `user` table referencing in sql ( #4473 )
7 years ago
David Schneiderbauer
0b3ea42847
hide issues from org private repos w/o team assignment ( #4034 )
7 years ago
Wendell Sun
2d1c5c3756
Fix remove team member issue ( #3566 )
...
Put sess.Commit() out of the RemoveOrgUser function
Add an empty line to separate import packages
7 years ago
Ethan Koenig
f48680888c
Remove IsOwner, NumTeams from OrgUser ( #3269 )
7 years ago
Ethan Koenig
515cdaa85d
Fix ignored errors when checking if organization, team member ( #3177 )
7 years ago
Lunny Xiao
859b9ad7ea
fix org owner cannot be removed if there is not in owner team ( #3164 )
7 years ago
Lunny Xiao
6eeadb2082
Hide unactive on explore users and some refactors ( #2741 )
...
* 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
7 years ago
Ethan Koenig
aa962deec0
Replace deprecated Id method with ID ( #2655 )
7 years ago
Lunny Xiao
dd55534b82
Reduce usage of allcols on update ( #2596 )
...
* reduce usage of allcols on update
* fix bug and tests
7 years ago
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
8 years ago
Lauris BH
6db387a21e
Refactor session close as xorm already does everything needed internally ( #2020 )
8 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
b0ddced2b5
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
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
Lunny Xiao
c6c840faf7
Merge pull request #129 from lunny/lunny/SQL_instead_Sql
...
use x.SQL instead of x.Sql
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 )
9 years ago
Unknwon
a562228c5e
Add org.getUserTeams to reduce redundant code
9 years ago
Unknwon
e74630ae3b
#1384 add pagination for repositories
9 years ago
Unknwon
1f2e173a74
Refactor User.Id to User.ID
9 years ago
Unknwon
69f5308761
#2903 use different reversed words and patterns for repository and user
9 years ago
Unknwon
4f78abe7dc
#3066 fix create organization ignores full name property
9 years ago
Unknwon
f1b8d52eb3
#2854 fix no mail notification when issue is closed/reopened
9 years ago
Kim Carlbäcker
3c0c7a9f83
Fix listing team members ( #3048 )
9 years ago
Unknwon
b1d41cfa60
#1692 add admin APIs to add/remove a user from teams
9 years ago
Unknwon
2bf8494332
#13 finish user and repository search
...
Both are possible on explore and admin panel
9 years ago
Unknwon
eed9966ad6
#2727 fix incompatible SQL in PostgreSQL
9 years ago
Unknwon
5335e671be
#2743 more fixes on SQL errors
9 years ago
Unknwon
d57a2b908a
#2743 and #2751 fix bad SQL generated by XORM
...
Use hand-written SQL to do complex query
9 years ago
Unknwon
c9901bbba5
#2743 workaround to fix XORM problem
9 years ago
Unknwon
97429a25ab
#2727 make IN clause compatible with Postgres
9 years ago
Unknwon
aa12135b97
Fix panic when view profile without signin
...
Also fix that no matter who, still able to see organizations with private membership.
9 years ago
Unknwon
fd92d91da3
Minor fix for #2578
9 years ago
ExMex
2cfe6f8c60
Admins and user itself sees private org relations on profile
9 years ago
Unknwon
ddf9fa06c7
Minor fix for #2530
9 years ago
Unknwon
739d5aa1d3
Merge pull request #2530 from fnkr/hide-other-teams-repos-from-org-page
...
Hide other teams & repos from organization page
9 years ago
Florian Kaiser
fb1708e1af
Remove unnecessary private functions
9 years ago
Florian Kaiser
90780a0d90
Use invalid value (-1) instead of 0 to prevent bug if auto increment starts with 0
9 years ago
Florian Kaiser
bba1847a8e
Everyone can see public repos
9 years ago
Florian Kaiser
e35791b2b2
Only show teams the user has access to
9 years ago
Florian Kaiser
5eafe2b17e
Only show repositories the user has access to, on the organization home
9 years ago
Florian Kaiser
295de51b99
Show all orgs on user profile, except the private one's
9 years ago
Unknwon
112a7cab31
#2497 incorrect error handle for team name
9 years ago
Unknwon
9cd16c5b12
#1692 add organization APIs
9 years ago
Unknwon
3362b3a44f
fix possible disclosure
9 years ago
Unknwon
4d31eb2c0d
#2155 fix org max repo limit default to -1
9 years ago
Antoine GIRARD
c98dad1cf3
New admin organization UI
9 years ago
Unknwon
3d9b98fae4
#1585 order owners list by last changed time
10 years ago
Unknwon
80701d45bb
#1193 Make organization emails non-mandatory
10 years ago
Unknwon
aa67de910a
fix #1558
10 years ago
Unknwon
ff35a37769
#1458 : Authorities were messed up when using mysql database
10 years ago
Unknwon
dea3a8c6a4
WIP: create PR - choose branch
10 years ago
Unknwon
698b9e2acc
#1070 Clearer error message for illegal characters
10 years ago
Unknwon
466facc009
#1067 : Deleting users should remove them from collaborator lists
...
- fix delete user but repository watches are not decreased
10 years ago
Unknwon
473e265727
models: done testing on new access system
10 years ago
Unknwon
8896c82d34
models: fix issue with transfer repository
...
README: fix typo
10 years ago
Unknwon
ee68a826a5
v4 migration, merge 'dev', clean code and mirror fix
10 years ago