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: 4000c6db28045c6e4c699f10f92fc244cf735489 (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

    field :storage_size, GraphQL::INT_TYPE, null: false
    field :repository_size, GraphQL::INT_TYPE, null: false
    field :lfs_objects_size, GraphQL::INT_TYPE, null: false
    field :build_artifacts_size, GraphQL::INT_TYPE, null: false
    field :packages_size, GraphQL::INT_TYPE, null: false
    field :wiki_size, GraphQL::INT_TYPE, null: true
  end
end