BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
d5bfb931
Commit
d5bfb931
authored
Oct 16, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Plain Diff
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
parents
38ff8cd1
da006a66
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
16 deletions
+20
-16
board_service.js
app/assets/javascripts/boards/services/board_service.js
+2
-2
fix_global_board_routes_39073.yml
changelogs/unreleased/fix_global_board_routes_39073.yml
+5
-0
routes.rb
config/routes.rb
+13
-13
path_regex.rb
lib/gitlab/path_regex.rb
+0
-1
No files found.
app/assets/javascripts/boards/services/board_service.js
View file @
d5bfb931
...
...
@@ -7,7 +7,7 @@ class BoardService {
this
.
boards
=
Vue
.
resource
(
`
${
boardsEndpoint
}
{/id}.json`
,
{},
{
issues
:
{
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}`
,
{},
{
...
...
@@ -16,7 +16,7 @@ class BoardService {
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`
,
{},
{
bulkUpdate
:
{
method
:
'POST'
,
...
...
changelogs/unreleased/fix_global_board_routes_39073.yml
0 → 100644
View file @
d5bfb931
---
title
:
Allow boards as top level route
merge_request
:
author
:
type
:
fixed
config/routes.rb
View file @
d5bfb931
...
...
@@ -44,6 +44,19 @@ Rails.application.routes.draw do
get
'readiness'
=>
'health#readiness'
resources
:metrics
,
only:
[
:index
]
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
# Koding route
...
...
@@ -74,19 +87,6 @@ Rails.application.routes.draw do
# Notification settings
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
:import
draw
:uploads
...
...
lib/gitlab/path_regex.rb
View file @
d5bfb931
...
...
@@ -26,7 +26,6 @@ module Gitlab
apple-touch-icon.png
assets
autocomplete
boards
ci
dashboard
deploy.html
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment