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

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

module Types
  class ProjectStatisticsType < BaseObject
    graphql_name 'ProjectStatistics'

    authorize :read_statistics

    field :commit_count, GraphQL::INT_TYPE, null: false # rubocop:disable Graphql/Descriptions

    field :storage_size, GraphQL::INT_TYPE, null: false # rubocop:disable Graphql/Descriptions
    field :repository_size, GraphQL::INT_TYPE, null: false # rubocop:disable Graphql/Descriptions
    field :lfs_objects_size, GraphQL::INT_TYPE, null: false # rubocop:disable Graphql/Descriptions
    field :build_artifacts_size, GraphQL::INT_TYPE, null: false # rubocop:disable Graphql/Descriptions
    field :packages_size, GraphQL::INT_TYPE, null: false # rubocop:disable Graphql/Descriptions
    field :wiki_size, GraphQL::INT_TYPE, null: true # rubocop:disable Graphql/Descriptions
  end
end