summaryrefslogtreecommitdiff
path: root/app/models/namespace.rb
Commit message (Collapse)AuthorAgeFilesLines
* Added group-specific setting for LFS.Patricio Cano2016-09-151-0/+5
| | | | Groups can enable/disable LFS, but this setting can be overridden at the project level. Admin only
* Fix bug where destroying a namespace would not always destroy projectsStan Hu2016-08-111-0/+2
| | | | | | | | | | | | | | | | | | | There is a race condition in DestroyGroupService now that projects are deleted asynchronously: 1. User attempts to delete group 2. DestroyGroupService iterates through all projects and schedules a Sidekiq job to delete each Project 3. DestroyGroupService destroys the Group, leaving all its projects without a namespace 4. Projects::DestroyService runs later but the can?(current_user, :remove_project) is `false` because the user no longer has permission to destroy projects with no namespace. 5. This leaves the project in pending_delete state with no namespace/group. Projects without a namespace or group also adds another problem: it's not possible to destroy the container registry tags, since container_registry_path_with_namespace is the wrong value. The fix is to destroy the group asynchronously and to run execute directly on Projects::DestroyService. Closes #17893
* Refactor repository paths handling to allow multiple git mount pointsAlejandro Rodríguez2016-06-291-40/+55
|
* Merge branch 'docker-registry' into docker-registry-viewKamil Trzcinski2016-05-131-17/+0
|\
| * Remove the annotate gem and delete old annotationsJeroen van Baarsen2016-05-091-17/+0
| | | | | | | | | | | | | | | | | | In 8278b763d96ef10c6494409b18b7eb541463af29 the default behaviour of annotation has changes, which was causing a lot of noise in diffs. We decided in #17382 that it is better to get rid of the whole annotate gem, and instead let people look at schema.rb for the columns in a table. Fixes: #17382
* | Fix specsKamil Trzcinski2016-05-131-1/+1
| |
* | Fix CI testsKamil Trzcinski2016-05-121-1/+1
| |
* | Block renaming project or repository if it has container registry tagsKamil Trzcinski2016-05-091-0/+8
|/
* Annotate the modelsZeger-Jan van de Weg2016-05-061-9/+11
|
* Make Namespace.search case-insensitiveYorick Peterse2016-03-111-1/+11
| | | | | This ensures searching namespaces works exactly the same as searching for any other resource.
* Annotate modelsStan Hu2016-01-061-1/+0
|
* Fixed Rubocop offensesGabriel Mazetto2015-12-151-2/+2
|
* Add custom NamespaceNameValidatorRobert Speicher2015-12-071-3/+3
|
* Add custom NamespaceValidatorRobert Speicher2015-12-071-5/+3
|
* Annotate modelsDmitriy Zaporozhets2015-11-131-0/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix: Images cannot show when projects' path was changeduploads_path_fixValery Sizov2015-10-141-0/+2
|
* Note the original location of a moved project when notifying users of the moveproject_movingValery Sizov2015-10-011-1/+3
|
* Revert "Merge branch 'revert-satellites' into 'master' "Dmitriy Zaporozhets2015-08-111-3/+2
| | | | | This reverts commit 5daf44b7c86e0e2641a902b1da8b01d91fa3dbfa, reversing changes made to 2f706fbd231cabe7a76a5d17ac44285aaaf8592c.
* Revert "Merge branch 'drop-satellites'"Dmitriy Zaporozhets2015-08-111-2/+3
| | | | | | | This reverts commit 957e849f41d96fa9778fcdd06792d2f0274b29ab, reversing changes made to 6b9dbe9f5a175a8162abf296367f561bab3eea1a. Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Ensure old namespace directory exists before moving itfix-namespace-move-dirDmitriy Zaporozhets2015-08-061-0/+3
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove satellitesDmitriy Zaporozhets2015-07-151-3/+2
|
* Skip repo removing whem remove user or groupDmitriy Zaporozhets2015-06-031-4/+8
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Remove projects before group/user. Remove namespace directory asyncfix-group-removeDmitriy Zaporozhets2015-06-031-2/+9
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Revert "Rename namespace_regex to namespace_path_regex."Douwe Maan2015-04-241-2/+2
| | | | This reverts commit c0116926c743818b2593474946abb40b56d8fefa.
* Explain namespace clearn regex.Douwe Maan2015-04-241-0/+5
|
* Properly migrate users with usernames like "." or "..".Douwe Maan2015-04-241-1/+5
|
* Rename namespace_regex to namespace_path_regex.Douwe Maan2015-04-241-2/+2
|
* Fix username period migration to preserve uniqueness of names and paths.Douwe Maan2015-04-171-0/+1
|
* clean_path should drop all leading dashes, not just oneJ. Daniel Schmidt2015-04-081-1/+1
|
* clean_path should drop all trailing dots, not just oneJ. Daniel Schmidt2015-04-081-1/+1
|
* clean_path should not drop the last characterJ. Daniel Schmidt2015-04-081-1/+1
| | | | Fixes https://github.com/gitlabhq/gitlabhq/issues/9098
* Move files for moved namespaces.Douwe Maan2015-03-311-4/+0
|
* Don't allow username to end in period.Douwe Maan2015-03-271-1/+1
|
* Use more specific regexes.Douwe Maan2015-03-271-4/+4
|
* Move User.cleanup_username to Namespace.cleanup_path.Douwe Maan2015-03-271-12/+31
|
* Fix import check for case sensetive namespacesDmitriy Zaporozhets2015-03-021-0/+5
|
* Prevent autogenerated OAuth username to clash with existing namespace.Douwe Maan2015-02-131-0/+4
|
* Explicitly define ordering in models using default_scopeDmitriy Zaporozhets2015-02-051-0/+1
|
* Rubocop: Style/AlignHash enabledDmitriy Zaporozhets2015-02-021-8/+13
|
* Improve fork to namespaces featureDmitriy Zaporozhets2014-11-141-0/+4
| | | | | | | | * 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>
* Add parenthesis to function def with arguments.Ciro Santilli2014-10-031-1/+1
|
* Merge pull request #7204 from cirosantilli/user-validation-msgDmitriy Zaporozhets2014-07-021-2/+2
|\ | | | | Fix username validation message to match regexp.
| * Fix username validation message to match regexp.Ciro Santilli2014-06-261-2/+2
| | | | | | | | Also used for project, group and web ui new file names.
* | Group and Event strong_paramsDmitriy Zaporozhets2014-06-261-2/+0
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | User model to strong params. Comment other attr_accessible to let tests runDmitriy Zaporozhets2014-06-261-1/+1
|/ | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Refactor some search scopes to prevent wierd behaviour and PG::Error issuesDmitriy Zaporozhets2014-06-051-8/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Re-annotate modelsDmitriy Zaporozhets2014-04-091-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Allow access to groups with public projects.Jason Hollingsworth2014-02-201-0/+8
| | | | | Fixed Group avatars to only display when user has read permissions to at least one project in the group.
* Uniqueness check should be case insensitive for username and path, otherwise ↵Marin Jankovski2014-02-201-1/+1
| | | | mysql behaves weird.
* added group avatarsSteven Thonus2014-01-281-0/+1
|