summaryrefslogtreecommitdiff
path: root/lib/gitlab/error_tracking/error_collection.rb
blob: d01064bb677a71d080f88bb12f4e58858d4b95e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

# This should be in the ErrorTracking namespace. For more details, see:
# https://gitlab.com/gitlab-org/gitlab/-/issues/323342
module Gitlab
  module ErrorTracking
    class ErrorCollection
      include GlobalID::Identification

      attr_accessor :issues, :external_url, :project

      alias_attribute :gitlab_project, :project

      def initialize(project:, external_url: nil, issues: [])
        @project = project
        @external_url = external_url
        @issues = issues
      end

      def self.declarative_policy_class
        'ErrorTracking::BasePolicy'
      end
    end
  end
end