Dmitriy Zaporozhets
3e259ea8bc
Revert "Merge branch 'revert-satellites' into 'master'
"
...
This reverts commit 5daf44b7c8 , reversing
changes made to 2f706fbd23 .
2015-08-11 14:33:31 +02:00
Dmitriy Zaporozhets
9f10943c1a
Revert "Merge branch 'drop-satellites'"
...
This reverts commit 957e849f41 , reversing
changes made to 6b9dbe9f5a .
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-08-11 10:28:42 +02:00
Dmitriy Zaporozhets
d044c14290
Ensure old namespace directory exists before moving it
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-08-06 12:31:24 +02:00
Dmitriy Zaporozhets
a87989fb7d
Remove satellites
2015-07-15 15:45:57 +02:00
Dmitriy Zaporozhets
53a0ac4734
Skip repo removing whem remove user or group
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-03 16:16:27 +02:00
Dmitriy Zaporozhets
1edff53444
Remove projects before group/user. Remove namespace directory async
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-03 14:57:12 +02:00
Douwe Maan
5f839770e7
Revert "Rename namespace_regex to namespace_path_regex."
...
This reverts commit c0116926c7 .
2015-04-24 15:16:38 +02:00
Douwe Maan
70f9893ed6
Explain namespace clearn regex.
2015-04-24 14:49:23 +02:00
Douwe Maan
fac1f83fd5
Properly migrate users with usernames like "." or "..".
2015-04-24 14:49:23 +02:00
Douwe Maan
c0116926c7
Rename namespace_regex to namespace_path_regex.
2015-04-24 14:49:22 +02:00
Douwe Maan
46524ecb33
Fix username period migration to preserve uniqueness of names and paths.
2015-04-17 12:03:54 +02:00
J. Daniel Schmidt
d03cec0e69
clean_path should drop all leading dashes, not just one
2015-04-08 15:54:27 +02:00
J. Daniel Schmidt
706be56317
clean_path should drop all trailing dots, not just one
2015-04-08 15:54:21 +02:00
J. Daniel Schmidt
2794e57beb
clean_path should not drop the last character
...
Fixes https://github.com/gitlabhq/gitlabhq/issues/9098
2015-04-08 10:51:36 +02:00
Douwe Maan
175f7f68a6
Move files for moved namespaces.
2015-03-31 09:30:34 +02:00
Douwe Maan
5f93b0e3da
Don't allow username to end in period.
2015-03-27 11:10:56 +01:00
Douwe Maan
dfe0f9eedf
Use more specific regexes.
2015-03-27 11:09:29 +01:00
Douwe Maan
3f7531d6f2
Move User.cleanup_username to Namespace.cleanup_path.
2015-03-27 11:09:29 +01:00
Dmitriy Zaporozhets
f438791721
Fix import check for case sensetive namespaces
2015-03-02 23:06:59 -08:00
Douwe Maan
161d15541a
Prevent autogenerated OAuth username to clash with existing namespace.
2015-02-13 12:39:11 +01:00
Dmitriy Zaporozhets
62ed1c537e
Explicitly define ordering in models using default_scope
2015-02-05 14:20:55 -08:00
Dmitriy Zaporozhets
cc39bca3fa
Rubocop: Style/AlignHash enabled
2015-02-02 21:15:44 -08:00
Dmitriy Zaporozhets
2388fdd7c6
Improve fork to namespaces feature
...
* Show namespace thumbnail differently if project was already forked
* Show loading spinner when click on fork
* Fork link navigates to personal namespace only if no manageable groups exists
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-11-14 16:06:39 +02:00
Ciro Santilli
2e9f5de868
Add parenthesis to function def with arguments.
2014-10-03 09:18:46 +02:00
Dmitriy Zaporozhets
d35a99e6cb
Merge pull request #7204 from cirosantilli/user-validation-msg
...
Fix username validation message to match regexp.
2014-07-02 09:57:14 +03:00
Dmitriy Zaporozhets
8f60b5b4fc
Group and Event strong_params
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-26 16:57:10 +03:00
Dmitriy Zaporozhets
98ba075c32
User model to strong params. Comment other attr_accessible to let tests run
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-26 15:11:45 +03:00
Ciro Santilli
b1c40e8151
Fix username validation message to match regexp.
...
Also used for project, group and web ui new file names.
2014-06-26 13:31:34 +02:00
Dmitriy Zaporozhets
0fdce4a52b
Refactor some search scopes to prevent wierd behaviour and PG::Error issues
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-06-05 20:37:35 +03:00
Dmitriy Zaporozhets
36f861f1b1
Re-annotate models
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2014-04-09 15:05:03 +03:00
Jason Hollingsworth
2f69213e3f
Allow access to groups with public projects.
...
Fixed Group avatars to only display when user has read
permissions to at least one project in the group.
2014-02-20 09:26:38 -06:00
Marin Jankovski
c1dddf8c7d
Uniqueness check should be case insensitive for username and path, otherwise mysql behaves weird.
2014-02-20 09:45:58 +01:00
Steven Thonus
251df827a5
added group avatars
2014-01-28 08:38:00 +01:00
Dmitriy Zaporozhets
0815098d3a
Admin can transfer project to any namespace
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2013-11-15 15:25:37 +02:00
Dmitriy Zaporozhets
e219cf7246
Annotate!
2013-10-01 15:15:28 +03:00
Dmitriy Zaporozhets
65b9768ccf
Group ownership completely based on users_groups relation now
...
Before we have only owner_id to determine group owner
With multiple owners per group we should get rid of owner_id in group.
So from now @group.owner will always be nil but
@group.owners return an actual array of users who can admin this group
2013-09-26 14:49:22 +03:00
Johannes Schleifenbaum
cd19f82e51
Fix typos
2013-07-29 12:47:06 +02:00
Dmitriy Zaporozhets
995e656add
Add path blacklist
2013-06-12 22:11:35 +03:00
Dmitriy Zaporozhets
c4299bb45a
Move directory logic out of model. Use Gitlab:Shell class to interact with file system
2013-03-21 22:11:08 +02:00
Dmitriy Zaporozhets
21b1fee92c
reannotated
2013-03-15 15:16:02 +02:00
Andrew8xx8
3d4e32457b
Table description indentation fixed
2013-02-28 17:15:22 +04:00
Andrew8xx8
9f45e01e84
Description to groups added
2013-02-28 17:14:21 +04:00
Dmitriy Zaporozhets
020078663e
Prevent xss attack over group name. Added regex validation for group and team name
2013-02-18 09:28:18 +02:00
Andrew8xx8
b5db541338
All scopes must be in lambdas
2013-02-12 11:16:45 +04:00
Dmitriy Zaporozhets
d64090b8a9
No gitolite in project any more
2013-02-11 19:16:59 +02:00
Dmitriy Zaporozhets
896c3a0a9d
remove update_repository calls
2013-02-04 15:24:16 +02:00
GitLab
9115a4f92f
Remove satellites when moving namespace
2013-01-17 12:21:52 +02:00
Koen Punt
6b9177ca02
replaced system() calls with FileUtils.* method
...
This also makes that 'mv: cannot stat `/ho..' is not shown in the test :)
consistent spacing
require fileutils
Revert "require fileutils"
This reverts commit 54313d3bbaa60cfc5b405be50cc00b7f6b0cb715.
new hash notation
FileUtils.mv in begin/rescue block
2013-01-03 15:36:50 +01:00
Dmitriy Zaporozhets
e9394c48ca
Fix dir_exists?
2012-12-28 06:24:05 +03:00
Dmitriy Zaporozhets
d03964d6ec
Fixed and improved enable_naamespace migration task
2012-12-28 06:14:05 +03:00