Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
1f451bd7
Commit
1f451bd7
authored
Nov 14, 2019
by
Dmitriy Zaporozhets
Committed by
Jan Provaznik
Nov 14, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move some project routes under - scope
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
b714a0f9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
29 deletions
+33
-29
changelogs/unreleased/dz-move-project-routes.yml
changelogs/unreleased/dz-move-project-routes.yml
+5
-0
config/routes/project.rb
config/routes/project.rb
+27
-28
spec/javascripts/ci_variable_list/ajax_variable_list_spec.js
spec/javascripts/ci_variable_list/ajax_variable_list_spec.js
+1
-1
No files found.
changelogs/unreleased/dz-move-project-routes.yml
0 → 100644
View file @
1f451bd7
---
title
:
Move some project routes under - scope
merge_request
:
19954
author
:
type
:
deprecated
config/routes/project.rb
View file @
1f451bd7
...
...
@@ -191,6 +191,31 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
get
'proxy/:datasource_id/*proxy_path'
,
to:
'grafana_api#proxy'
get
:metrics_dashboard
,
to:
'grafana_api#metrics_dashboard'
end
resource
:mattermost
,
only:
[
:new
,
:create
]
resource
:variables
,
only:
[
:show
,
:update
]
resources
:triggers
,
only:
[
:index
,
:create
,
:edit
,
:update
,
:destroy
]
resource
:mirror
,
only:
[
:show
,
:update
]
do
member
do
get
:ssh_host_keys
,
constraints:
{
format: :json
}
post
:update_now
end
end
resource
:cycle_analytics
,
only:
[
:show
]
namespace
:cycle_analytics
do
scope
:events
,
controller:
'events'
do
get
:issue
get
:plan
get
:code
get
:test
get
:review
get
:staging
get
:production
end
end
end
# End of the /-/ scope.
...
...
@@ -235,8 +260,6 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
end
end
resource
:mattermost
,
only:
[
:new
,
:create
]
namespace
:prometheus
do
resources
:metrics
,
constraints:
{
id:
%r{[^
\/
]+}
},
only:
[
:index
,
:new
,
:create
,
:edit
,
:update
,
:destroy
]
do
get
:active_common
,
on: :collection
...
...
@@ -364,17 +387,6 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
put
'/service_desk'
=>
'service_desk#update'
,
as: :service_desk_refresh
end
resource
:variables
,
only:
[
:show
,
:update
]
resources
:triggers
,
only:
[
:index
,
:create
,
:edit
,
:update
,
:destroy
]
resource
:mirror
,
only:
[
:show
,
:update
]
do
member
do
get
:ssh_host_keys
,
constraints:
{
format: :json
}
post
:update_now
end
end
Gitlab
.
ee
do
resources
:push_rules
,
constraints:
{
id:
/\d+/
},
only:
[
:update
]
end
...
...
@@ -463,20 +475,6 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
end
end
resource
:cycle_analytics
,
only:
[
:show
]
namespace
:cycle_analytics
do
scope
:events
,
controller:
'events'
do
get
:issue
get
:plan
get
:code
get
:test
get
:review
get
:staging
get
:production
end
end
namespace
:serverless
do
scope
:functions
do
get
'/:environment_id/:id'
,
to:
'functions#show'
...
...
@@ -678,7 +676,8 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
:network
,
:graphs
,
:autocomplete_sources
,
:project_members
,
:deploy_keys
,
:deploy_tokens
,
:labels
,
:milestones
,
:services
,
:boards
,
:releases
,
:forks
,
:group_links
,
:import
,
:avatar
)
:forks
,
:group_links
,
:import
,
:avatar
,
:mirror
,
:cycle_analytics
,
:mattermost
,
:variables
,
:triggers
)
end
end
end
spec/javascripts/ci_variable_list/ajax_variable_list_spec.js
View file @
1f451bd7
...
...
@@ -3,7 +3,7 @@ import MockAdapter from 'axios-mock-adapter';
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
AjaxFormVariableList
from
'
~/ci_variable_list/ajax_variable_list
'
;
const
VARIABLE_PATCH_ENDPOINT
=
'
http://test.host/frontend-fixtures/builds-project/variables
'
;
const
VARIABLE_PATCH_ENDPOINT
=
'
http://test.host/frontend-fixtures/builds-project/
-/
variables
'
;
const
HIDE_CLASS
=
'
hide
'
;
describe
(
'
AjaxFormVariableList
'
,
()
=>
{
...
...
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