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
dca545fc
Commit
dca545fc
authored
Jun 27, 2017
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Resolve CE->EE] Resolve first part of the conflicts
parent
3de86826
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
143 deletions
+1
-143
app/assets/javascripts/pipelines/components/async_button.vue
app/assets/javascripts/pipelines/components/async_button.vue
+0
-9
app/controllers/admin/users_controller.rb
app/controllers/admin/users_controller.rb
+0
-3
app/helpers/button_helper.rb
app/helpers/button_helper.rb
+1
-5
features/steps/dashboard/merge_requests.rb
features/steps/dashboard/merge_requests.rb
+0
-126
No files found.
app/assets/javascripts/pipelines/components/async_button.vue
View file @
dca545fc
...
...
@@ -28,7 +28,6 @@ export default {
required
:
false
,
},
},
<<<<<<<
HEAD
directives
:
{
tooltip
,
...
...
@@ -38,14 +37,6 @@ export default {
loadingIcon
,
},
=======
directives
:
{
tooltip
,
},
components
:
{
loadingIcon
,
},
>>>>>>>
c00e5bfa065128c5212a991a5cfcb6f152981d51
data
()
{
return
{
isLoading
:
false
,
...
...
app/controllers/admin/users_controller.rb
View file @
dca545fc
...
...
@@ -210,7 +210,6 @@ class Admin::UsersController < Admin::ApplicationController
]
end
<<<<<<<
HEAD
def
user_params_ee
[
:note
,
...
...
@@ -218,8 +217,6 @@ class Admin::UsersController < Admin::ApplicationController
]
end
=======
>>>>>>>
c00e5bfa065128c5212a991a5cfcb6f152981d51
def
update_user
(
&
block
)
result
=
Users
::
UpdateService
.
new
(
user
).
execute
(
&
block
)
...
...
app/helpers/button_helper.rb
View file @
dca545fc
...
...
@@ -68,12 +68,8 @@ module ButtonHelper
html:
true
,
placement:
placement
,
container:
'body'
,
<<<<<<<
HEAD
title:
_
(
"Set a password on your account to pull or push via %{protocol}"
)
%
{
protocol:
protocol
},
primary_url:
(
geo_primary_http_url_to_repo
(
project
)
if
Gitlab
::
Geo
.
secondary?
)
=======
title:
tooltip_title
>>>>>>>
c00e5bfa065128c5212a991a5cfcb6f152981d51
primary_url:
(
geo_primary_http_url_to_repo
(
project
)
if
Gitlab
::
Geo
.
secondary?
)
}
end
...
...
features/steps/dashboard/merge_requests.rb
deleted
100644 → 0
View file @
3de86826
class
Spinach::Features::DashboardMergeRequests
<
Spinach
::
FeatureSteps
include
SharedAuthentication
include
SharedPaths
include
Select2Helper
step
'I should see merge requests assigned to me'
do
should_see
(
assigned_merge_request
)
should_see
(
assigned_merge_request_from_fork
)
should_not_see
(
authored_merge_request
)
should_not_see
(
authored_merge_request_from_fork
)
should_not_see
(
other_merge_request
)
end
step
'I should see merge requests authored by me'
do
should_see
(
authored_merge_request
)
should_see
(
authored_merge_request_from_fork
)
should_not_see
(
assigned_merge_request
)
should_not_see
(
assigned_merge_request_from_fork
)
should_not_see
(
other_merge_request
)
end
step
'I should see all merge requests'
do
should_see
(
authored_merge_request
)
should_see
(
assigned_merge_request
)
should_see
(
other_merge_request
)
end
step
'I have authored merge requests'
do
authored_merge_request
authored_merge_request_from_fork
end
step
'I have assigned merge requests'
do
assigned_merge_request
assigned_merge_request_from_fork
end
step
'I have other merge requests'
do
other_merge_request
end
step
'I click "Authored by me" link'
do
find
(
"#assignee_id"
).
set
(
""
)
find
(
".js-author-search"
,
match: :first
).
click
find
(
".dropdown-menu-author li a"
,
match: :first
,
text:
current_user
.
to_reference
).
click
end
step
'I click "All" link'
do
find
(
".js-author-search"
).
click
expect
(
page
).
to
have_selector
(
".dropdown-menu-author li a"
)
find
(
".dropdown-menu-author li a"
,
match: :first
).
click
expect
(
page
).
not_to
have_selector
(
".dropdown-menu-author li a"
)
find
(
".js-assignee-search"
).
click
expect
(
page
).
to
have_selector
(
".dropdown-menu-assignee li a"
)
find
(
".dropdown-menu-assignee li a"
,
match: :first
).
click
expect
(
page
).
not_to
have_selector
(
".dropdown-menu-assignee li a"
)
end
def
should_see
(
merge_request
)
expect
(
page
).
to
have_content
(
merge_request
.
title
[
0
..
10
])
end
def
should_not_see
(
merge_request
)
expect
(
page
).
not_to
have_content
(
merge_request
.
title
[
0
..
10
])
end
def
assigned_merge_request
@assigned_merge_request
||=
create
:merge_request
,
assignee:
current_user
,
target_project:
project
,
source_project:
project
end
def
authored_merge_request
@authored_merge_request
||=
create
:merge_request
,
source_branch:
'markdown'
,
author:
current_user
,
target_project:
project
,
source_project:
project
end
def
other_merge_request
@other_merge_request
||=
create
:merge_request
,
source_branch:
'fix'
,
target_project:
project
,
source_project:
project
end
def
authored_merge_request_from_fork
@authored_merge_request_from_fork
||=
create
:merge_request
,
source_branch:
'feature_conflict'
,
author:
current_user
,
target_project:
public_project
,
source_project:
forked_project
end
def
assigned_merge_request_from_fork
@assigned_merge_request_from_fork
||=
create
:merge_request
,
source_branch:
'markdown'
,
assignee:
current_user
,
target_project:
public_project
,
source_project:
forked_project
end
def
project
@project
||=
begin
project
=
create
(
:project
,
:repository
)
project
.
team
<<
[
current_user
,
:master
]
project
end
end
def
public_project
@public_project
||=
create
(
:project
,
:public
,
:repository
)
end
def
forked_project
@forked_project
||=
Projects
::
ForkService
.
new
(
public_project
,
current_user
).
execute
# The call to project.repository.after_import in RepositoryForkWorker does
# not reset the @exists variable of @fork_project.repository so we have to
# explicitely call this method to clear the @exists variable.
@forked_project
.
repository
.
after_import
@forked_project
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