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