blob: c48919a61ac26fd5738901688c8d480f93acebbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# frozen_string_literal: true
module CycleAnalytics
class GroupLevel < Base
def initialize(project: nil, projects:, options:)
@projects = projects
@options = options
end
def summary
@summary ||= ::Gitlab::CycleAnalytics::GroupStageSummary.new(@project,
from: @options[:from],
current_user: @options[:current_user]).data
end
def permissions(user:)
STAGES.each_with_object({}) do |stage, obj|
obj[stage] = true
end
end
end
end
|