-
- Downloads
There was a problem fetching the pipeline summary.
Merge branch 'dz-root-url' into 'master'
Move user#show and group#show routing under root url ## What does this MR do? Changes routing so user#show and group#show routing is under root url ## Are there points in the code the reviewer needs to double check? no ## Why was this MR needed? For nice and consistent routing for user/group show pages: | before | after| |---|---| | `/u/dzaporozhets` | `/dzaporozhets`| | `/dzaporozhets/gitlab-ce` |`/dzaporozhets/gitlab-ce`| | `/u/dzaporozhets/snippets` |`/u/dzaporozhets/snippets`| | `/groups/gitlab-org`| `/gitlab-org`| | `/gitlab-org/gitlab-ce`| `/gitlab-org/gitlab-ce`| | `/groups/gitlab-org/issues `| `/groups/gitlab-org/issues `| So show page for user and group shown as `/:name` which is much nicer than before. At same time all nested pages like group issues stays under REST `/groups/:name/issues` so we don't need to introduce extra name restrictions ( ex. case when group has project with name "issues") ## Screenshots (if relevant) ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) 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 you do - 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? Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/3620 See merge request !6686
No related branches found
No related tags found
Pipeline #
Showing
- CHANGELOG 1 addition, 0 deletionsCHANGELOG
- app/assets/javascripts/user_tabs.js.es6 3 additions, 8 deletionsapp/assets/javascripts/user_tabs.js.es6
- app/assets/javascripts/users_select.js 2 additions, 2 deletionsapp/assets/javascripts/users_select.js
- app/views/projects/boards/components/_card.html.haml 1 addition, 1 deletionapp/views/projects/boards/components/_card.html.haml
- app/views/users/show.html.haml 1 addition, 1 deletionapp/views/users/show.html.haml
- config/routes/group.rb 8 additions, 0 deletionsconfig/routes/group.rb
- config/routes/user.rb 23 additions, 12 deletionsconfig/routes/user.rb
- lib/constraints/group_url_constrainer.rb 7 additions, 0 deletionslib/constraints/group_url_constrainer.rb
- lib/constraints/namespace_url_constrainer.rb 13 additions, 0 deletionslib/constraints/namespace_url_constrainer.rb
- lib/constraints/user_url_constrainer.rb 7 additions, 0 deletionslib/constraints/user_url_constrainer.rb
- spec/features/users_spec.rb 11 additions, 0 deletionsspec/features/users_spec.rb
- spec/helpers/projects_helper_spec.rb 1 addition, 1 deletionspec/helpers/projects_helper_spec.rb
- spec/lib/constraints/group_url_constrainer_spec.rb 10 additions, 0 deletionsspec/lib/constraints/group_url_constrainer_spec.rb
- spec/lib/constraints/namespace_url_constrainer_spec.rb 25 additions, 0 deletionsspec/lib/constraints/namespace_url_constrainer_spec.rb
- spec/lib/constraints/user_url_constrainer_spec.rb 10 additions, 0 deletionsspec/lib/constraints/user_url_constrainer_spec.rb
- spec/routing/routing_spec.rb 3 additions, 1 deletionspec/routing/routing_spec.rb
- spec/services/system_note_service_spec.rb 1 addition, 1 deletionspec/services/system_note_service_spec.rb
lib/constraints/group_url_constrainer.rb
0 → 100644
lib/constraints/namespace_url_constrainer.rb
0 → 100644
lib/constraints/user_url_constrainer.rb
0 → 100644
Please register or sign in to comment