summaryrefslogtreecommitdiff
path: root/app/models/route.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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>