05efd19e89
Add nested groups support on data level ## What does this MR do? - [x] Add `parent_id` field to `Namespace`model. - [x] Create new database table `routes` that keeps information about full path to each group or project - [x] Remove uniq index from `namespaces.path` - [x] Add uniq index on `routes.path` - [x] Fill routes table with path data from namespaces and projects - [x] Change Namespace/Project URL lookup by routes table - [x] Rename related routes (nested groups, projects) when parent path changes This is solely backend preparation. UI, Permissions and API support will be added in separate merge request. ## Are there points in the code the reviewer needs to double check? migrations, Route model, Routable concern Will require downtime. See https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7121#note_19490281 discussion ## Why was this MR needed? One step further to full nested groups support ## Screenshots (if relevant) No UI changes in this merge request so far ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG.md) entry added~~ - ~~[Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md)~~ - ~~API support added~~ - Tests - [x] Added for this feature/bug - [x] All builds are passing - [x] Conform by the [merge request performance guides](http://docs.gitlab.com/ce/development/merge_request_performance_guidelines.html) - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if it does - rebase it please) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) ## What are the relevant issue numbers? https://gitlab.com/gitlab-org/gitlab-ce/issues/2772 See merge request !7121 |
||
---|---|---|
.. | ||
ci | ||
concerns | ||
cycle_analytics | ||
hooks | ||
issue | ||
members | ||
merge_request | ||
network | ||
project_services | ||
ability_spec.rb | ||
abuse_report_spec.rb | ||
appearance_spec.rb | ||
application_setting_spec.rb | ||
award_emoji_spec.rb | ||
blob_spec.rb | ||
board_spec.rb | ||
broadcast_message_spec.rb | ||
build_spec.rb | ||
chat_name_spec.rb | ||
commit_range_spec.rb | ||
commit_spec.rb | ||
commit_status_spec.rb | ||
compare_spec.rb | ||
deploy_key_spec.rb | ||
deploy_keys_project_spec.rb | ||
deployment_spec.rb | ||
diff_note_spec.rb | ||
discussion_spec.rb | ||
email_spec.rb | ||
environment_spec.rb | ||
event_spec.rb | ||
external_issue_spec.rb | ||
forked_project_link_spec.rb | ||
generic_commit_status_spec.rb | ||
global_milestone_spec.rb | ||
group_label_spec.rb | ||
group_spec.rb | ||
guest_spec.rb | ||
identity_spec.rb | ||
issue_collection_spec.rb | ||
issue_spec.rb | ||
key_spec.rb | ||
label_link_spec.rb | ||
label_priority_spec.rb | ||
label_spec.rb | ||
legacy_diff_note_spec.rb | ||
list_spec.rb | ||
member_spec.rb | ||
merge_request_diff_spec.rb | ||
merge_request_spec.rb | ||
milestone_spec.rb | ||
namespace_spec.rb | ||
note_spec.rb | ||
notification_setting_spec.rb | ||
personal_access_token_spec.rb | ||
project_feature_spec.rb | ||
project_group_link_spec.rb | ||
project_label_spec.rb | ||
project_snippet_spec.rb | ||
project_spec.rb | ||
project_team_spec.rb | ||
project_wiki_spec.rb | ||
protected_branch_spec.rb | ||
release_spec.rb | ||
repository_spec.rb | ||
route_spec.rb | ||
service_spec.rb | ||
snippet_spec.rb | ||
spam_log_spec.rb | ||
subscription_spec.rb | ||
todo_spec.rb | ||
tree_spec.rb | ||
trending_project_spec.rb | ||
user_agent_detail_spec.rb | ||
user_spec.rb | ||
wiki_page_spec.rb |