Merge branch 'fix_global_board_routes_39073' into 'master'
Remove "boards" from TOP_LEVEL_ROUTES Closes #39073 See merge request gitlab-org/gitlab-ce!14861
This commit is contained in:
commit
d5bfb93152
4 changed files with 20 additions and 16 deletions
|
@ -7,7 +7,7 @@ class BoardService {
|
||||||
this.boards = Vue.resource(`${boardsEndpoint}{/id}.json`, {}, {
|
this.boards = Vue.resource(`${boardsEndpoint}{/id}.json`, {}, {
|
||||||
issues: {
|
issues: {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
url: `${gon.relative_url_root}/boards/${boardId}/issues.json`,
|
url: `${gon.relative_url_root}/-/boards/${boardId}/issues.json`,
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.lists = Vue.resource(`${listsEndpoint}{/id}`, {}, {
|
this.lists = Vue.resource(`${listsEndpoint}{/id}`, {}, {
|
||||||
|
@ -16,7 +16,7 @@ class BoardService {
|
||||||
url: `${listsEndpoint}/generate.json`
|
url: `${listsEndpoint}/generate.json`
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.issue = Vue.resource(`${gon.relative_url_root}/boards/${boardId}/issues{/id}`, {});
|
this.issue = Vue.resource(`${gon.relative_url_root}/-/boards/${boardId}/issues{/id}`, {});
|
||||||
this.issues = Vue.resource(`${listsEndpoint}{/id}/issues`, {}, {
|
this.issues = Vue.resource(`${listsEndpoint}{/id}/issues`, {}, {
|
||||||
bulkUpdate: {
|
bulkUpdate: {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
|
5
changelogs/unreleased/fix_global_board_routes_39073.yml
Normal file
5
changelogs/unreleased/fix_global_board_routes_39073.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: Allow boards as top level route
|
||||||
|
merge_request:
|
||||||
|
author:
|
||||||
|
type: fixed
|
|
@ -44,6 +44,19 @@ Rails.application.routes.draw do
|
||||||
get 'readiness' => 'health#readiness'
|
get 'readiness' => 'health#readiness'
|
||||||
resources :metrics, only: [:index]
|
resources :metrics, only: [:index]
|
||||||
mount Peek::Railtie => '/peek'
|
mount Peek::Railtie => '/peek'
|
||||||
|
|
||||||
|
# Boards resources shared between group and projects
|
||||||
|
resources :boards, only: [] do
|
||||||
|
resources :lists, module: :boards, only: [:index, :create, :update, :destroy] do
|
||||||
|
collection do
|
||||||
|
post :generate
|
||||||
|
end
|
||||||
|
|
||||||
|
resources :issues, only: [:index, :create, :update]
|
||||||
|
end
|
||||||
|
|
||||||
|
resources :issues, module: :boards, only: [:index, :update]
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Koding route
|
# Koding route
|
||||||
|
@ -74,19 +87,6 @@ Rails.application.routes.draw do
|
||||||
# Notification settings
|
# Notification settings
|
||||||
resources :notification_settings, only: [:create, :update]
|
resources :notification_settings, only: [:create, :update]
|
||||||
|
|
||||||
# Boards resources shared between group and projects
|
|
||||||
resources :boards do
|
|
||||||
resources :lists, module: :boards, only: [:index, :create, :update, :destroy] do
|
|
||||||
collection do
|
|
||||||
post :generate
|
|
||||||
end
|
|
||||||
|
|
||||||
resources :issues, only: [:index, :create, :update]
|
|
||||||
end
|
|
||||||
|
|
||||||
resources :issues, module: :boards, only: [:index, :update]
|
|
||||||
end
|
|
||||||
|
|
||||||
draw :google_api
|
draw :google_api
|
||||||
draw :import
|
draw :import
|
||||||
draw :uploads
|
draw :uploads
|
||||||
|
|
|
@ -26,7 +26,6 @@ module Gitlab
|
||||||
apple-touch-icon.png
|
apple-touch-icon.png
|
||||||
assets
|
assets
|
||||||
autocomplete
|
autocomplete
|
||||||
boards
|
|
||||||
ci
|
ci
|
||||||
dashboard
|
dashboard
|
||||||
deploy.html
|
deploy.html
|
||||||
|
|
Loading…
Reference in a new issue