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
396941fa
Commit
396941fa
authored
Feb 10, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reolve conflicts
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
14f11751
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
32 deletions
+13
-32
LICENSE
LICENSE
+0
-4
app/controllers/projects/protected_branches_controller.rb
app/controllers/projects/protected_branches_controller.rb
+0
-7
app/views/search/results/_blob.html.haml
app/views/search/results/_blob.html.haml
+0
-5
spec/requests/api/groups_spec.rb
spec/requests/api/groups_spec.rb
+13
-16
No files found.
LICENSE
View file @
396941fa
<<<<<<< HEAD
The GitLab Enterprise Edition (EE) license (the “EE License”)
The GitLab Enterprise Edition (EE) license (the “EE License”)
Copyright (c) 2011-2016 GitLab B.V.
=======
Copyright (c) 2011-2017 GitLab B.V.
Copyright (c) 2011-2017 GitLab B.V.
>>>>>>> ce/master
This software and associated documentation files (the "Software") may only be
This software and associated documentation files (the "Software") may only be
used if you (and any entity that you represent) have agreed to, and are in
used if you (and any entity that you represent) have agreed to, and are in
...
...
app/controllers/projects/protected_branches_controller.rb
View file @
396941fa
...
@@ -69,19 +69,12 @@ class Projects::ProtectedBranchesController < Projects::ApplicationController
...
@@ -69,19 +69,12 @@ class Projects::ProtectedBranchesController < Projects::ApplicationController
def
access_levels_options
def
access_levels_options
{
{
<<<<<<<
HEAD
push_access_levels:
ProtectedBranch
::
PushAccessLevel
.
human_access_levels
.
map
{
|
id
,
text
|
{
id:
id
,
text:
text
}
},
merge_access_levels:
ProtectedBranch
::
MergeAccessLevel
.
human_access_levels
.
map
{
|
id
,
text
|
{
id:
id
,
text:
text
}
},
selected_merge_access_levels:
@protected_branch
.
merge_access_levels
.
map
{
|
access_level
|
access_level
.
user_id
||
access_level
.
access_level
},
selected_push_access_levels:
@protected_branch
.
push_access_levels
.
map
{
|
access_level
|
access_level
.
user_id
||
access_level
.
access_level
}
=======
push_access_levels:
{
push_access_levels:
{
"Roles"
=>
ProtectedBranch
::
PushAccessLevel
.
human_access_levels
.
map
{
|
id
,
text
|
{
id:
id
,
text:
text
,
before_divider:
true
}
},
"Roles"
=>
ProtectedBranch
::
PushAccessLevel
.
human_access_levels
.
map
{
|
id
,
text
|
{
id:
id
,
text:
text
,
before_divider:
true
}
},
},
},
merge_access_levels:
{
merge_access_levels:
{
"Roles"
=>
ProtectedBranch
::
MergeAccessLevel
.
human_access_levels
.
map
{
|
id
,
text
|
{
id:
id
,
text:
text
,
before_divider:
true
}
}
"Roles"
=>
ProtectedBranch
::
MergeAccessLevel
.
human_access_levels
.
map
{
|
id
,
text
|
{
id:
id
,
text:
text
,
before_divider:
true
}
}
}
}
>>>>>>>
ce
/
master
}
}
end
end
...
...
app/views/search/results/_blob.html.haml
View file @
396941fa
...
@@ -10,11 +10,6 @@
...
@@ -10,11 +10,6 @@
.blob-result
.blob-result
.file-holder
.file-holder
.js-file-title.file-title
.js-file-title.file-title
<
<<<<<<
HEAD
==
=====
-
ref
=
@search_results
.
repository_ref
-
blob_link
=
namespace_project_blob_path
(
@project
.
namespace
,
@project
,
tree_join
(
ref
,
file_name
))
>
>>>>>> ce/master
=
link_to
blob_link
do
=
link_to
blob_link
do
=
icon
(
'fa-file'
)
=
icon
(
'fa-file'
)
%strong
%strong
...
...
spec/requests/api/groups_spec.rb
View file @
396941fa
...
@@ -36,20 +36,21 @@ describe API::Groups, api: true do
...
@@ -36,20 +36,21 @@ describe API::Groups, api: true do
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
have_http_status
(
200
)
expect
(
json_response
).
to
be_an
Array
expect
(
json_response
).
to
be_an
Array
expect
(
json_response
.
length
).
to
eq
(
1
)
expect
(
json_response
.
length
).
to
eq
(
1
)
<<<<<<<
HEAD
expect
(
json_response
.
first
[
'name'
]).
to
eq
(
group1
.
name
)
expect
(
json_response
.
first
[
'ldap_cn'
]).
to
eq
(
group1
.
ldap_cn
)
expect
(
json_response
.
first
[
'ldap_access'
]).
to
eq
(
group1
.
ldap_access
)
ldap_group_link
=
json_response
.
first
[
'ldap_group_links'
].
first
expect
(
ldap_group_link
[
'cn'
]).
to
eq
(
group1
.
ldap_cn
)
expect
(
ldap_group_link
[
'group_access'
]).
to
eq
(
group1
.
ldap_access
)
expect
(
ldap_group_link
[
'provider'
]).
to
eq
(
'ldap'
)
=======
expect
(
json_response
)
expect
(
json_response
)
.
to
satisfy_one
{
|
group
|
group
[
'name'
]
==
group1
.
name
}
.
to
satisfy_one
{
|
group
|
group
[
'name'
]
==
group1
.
name
}
>>>>>>>
ce
/
master
expect
(
json_response
)
.
to
satisfy_one
{
|
group
|
group
[
'ldap_cn'
]
==
group1
.
ldap_cn
}
expect
(
json_response
)
.
to
satisfy_one
{
|
group
|
group
[
'ldap_access'
]
==
group1
.
ldap_access
}
expect
(
json_response
).
to
satisfy_one
do
|
group
|
ldap_group_link
=
group
[
'ldap_group_links'
].
first
ldap_group_link
[
'cn'
]
==
group1
.
ldap_cn
&&
ldap_group_link
[
'group_access'
]
==
group1
.
ldap_access
&&
ldap_group_link
[
'provider'
]
==
'ldap'
end
end
end
it
"does not include statistics"
do
it
"does not include statistics"
do
...
@@ -92,12 +93,8 @@ describe API::Groups, api: true do
...
@@ -92,12 +93,8 @@ describe API::Groups, api: true do
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
have_http_status
(
200
)
expect
(
json_response
).
to
be_an
Array
expect
(
json_response
).
to
be_an
Array
<<<<<<<
HEAD
expect
(
json_response
.
find
{
|
r
|
r
[
'id'
]
==
group1
.
id
}[
'statistics'
]).
to
eq
attributes
.
stringify_keys
=======
expect
(
json_response
)
expect
(
json_response
)
.
to
satisfy_one
{
|
group
|
group
[
'statistics'
]
==
attributes
}
.
to
satisfy_one
{
|
group
|
group
[
'statistics'
]
==
attributes
}
>>>>>>>
ce
/
master
end
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