Welcome to mirror list, hosted at ThFree Co, Russian Federation.

codequality_reports_comparer_entity.rb « serializers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1de4e56c57dd1e2f00b7aab2a612bf4391c575f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class CodequalityReportsComparerEntity < Grape::Entity
  expose :status

  expose :new_errors, using: CodequalityDegradationEntity
  expose :resolved_errors, using: CodequalityDegradationEntity
  expose :existing_errors, using: CodequalityDegradationEntity

  expose :summary do
    expose :total_count, as: :total
    expose :resolved_count, as: :resolved
    expose :errors_count, as: :errored
  end
end