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
c62b89ec
Commit
c62b89ec
authored
Feb 26, 2018
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflict in app/finders/autocomplete_users_finder.rb
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
45141e92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
13 deletions
+0
-13
app/finders/autocomplete_users_finder.rb
app/finders/autocomplete_users_finder.rb
+0
-13
No files found.
app/finders/autocomplete_users_finder.rb
View file @
c62b89ec
...
...
@@ -7,12 +7,9 @@ class AutocompleteUsersFinder
attr_reader
:current_user
,
:project
,
:group
,
:search
,
:skip_users
,
:author_id
,
:params
<<<<<<<
HEAD
# EE
attr_reader
:skip_ldap
=======
>>>>>>>
upstream
/
master
def
initialize
(
params
:,
current_user
:,
project
:,
group
:)
@current_user
=
current_user
...
...
@@ -38,12 +35,9 @@ class AutocompleteUsersFinder
items
=
items
.
search
(
search
)
if
search
.
present?
items
=
items
.
where
.
not
(
id:
skip_users
)
if
skip_users
.
present?
items
=
items
.
limit
(
LIMIT
)
<<<<<<<
HEAD
# EE
items
=
load_users_by_push_ability
(
items
)
=======
>>>>>>>
upstream
/
master
if
params
[
:todo_filter
].
present?
&&
current_user
items
=
items
.
todo_authors
(
current_user
.
id
,
params
[
:todo_state_filter
])
...
...
@@ -78,7 +72,6 @@ class AutocompleteUsersFinder
if
author_id
.
present?
union
=
Gitlab
::
SQL
::
Union
.
new
([
project
.
authorized_users
,
User
.
where
(
id:
author_id
)])
<<<<<<<
HEAD
User
.
from
(
"(
#{
union
.
to_sql
}
)
#{
User
.
table_name
}
"
)
else
...
...
@@ -102,12 +95,6 @@ class AutocompleteUsersFinder
:push_code_to_protected_branches
elsif
params
[
:push_code
].
present?
:push_code
=======
User
.
from
(
"(
#{
union
.
to_sql
}
)
#{
User
.
table_name
}
"
)
else
project
.
authorized_users
>>>>>>>
upstream
/
master
end
end
# EE
...
...
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