GitLab Bot
30a8e05475
Add latest changes from gitlab-org/gitlab@master
2023-08-04 12:06:55 +00:00
GitLab Bot
eda321fc0b
Add latest changes from gitlab-org/gitlab@master
2022-08-17 21:09:50 +00:00
GitLab Bot
5f2a8d5813
Add latest changes from gitlab-org/gitlab@master
2022-06-09 09:09:12 +00:00
GitLab Bot
f0b862a982
Add latest changes from gitlab-org/gitlab@master
2022-01-07 21:17:37 +00:00
GitLab Bot
0ff373dc41
Add latest changes from gitlab-org/gitlab@master
2020-12-15 15:09:59 +00:00
GitLab Bot
215cb09934
Add latest changes from gitlab-org/gitlab@master
2020-11-02 15:08:52 +00:00
GitLab Bot
c61d90dbfa
Add latest changes from gitlab-org/gitlab@master
2020-06-17 15:08:36 +00:00
GitLab Bot
10fd79745d
Add latest changes from gitlab-org/gitlab@master
2020-06-16 15:08:32 +00:00
GitLab Bot
4a3ba3e5f2
Add latest changes from gitlab-org/gitlab@master
2020-05-22 09:08:09 +00:00
GitLab Bot
09093c1278
Add latest changes from gitlab-org/gitlab@master
2020-04-15 18:09:36 +00:00
Jasper Maes
624a1cdab4
Upgrade Rails to 5.1.6.1
...
Model.new.attributes now also returns encrypted attributes.
2019-04-23 08:31:23 +08:00
Nick Thomas
013f7cd24c
Inherit from ApplicationRecord instead of ActiveRecord::Base
2019-03-28 16:18:23 +00:00
gfyoung
50abbd3e53
Enable frozen string in app/models/*.rb
...
Partially addresses #47424 .
2018-07-26 16:55:41 -07:00
Bob Van Landuyt
ce69419a60
Remove permanent redirects
...
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.
2018-03-28 14:12:08 +02:00
Douwe Maan
75144b1e03
Validate path uniqueness only on Route, and bubble up appropriately
2018-02-06 12:06:38 -06:00
Michael Kozono
5d57030e46
Delete conflicting orphaned routes
2018-01-18 10:28:55 -08:00
Michael Kozono
1dc30595e3
Revert "Revert "Fix Route validation for unchanged path""
...
This reverts commit 3576d59ae9
.
2018-01-11 09:24:59 -08:00
Michael Kozono
3576d59ae9
Revert "Fix Route validation for unchanged path"
...
This reverts commit 8040edcce8
.
2018-01-09 12:09:24 -08:00
Michael Kozono
8040edcce8
Fix Route validation for unchanged path
2018-01-09 11:59:12 -08:00
Mayra Cabrera
562fb460b8
Allow git pull/push on project redirects
2017-12-08 17:42:43 +00:00
Yorick Peterse
5819ca1a24
Added Cop to blacklist polymorphic associations
...
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.
2017-06-07 17:36:55 +02:00
Dmitriy Zaporozhets
bbd1be002b
Change project list cache key to use route.cache_key instead of namespace
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-05-12 18:27:59 +03:00
Michael Kozono
b0ee22609a
Reduce risk of deadlocks
...
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.
2017-05-05 14:31:33 -07:00
Michael Kozono
e1c245af51
Resolve discussions
2017-05-05 12:12:51 -07:00
Michael Kozono
0c866f4a57
Resolve discussions
2017-05-05 12:12:49 -07:00
Michael Kozono
ca5c762cf5
Refactor
2017-05-05 12:11:58 -07:00
Michael Kozono
72872ee213
Delete conflicting redirects
2017-05-05 12:11:58 -07:00
Michael Kozono
a0368e9131
Create redirect routes on path change
2017-05-05 12:11:58 -07:00
Jarka Kadlecova
3750766f42
Escape route path for LIKE queries
2017-03-21 17:04:12 +01:00
Robert Speicher
9bf9e6eb38
Handle Route#name being nil after an update
...
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.
2017-03-20 19:17:14 -04:00
Dmitriy Zaporozhets
4d40c3c30a
Fix route rename descendants if route.name is blank
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-02-08 23:36:23 +02:00
Dmitriy Zaporozhets
2989192d1a
Store group and project full name and full path in routes table
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-02-08 19:14:29 +02:00
Dmitriy Zaporozhets
52c5f9c97f
Add User#nested_groups and User#nested_projects methods
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-01-25 13:43:15 +02:00
Dmitriy Zaporozhets
51c4b20c48
Refactor Namespace code related to nested groups
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-01-13 10:05:02 -05:00
Dmitriy Zaporozhets
95e0fac59a
Fix Route#rename_children behavior
...
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>
2016-12-19 22:36:47 +02:00
Dmitriy Zaporozhets
83232be0e1
Add nested groups support on data level
...
* 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>
2016-12-08 11:47:16 +02:00