Commit 21bc038b authored by Małgorzata Ksionek's avatar Małgorzata Ksionek

Add one method to base event fetcher

FIx file
parent 04dea654
......@@ -70,6 +70,10 @@ module Gitlab
def allowed_ids_source
{ project_id: @project.id }
end
def projects
[@project]
end
end
end
end
......@@ -33,6 +33,7 @@ module Gitlab
def medians_per_stage
projects.each_with_object({}) do |project, hsh|
::CycleAnalytics::ProjectLevel.new(project: project, options: options).all_medians_per_stage.each do |stage_name, median|
hsh[stage_name] ||= []
hsh[stage_name] << median
end
end
......
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