-
- Downloads
There was a problem fetching the pipeline summary.
Merge branch 'dz-nested-groups' into 'master'
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
No related branches found
No related tags found
Pipeline #
Showing
- app/controllers/admin/groups_controller.rb 1 addition, 1 deletionapp/controllers/admin/groups_controller.rb
- app/controllers/groups/application_controller.rb 1 addition, 1 deletionapp/controllers/groups/application_controller.rb
- app/helpers/groups_helper.rb 1 addition, 1 deletionapp/helpers/groups_helper.rb
- app/models/concerns/routable.rb 70 additions, 0 deletionsapp/models/concerns/routable.rb
- app/models/namespace.rb 17 additions, 1 deletionapp/models/namespace.rb
- app/models/project.rb 13 additions, 84 deletionsapp/models/project.rb
- app/models/route.rb 22 additions, 0 deletionsapp/models/route.rb
- app/services/destroy_group_service.rb 4 additions, 0 deletionsapp/services/destroy_group_service.rb
- app/views/projects/forks/error.html.haml 5 additions, 1 deletionapp/views/projects/forks/error.html.haml
- changelogs/unreleased/dz-nested-groups.yml 4 additions, 0 deletionschangelogs/unreleased/dz-nested-groups.yml
- db/migrate/20161124111390_add_parent_id_to_namespace.rb 12 additions, 0 deletionsdb/migrate/20161124111390_add_parent_id_to_namespace.rb
- db/migrate/20161124111395_add_index_to_parent_id.rb 14 additions, 0 deletionsdb/migrate/20161124111395_add_index_to_parent_id.rb
- db/migrate/20161124111402_add_routes_table.rb 18 additions, 0 deletionsdb/migrate/20161124111402_add_routes_table.rb
- db/migrate/20161130095245_fill_routes_table.rb 21 additions, 0 deletionsdb/migrate/20161130095245_fill_routes_table.rb
- db/migrate/20161130101252_fill_projects_routes_table.rb 22 additions, 0 deletionsdb/migrate/20161130101252_fill_projects_routes_table.rb
- db/migrate/20161202152031_remove_duplicates_from_routes.rb 28 additions, 0 deletionsdb/migrate/20161202152031_remove_duplicates_from_routes.rb
- db/migrate/20161202152035_add_index_to_routes.rb 16 additions, 0 deletionsdb/migrate/20161202152035_add_index_to_routes.rb
- db/schema.rb 19 additions, 6 deletionsdb/schema.rb
- lib/api/helpers.rb 1 addition, 1 deletionlib/api/helpers.rb
- lib/constraints/group_url_constrainer.rb 1 addition, 1 deletionlib/constraints/group_url_constrainer.rb
app/models/concerns/routable.rb
0 → 100644
app/models/route.rb
0 → 100644
changelogs/unreleased/dz-nested-groups.yml
0 → 100644
Please register or sign in to comment