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
9b0899cb
Commit
9b0899cb
authored
Nov 07, 2017
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove EE-specific group paths
parent
2414c69e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
19 deletions
+3
-19
path_regex.rb
lib/gitlab/path_regex.rb
+0
-7
path_regex_spec.rb
spec/lib/gitlab/path_regex_spec.rb
+3
-12
No files found.
lib/gitlab/path_regex.rb
View file @
9b0899cb
...
...
@@ -112,13 +112,6 @@ module Gitlab
# this would map to the activity-page of its parent.
GROUP_ROUTES
=
%w[
-
analytics
audit_events
hooks
ldap
ldap_group_links
notification_setting
pipeline_quota
]
.
freeze
ILLEGAL_PROJECT_PATH_WORDS
=
PROJECT_WILDCARD_ROUTES
...
...
spec/lib/gitlab/path_regex_spec.rb
View file @
9b0899cb
...
...
@@ -152,16 +152,7 @@ describe Gitlab::PathRegex do
let
(
:paths_after_group_id
)
do
group_routes
.
map
do
|
route
|
route
.
gsub
(
STARTING_WITH_GROUP
,
''
).
split
(
'/'
).
first
end
.
uniq
+
ee_paths_after_group_id
end
let
(
:ee_paths_after_group_id
)
do
%w(analytics
ldap
ldap_group_links
notification_setting
audit_events
pipeline_quota hooks)
end
.
uniq
end
describe
'TOP_LEVEL_ROUTES'
do
...
...
@@ -292,7 +283,7 @@ describe Gitlab::PathRegex do
end
it
'rejects group routes'
do
expect
(
subject
).
not_to
match
(
'root/
analytics
/'
)
expect
(
subject
).
not_to
match
(
'root/
-
/'
)
end
end
...
...
@@ -312,7 +303,7 @@ describe Gitlab::PathRegex do
end
it
'rejects group routes'
do
expect
(
subject
).
not_to
match
(
'root/
analytics/more
/'
)
expect
(
subject
).
not_to
match
(
'root/
-
/'
)
end
end
end
...
...
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