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
28a8f227
Commit
28a8f227
authored
Nov 08, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-add EE-specific group routes mistakenly removed in
fef65344
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
fef65344
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
config/routes/group.rb
config/routes/group.rb
+43
-0
No files found.
config/routes/group.rb
View file @
28a8f227
...
...
@@ -14,6 +14,7 @@ constraints(GroupUrlConstrainer.new) do
get
:merge_requests
,
as: :merge_requests_group
get
:projects
,
as: :projects_group
get
:activity
,
as: :activity_group
get
:subgroups
,
as: :subgroups_group
## EE-specific
end
get
'/'
,
action: :show
,
as: :group_canonical
...
...
@@ -48,8 +49,50 @@ constraints(GroupUrlConstrainer.new) do
resources
:group_members
,
only:
[
:index
,
:create
,
:update
,
:destroy
],
concerns: :access_requestable
do
post
:resend_invite
,
on: :member
delete
:leave
,
on: :collection
patch
:override
,
on: :member
## EE-specific
end
## EE-specific
resource
:analytics
,
only:
[
:show
]
resource
:ldap
,
only:
[]
do
member
do
put
:sync
end
end
resources
:ldap_group_links
,
only:
[
:index
,
:create
,
:destroy
]
resource
:notification_setting
,
only:
[
:update
]
resources
:audit_events
,
only:
[
:index
]
resources
:pipeline_quota
,
only:
[
:index
]
resources
:hooks
,
only:
[
:index
,
:create
,
:destroy
],
constraints:
{
id:
/\d+/
}
do
member
do
get
:test
end
end
resources
:billings
,
only:
[
:index
]
resources
:boards
,
only:
[
:index
,
:show
,
:create
,
:update
,
:destroy
]
resources
:epics
do
member
do
get
:realtime_changes
end
end
get
'boards(/*extra_params)'
,
as: :legacy_ee_group_boards_redirect
,
to:
legacy_ee_group_boards_redirect
## EE-specific
end
## EE-specific
legacy_ee_group_boards_redirect
=
redirect
do
|
params
,
request
|
path
=
"/groups/
#{
params
[
:group_id
]
}
/-/boards"
path
<<
"/
#{
params
[
:extra_params
]
}
"
if
params
[
:extra_params
].
present?
path
<<
"?
#{
request
.
query_string
}
"
if
request
.
query_string
.
present?
path
end
end
## EE-specific
scope
(
path:
'*id'
,
as: :group
,
...
...
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