summaryrefslogtreecommitdiff
path: root/app/models/route.rb
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade Rails to 5.1.6.1Jasper Maes2019-04-231-8/+8
| | | | Model.new.attributes now also returns encrypted attributes.
* Inherit from ApplicationRecord instead of ActiveRecord::BaseNick Thomas2019-03-281-1/+1
|
* Enable frozen string in app/models/*.rbrepo-forks/gitlab-ce-frozen-string-enable-app-modelsgfyoung2018-07-261-0/+2
| | | | Partially addresses #47424.
* Remove permanent redirectsBob Van Landuyt2018-03-281-21/+5
| | | | | Removes permanent redirects, this means that redirects will only be possible as long as the old route isn't taken by a new project/group.
* Validate path uniqueness only on Route, and bubble up appropriatelyDouwe Maan2018-02-061-1/+1
|
* Delete conflicting orphaned routesMichael Kozono2018-01-181-0/+12
|
* Revert "Revert "Fix Route validation for unchanged path""Michael Kozono2018-01-111-1/+1
| | | | This reverts commit 3576d59ae95a61dd20e997a619dbc6c8e8a70276.
* Revert "Fix Route validation for unchanged path"Michael Kozono2018-01-091-1/+1
| | | | This reverts commit 8040edcce8b4e736b4f4857e6709f94aeb5e274c.
* Fix Route validation for unchanged pathMichael Kozono2018-01-091-1/+1
|
* Allow git pull/push on project redirectsMayra Cabrera2017-12-081-5/+21
|
* Added Cop to blacklist polymorphic associationsYorick Peterse2017-06-071-1/+1
| | | | | | | | One should really use a separate table instead of using polymorphic associations. See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11168 for more information.
* Change project list cache key to use route.cache_key instead of namespacedz-project-list-cache-keyDmitriy Zaporozhets2017-05-121-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Reduce risk of deadlocks17361-redirect-renamed-pathsMichael Kozono2017-05-051-7/+17
| | | | | | | We’ve seen a deadlock in CI here https://gitlab.com/mkozono/gitlab-ce/builds/15644492#down-build-trace. This commit should not fix that particular failure, but perhaps it will avoid others. * Don’t call delete_conflicting_redirects after update if the path wasn’t changed * Rename descendants without using recursion again, so we can run delete_conflicting_redirects exactly once.
* Resolve discussionsMichael Kozono2017-05-051-1/+1
|
* Resolve discussionsMichael Kozono2017-05-051-11/+11
|
* RefactorMichael Kozono2017-05-051-4/+6
|
* Delete conflicting redirectsMichael Kozono2017-05-051-7/+14
|
* Create redirect routes on path changeMichael Kozono2017-05-051-7/+17
|
* Escape route path for LIKE queriesJarka Kadlecova2017-03-211-1/+3
|
* Handle Route#name being nil after an updateRobert Speicher2017-03-201-1/+1
| | | | | | | | It was possible for the `routes.name` field to be `NULL`, causing `name_was` to be `nil` after a rename, resulting a bad first argument to `sub` when attempting to rename descendants. This change adds a condition to make sure `name_was` is present before attempting the descendant update.
* Fix route rename descendants if route.name is blankDmitriy Zaporozhets2017-02-081-5/+10
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Store group and project full name and full path in routes tabledz-refactor-full-pathDmitriy Zaporozhets2017-02-081-8/+14
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add User#nested_groups and User#nested_projects methodsDmitriy Zaporozhets2017-01-251-1/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Refactor Namespace code related to nested groupsDmitriy Zaporozhets2017-01-131-2/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Fix Route#rename_children behaviordz-fix-route-renameDmitriy Zaporozhets2016-12-191-1/+1
| | | | | | | Given group `gitlab` and `gitlab-org` exists. When rename `gitlab` it will rename `gitlab-org` group route too. This commit fixes it Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add nested groups support on data leveldz-nested-groupsDmitriy Zaporozhets2016-12-081-0/+22
* add parent_id field to namespaces table to store relation with nested groups * create routes table to keep information about full path of every group and project * project/group lookup by full path from routes table Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>