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
629c374b
Commit
629c374b
authored
Jun 23, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve controller conflicts
parent
5804f2da
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
25 deletions
+5
-25
app/controllers/projects/application_controller.rb
app/controllers/projects/application_controller.rb
+0
-3
app/controllers/projects/environments_controller.rb
app/controllers/projects/environments_controller.rb
+3
-3
app/controllers/projects/issues_controller.rb
app/controllers/projects/issues_controller.rb
+1
-6
app/controllers/projects/merge_requests_controller.rb
app/controllers/projects/merge_requests_controller.rb
+1
-13
No files found.
app/controllers/projects/application_controller.rb
View file @
629c374b
...
...
@@ -57,14 +57,11 @@ class Projects::ApplicationController < ApplicationController
render_404
unless
project
.
feature_available?
(
feature
,
current_user
)
end
<<<<<<<
HEAD
=======
def
check_issuables_available!
render_404
unless
project
.
feature_available?
(
:issues
,
current_user
)
||
project
.
feature_available?
(
:merge_requests
,
current_user
)
end
>>>>>>>
ce
/
master
def
method_missing
(
method_sym
,
*
arguments
,
&
block
)
case
method_sym
.
to_s
when
/\Aauthorize_(.*)!\z/
...
...
app/controllers/projects/environments_controller.rb
View file @
629c374b
...
...
@@ -130,7 +130,6 @@ class Projects::EnvironmentsController < Projects::ApplicationController
end
end
<<<<<<<
HEAD
# The rollout status of an enviroment
def
status
unless
@environment
.
deployment_service_ready?
...
...
@@ -147,7 +146,9 @@ class Projects::EnvironmentsController < Projects::ApplicationController
else
serializer
=
RolloutStatusSerializer
.
new
(
project:
@project
,
current_user:
@current_user
)
render
json:
serializer
.
represent
(
rollout_status
)
=======
end
end
def
additional_metrics
respond_to
do
|
format
|
format
.
json
do
...
...
@@ -155,7 +156,6 @@ class Projects::EnvironmentsController < Projects::ApplicationController
render
json:
additional_metrics
,
status:
additional_metrics
.
any?
?
:ok
:
:no_content
end
>>>>>>>
ce
/
master
end
end
...
...
app/controllers/projects/issues_controller.rb
View file @
629c374b
...
...
@@ -11,13 +11,8 @@ class Projects::IssuesController < Projects::ApplicationController
prepend_before_action
:authenticate_user!
,
only:
[
:new
,
:export_csv
]
before_action
:redirect_to_external_issue_tracker
,
only:
[
:index
,
:new
]
<<<<<<<
HEAD
before_action
:module_enabled
before_action
:issue
,
except:
[
:index
,
:new
,
:create
,
:bulk_update
,
:export_csv
]
=======
before_action
:check_issues_available!
before_action
:issue
,
except:
[
:index
,
:new
,
:create
,
:bulk_update
]
>>>>>>>
ce
/
master
before_action
:issue
,
except:
[
:index
,
:new
,
:create
,
:bulk_update
,
:export_csv
]
# Allow write(create) issue
before_action
:authorize_create_issue!
,
only:
[
:new
,
:create
]
...
...
app/controllers/projects/merge_requests_controller.rb
View file @
629c374b
...
...
@@ -643,11 +643,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
def
merge_request_params
params
.
require
(
:merge_request
)
<<<<<<<
HEAD
.
permit
(
merge_request_params_ce
<<
merge_request_params_ee
)
=======
.
permit
(
merge_request_params_attributes
)
>>>>>>>
ce
/
master
end
def
merge_request_params_attributes
...
...
@@ -666,7 +662,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
:title
,
label_ids:
[]
]
]
+
merge_request_params_ee
end
def
merge_request_params_ee
...
...
@@ -695,15 +691,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
end
def
merge_params
<<<<<<<
HEAD
params
.
permit
(
:should_remove_source_branch
,
:commit_message
,
:squash
)
=======
params
.
permit
(
merge_params_attributes
)
end
def
merge_params_attributes
[
:should_remove_source_branch
,
:commit_message
]
>>>>>>>
ce
/
master
end
# Make sure merge requests created before 8.0
...
...
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