Commit 6db8582a authored by Matthias van de Meent's avatar Matthias van de Meent

Update graphql statistics holders to BigInt

INT_TYPE can only hold 2**31 (?), which is not enough for large projects and root namespaces.
parent c4b22794
......@@ -6,20 +6,20 @@ module Types
authorize :read_statistics
field :commit_count, GraphQL::INT_TYPE, null: false,
field :commit_count, GraphQL::Types::BigInt, null: false,
description: 'Commit count of the project'
field :storage_size, GraphQL::INT_TYPE, null: false,
field :storage_size, GraphQL::Types::BigInt, null: false,
description: 'Storage size of the project'
field :repository_size, GraphQL::INT_TYPE, null: false,
field :repository_size, GraphQL::Types::BigInt, null: false,
description: 'Repository size of the project'
field :lfs_objects_size, GraphQL::INT_TYPE, null: false,
field :lfs_objects_size, GraphQL::Types::BigInt, null: false,
description: 'Large File Storage (LFS) object size of the project'
field :build_artifacts_size, GraphQL::INT_TYPE, null: false,
field :build_artifacts_size, GraphQL::Types::BigInt, null: false,
description: 'Build artifacts size of the project'
field :packages_size, GraphQL::INT_TYPE, null: false,
field :packages_size, GraphQL::Types::BigInt, null: false,
description: 'Packages size of the project'
field :wiki_size, GraphQL::INT_TYPE, null: true,
field :wiki_size, GraphQL::Types::BigInt, null: true,
description: 'Wiki size of the project'
end
end
......@@ -6,11 +6,11 @@ module Types
authorize :read_statistics
field :storage_size, GraphQL::INT_TYPE, null: false, description: 'The total storage in bytes'
field :repository_size, GraphQL::INT_TYPE, null: false, description: 'The Git repository size in bytes'
field :lfs_objects_size, GraphQL::INT_TYPE, null: false, description: 'The LFS objects size in bytes'
field :build_artifacts_size, GraphQL::INT_TYPE, null: false, description: 'The CI artifacts size in bytes'
field :packages_size, GraphQL::INT_TYPE, null: false, description: 'The packages size in bytes'
field :wiki_size, GraphQL::INT_TYPE, null: false, description: 'The wiki size in bytes'
field :storage_size, GraphQL::Types::BigInt, null: false, description: 'The total storage in bytes'
field :repository_size, GraphQL::Types::BigInt, null: false, description: 'The Git repository size in bytes'
field :lfs_objects_size, GraphQL::Types::BigInt, null: false, description: 'The LFS objects size in bytes'
field :build_artifacts_size, GraphQL::Types::BigInt, null: false, description: 'The CI artifacts size in bytes'
field :packages_size, GraphQL::Types::BigInt, null: false, description: 'The packages size in bytes'
field :wiki_size, GraphQL::Types::BigInt, null: false, description: 'The wiki size in bytes'
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment