Commit 0221c27c authored by Lin Jen-Shin's avatar Lin Jen-Shin

Resolve conflicts

parent 7eb536b5
import PipelineStage from '../../pipelines/components/stage.vue'; import PipelineStage from '../../pipelines/components/stage.vue';
import ciIcon from '../../vue_shared/components/ci_icon.vue'; import ciIcon from '../../vue_shared/components/ci_icon.vue';
<<<<<<< HEAD import icon from '../../vue_shared/components/icon.vue';
import { statusIconEntityMap } from '../../vue_shared/ci_status_icons'; import { statusIconEntityMap } from '../../vue_shared/ci_status_icons';
import linkedPipelinesMiniList from '../../vue_shared/components/linked_pipelines_mini_list.vue'; import linkedPipelinesMiniList from '../../vue_shared/components/linked_pipelines_mini_list.vue';
=======
import icon from '../../vue_shared/components/icon.vue';
>>>>>>> upstream/master
export default { export default {
name: 'MRWidgetPipeline', name: 'MRWidgetPipeline',
...@@ -15,11 +12,8 @@ export default { ...@@ -15,11 +12,8 @@ export default {
components: { components: {
'pipeline-stage': PipelineStage, 'pipeline-stage': PipelineStage,
ciIcon, ciIcon,
<<<<<<< HEAD
linkedPipelinesMiniList,
=======
icon, icon,
>>>>>>> upstream/master linkedPipelinesMiniList,
}, },
computed: { computed: {
hasPipeline() { hasPipeline() {
......
...@@ -4,12 +4,6 @@ ...@@ -4,12 +4,6 @@
.cred { color: $common-red; } .cred { color: $common-red; }
.cgreen { color: $common-green; } .cgreen { color: $common-green; }
.cdark { color: $common-gray-dark; } .cdark { color: $common-gray-dark; }
<<<<<<< HEAD
.text-secondary {
color: $gl-text-color-secondary;
}
=======
>>>>>>> upstream/master
.underlined-link { text-decoration: underline; } .underlined-link { text-decoration: underline; }
.hint { font-style: italic; color: $hint-color; } .hint { font-style: italic; color: $hint-color; }
......
# Placeholder class for model that is implemented in EE # Placeholder class for model that is implemented in EE
# It will reserve (ee#3853) '&' as a reference prefix, but the table does not exists in CE # It will reserve (ee#3853) '&' as a reference prefix, but the table does not exists in CE
class Epic < ActiveRecord::Base class Epic < ActiveRecord::Base
<<<<<<< HEAD
prepend EE::Epic prepend EE::Epic
=======
>>>>>>> upstream/master
# TODO: this will be implemented as part of #3853 # TODO: this will be implemented as part of #3853
def to_reference def to_reference
end end
......
...@@ -15,14 +15,11 @@ class Issue < ActiveRecord::Base ...@@ -15,14 +15,11 @@ class Issue < ActiveRecord::Base
include RelativePositioning include RelativePositioning
include CreatedAtFilterable include CreatedAtFilterable
include TimeTrackable include TimeTrackable
<<<<<<< HEAD
WEIGHT_RANGE = 1..9 WEIGHT_RANGE = 1..9
WEIGHT_ALL = 'Everything'.freeze WEIGHT_ALL = 'Everything'.freeze
WEIGHT_ANY = 'Any Weight'.freeze WEIGHT_ANY = 'Any Weight'.freeze
WEIGHT_NONE = 'No Weight'.freeze WEIGHT_NONE = 'No Weight'.freeze
=======
>>>>>>> upstream/master
DueDateStruct = Struct.new(:title, :name).freeze DueDateStruct = Struct.new(:title, :name).freeze
NoDueDate = DueDateStruct.new('No Due Date', '0').freeze NoDueDate = DueDateStruct.new('No Due Date', '0').freeze
......
class IssuableBaseService < BaseService class IssuableBaseService < BaseService
<<<<<<< HEAD
prepend ::EE::IssuableBaseService prepend ::EE::IssuableBaseService
=======
>>>>>>> upstream/master
private private
def filter_params(issuable) def filter_params(issuable)
......
...@@ -49,10 +49,8 @@ module MergeRequests ...@@ -49,10 +49,8 @@ module MergeRequests
create_branch_change_note(merge_request, 'target', create_branch_change_note(merge_request, 'target',
merge_request.previous_changes['target_branch'].first, merge_request.previous_changes['target_branch'].first,
merge_request.target_branch) merge_request.target_branch)
<<<<<<< HEAD
reset_approvals(merge_request) reset_approvals(merge_request)
=======
>>>>>>> upstream/master
end end
if merge_request.previous_changes.include?('assignee_id') if merge_request.previous_changes.include?('assignee_id')
......
...@@ -44,18 +44,14 @@ module API ...@@ -44,18 +44,14 @@ module API
# Helper Methods for Grape Endpoint # Helper Methods for Grape Endpoint
module HelperMethods module HelperMethods
<<<<<<< HEAD def find_current_user!
def find_current_user
user = user =
find_user_from_private_token || find_user_from_access_token ||
find_user_from_oauth_token || find_user_from_oauth_token ||
find_user_from_warden || find_user_from_warden ||
find_user_by_job_token find_user_by_job_token
=======
def find_current_user!
user = find_user_from_access_token || find_user_from_warden
return unless user return unless user
>>>>>>> upstream/master
forbidden!('User is blocked') unless Gitlab::UserAccess.new(user).allowed? && user.can?(:access_api) forbidden!('User is blocked') unless Gitlab::UserAccess.new(user).allowed? && user.can?(:access_api)
......
...@@ -190,7 +190,6 @@ describe IssuablesHelper do ...@@ -190,7 +190,6 @@ describe IssuablesHelper do
} }
expect(JSON.parse(helper.issuable_initial_data(issue))).to eq(expected_data) expect(JSON.parse(helper.issuable_initial_data(issue))).to eq(expected_data)
end end
<<<<<<< HEAD
it 'returns the correct json for an epic' do it 'returns the correct json for an epic' do
epic = create(:epic, author: user, description: 'epic text') epic = create(:epic, author: user, description: 'epic text')
...@@ -213,7 +212,5 @@ describe IssuablesHelper do ...@@ -213,7 +212,5 @@ describe IssuablesHelper do
} }
expect(JSON.parse(helper.issuable_initial_data(epic))).to eq(expected_data) expect(JSON.parse(helper.issuable_initial_data(epic))).to eq(expected_data)
end end
=======
>>>>>>> upstream/master
end end
end end
...@@ -31,7 +31,6 @@ describe API::Helpers do ...@@ -31,7 +31,6 @@ describe API::Helpers do
.and_return(route_authentication_setting) .and_return(route_authentication_setting)
end end
<<<<<<< HEAD
def set_env(user_or_token, identifier) def set_env(user_or_token, identifier)
clear_env clear_env
clear_param clear_param
...@@ -58,8 +57,6 @@ describe API::Helpers do ...@@ -58,8 +57,6 @@ describe API::Helpers do
params.delete(API::Helpers::SUDO_PARAM) params.delete(API::Helpers::SUDO_PARAM)
end end
=======
>>>>>>> upstream/master
def warden_authenticate_returns(value) def warden_authenticate_returns(value)
warden = double("warden", authenticate: value) warden = double("warden", authenticate: value)
env['warden'] = warden env['warden'] = warden
...@@ -209,7 +206,6 @@ describe API::Helpers do ...@@ -209,7 +206,6 @@ describe API::Helpers do
expect { current_user }.to raise_error API::APIGuard::ExpiredError expect { current_user }.to raise_error API::APIGuard::ExpiredError
end end
end end
<<<<<<< HEAD
describe "when authenticating using a job token" do describe "when authenticating using a job token" do
let(:job) { create(:ci_build, user: current_user) } let(:job) { create(:ci_build, user: current_user) }
...@@ -443,8 +439,6 @@ describe API::Helpers do ...@@ -443,8 +439,6 @@ describe API::Helpers do
end end
end end
end end
=======
>>>>>>> upstream/master
end end
describe '.handle_api_exception' do describe '.handle_api_exception' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment