Commit 25e41c67 authored by Valery Sizov's avatar Valery Sizov

Confliuct resolving

parent e2e2d682
...@@ -158,12 +158,8 @@ module IssuablesHelper ...@@ -158,12 +158,8 @@ module IssuablesHelper
:author_id, :author_id,
:assignee_id, :assignee_id,
:milestone_title, :milestone_title,
<<<<<<< HEAD :weight,
:label_name,
:weight
=======
:label_name :label_name
>>>>>>> 14046b9c734e5e6506d63276f39f3f9d770c3699
] ]
end end
...@@ -194,18 +190,9 @@ module IssuablesHelper ...@@ -194,18 +190,9 @@ module IssuablesHelper
end end
def issuables_count_for_state(issuable_type, state) def issuables_count_for_state(issuable_type, state)
<<<<<<< HEAD
issuables_finder = public_send("#{issuable_type}_finder")
params = issuables_finder.params.merge(state: state)
finder = issuables_finder.class.new(issuables_finder.current_user, params)
finder.execute.page(1).total_count
=======
@counts ||= {} @counts ||= {}
@counts[issuable_type] ||= public_send("#{issuable_type}_finder").count_by_state @counts[issuable_type] ||= public_send("#{issuable_type}_finder").count_by_state
@counts[issuable_type][state] @counts[issuable_type][state]
>>>>>>> 14046b9c734e5e6506d63276f39f3f9d770c3699
end end
IRRELEVANT_PARAMS_FOR_CACHE_KEY = %i[utf8 sort page] IRRELEVANT_PARAMS_FOR_CACHE_KEY = %i[utf8 sort page]
......
...@@ -105,7 +105,6 @@ module SystemNoteService ...@@ -105,7 +105,6 @@ module SystemNoteService
# Returns the created Note object # Returns the created Note object
def change_milestone(noteable, project, author, milestone) def change_milestone(noteable, project, author, milestone)
body = milestone.nil? ? 'removed milestone' : "changed milestone to #{milestone.to_reference(project)}" body = milestone.nil? ? 'removed milestone' : "changed milestone to #{milestone.to_reference(project)}"
<<<<<<< HEAD
create_note(noteable: noteable, project: project, author: author, note: body) create_note(noteable: noteable, project: project, author: author, note: body)
end end
...@@ -157,8 +156,6 @@ module SystemNoteService ...@@ -157,8 +156,6 @@ module SystemNoteService
action = time_spent > 0 ? 'Added' : 'Subtracted' action = time_spent > 0 ? 'Added' : 'Subtracted'
body = "#{action} #{parsed_time} of time spent on this #{noteable.human_class_name}" body = "#{action} #{parsed_time} of time spent on this #{noteable.human_class_name}"
end end
=======
>>>>>>> 14046b9c734e5e6506d63276f39f3f9d770c3699
create_note(noteable: noteable, project: project, author: author, note: body) create_note(noteable: noteable, project: project, author: author, note: body)
end end
......
...@@ -348,7 +348,6 @@ describe "Private Project Access", feature: true do ...@@ -348,7 +348,6 @@ describe "Private Project Access", feature: true do
it { is_expected.to be_denied_for(:user) } it { is_expected.to be_denied_for(:user) }
it { is_expected.to be_denied_for(:external) } it { is_expected.to be_denied_for(:external) }
it { is_expected.to be_denied_for(:visitor) } it { is_expected.to be_denied_for(:visitor) }
<<<<<<< HEAD
end end
context "when license blocks changes" do context "when license blocks changes" do
...@@ -377,8 +376,6 @@ describe "Private Project Access", feature: true do ...@@ -377,8 +376,6 @@ describe "Private Project Access", feature: true do
it { is_expected.to be_denied_for(:user) } it { is_expected.to be_denied_for(:user) }
it { is_expected.to be_denied_for(:visitor) } it { is_expected.to be_denied_for(:visitor) }
end end
=======
>>>>>>> 14046b9c734e5e6506d63276f39f3f9d770c3699
end end
describe "GET /:project_path/container_registry" do describe "GET /:project_path/container_registry" do
......
...@@ -412,7 +412,6 @@ describe "Public Project Access", feature: true do ...@@ -412,7 +412,6 @@ describe "Public Project Access", feature: true do
it { is_expected.to be_denied_for(:user) } it { is_expected.to be_denied_for(:user) }
it { is_expected.to be_denied_for(:external) } it { is_expected.to be_denied_for(:external) }
it { is_expected.to be_denied_for(:visitor) } it { is_expected.to be_denied_for(:visitor) }
<<<<<<< HEAD
end end
context "when license blocks changes" do context "when license blocks changes" do
...@@ -441,8 +440,6 @@ describe "Public Project Access", feature: true do ...@@ -441,8 +440,6 @@ describe "Public Project Access", feature: true do
it { is_expected.to be_denied_for(:user) } it { is_expected.to be_denied_for(:user) }
it { is_expected.to be_denied_for(:visitor) } it { is_expected.to be_denied_for(:visitor) }
end end
=======
>>>>>>> 14046b9c734e5e6506d63276f39f3f9d770c3699
end end
describe "GET /:project_path/container_registry" do describe "GET /:project_path/container_registry" 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