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 |
||
---|---|---|
.. | ||
backend | ||
backup | ||
badge | ||
bitbucket_import | ||
chat_commands | ||
checks | ||
ci | ||
conflict | ||
cycle_analytics | ||
data_builder | ||
database | ||
diff | ||
downtime_check | ||
fogbugz_import | ||
gfm | ||
git | ||
github_import | ||
gitlab_import | ||
google_code_import | ||
graphs | ||
import_export | ||
ldap | ||
metrics | ||
middleware | ||
o_auth | ||
saml | ||
sanitizers | ||
sherlock | ||
slash_commands | ||
sql | ||
template | ||
asciidoc_spec.rb | ||
auth_spec.rb | ||
award_emoji_spec.rb | ||
blame_spec.rb | ||
changes_list_spec.rb | ||
chat_name_token_spec.rb | ||
closing_issue_extractor_spec.rb | ||
color_schemes_spec.rb | ||
contributions_calendar_spec.rb | ||
current_settings_spec.rb | ||
database_spec.rb | ||
downtime_check_spec.rb | ||
exclusive_lease_spec.rb | ||
file_detector_spec.rb | ||
git_access_spec.rb | ||
git_access_wiki_spec.rb | ||
git_spec.rb | ||
highlight_spec.rb | ||
identifier_spec.rb | ||
incoming_email_spec.rb | ||
key_fingerprint_spec.rb | ||
lazy_spec.rb | ||
lfs_token_spec.rb | ||
markup_helper_spec.rb | ||
metrics_spec.rb | ||
optimistic_locking_spec.rb | ||
popen_spec.rb | ||
project_search_results_spec.rb | ||
redis_spec.rb | ||
reference_extractor_spec.rb | ||
regex_spec.rb | ||
search_results_spec.rb | ||
sidekiq_throttler_spec.rb | ||
snippet_search_results_spec.rb | ||
themes_spec.rb | ||
upgrader_spec.rb | ||
uploads_transfer_spec.rb | ||
url_builder_spec.rb | ||
url_sanitizer_spec.rb | ||
user_access_spec.rb | ||
utils_spec.rb | ||
version_info_spec.rb | ||
workhorse_spec.rb |