Commit b4dc0242 authored by Jan Provaznik's avatar Jan Provaznik

Merge branch 'nicolasdular/fix-graphql-storage-type' into 'master'

Use FLOAT_TYPE for storage limit

See merge request gitlab-org/gitlab!35559
parents 5f64156e 379dcea0
...@@ -27,7 +27,7 @@ module Types ...@@ -27,7 +27,7 @@ module Types
description: 'Indicates if Large File Storage (LFS) is enabled for namespace' description: 'Indicates if Large File Storage (LFS) is enabled for namespace'
field :request_access_enabled, GraphQL::BOOLEAN_TYPE, null: true, field :request_access_enabled, GraphQL::BOOLEAN_TYPE, null: true,
description: 'Indicates if users can request access to namespace' description: 'Indicates if users can request access to namespace'
field :storage_size_limit, GraphQL::INT_TYPE, null: true, field :storage_size_limit, GraphQL::FLOAT_TYPE, null: true,
description: 'Total storage limit of the root namespace in bytes', description: 'Total storage limit of the root namespace in bytes',
resolve: -> (obj, _args, _ctx) { Namespace::RootStorageSize.new(obj).limit } resolve: -> (obj, _args, _ctx) { Namespace::RootStorageSize.new(obj).limit }
......
---
title: Use FLOAT_TYPE for storage limit
merge_request: 35559
author:
type: fixed
...@@ -5236,7 +5236,7 @@ type Group { ...@@ -5236,7 +5236,7 @@ type Group {
""" """
Total storage limit of the root namespace in bytes Total storage limit of the root namespace in bytes
""" """
storageSizeLimit: Int storageSizeLimit: Float
""" """
The permission level required to create subgroups within the group The permission level required to create subgroups within the group
...@@ -8081,7 +8081,7 @@ type Namespace { ...@@ -8081,7 +8081,7 @@ type Namespace {
""" """
Total storage limit of the root namespace in bytes Total storage limit of the root namespace in bytes
""" """
storageSizeLimit: Int storageSizeLimit: Float
""" """
Visibility of the namespace Visibility of the namespace
......
...@@ -14407,7 +14407,7 @@ ...@@ -14407,7 +14407,7 @@
], ],
"type": { "type": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "Int", "name": "Float",
"ofType": null "ofType": null
}, },
"isDeprecated": false, "isDeprecated": false,
...@@ -24094,7 +24094,7 @@ ...@@ -24094,7 +24094,7 @@
], ],
"type": { "type": {
"kind": "SCALAR", "kind": "SCALAR",
"name": "Int", "name": "Float",
"ofType": null "ofType": null
}, },
"isDeprecated": false, "isDeprecated": false,
...@@ -804,7 +804,7 @@ Autogenerated return type of EpicTreeReorder ...@@ -804,7 +804,7 @@ Autogenerated return type of EpicTreeReorder
| `requireTwoFactorAuthentication` | Boolean | Indicates if all users in this group are required to set up two-factor authentication | | `requireTwoFactorAuthentication` | Boolean | Indicates if all users in this group are required to set up two-factor authentication |
| `rootStorageStatistics` | RootStorageStatistics | Aggregated storage statistics of the namespace. Only available for root namespaces | | `rootStorageStatistics` | RootStorageStatistics | Aggregated storage statistics of the namespace. Only available for root namespaces |
| `shareWithGroupLock` | Boolean | Indicates if sharing a project with another group within this group is prevented | | `shareWithGroupLock` | Boolean | Indicates if sharing a project with another group within this group is prevented |
| `storageSizeLimit` | Int | Total storage limit of the root namespace in bytes | | `storageSizeLimit` | Float | Total storage limit of the root namespace in bytes |
| `subgroupCreationLevel` | String | The permission level required to create subgroups within the group | | `subgroupCreationLevel` | String | The permission level required to create subgroups within the group |
| `twoFactorGracePeriod` | Int | Time before two-factor authentication is enforced | | `twoFactorGracePeriod` | Int | Time before two-factor authentication is enforced |
| `userPermissions` | GroupPermissions! | Permissions for the current user on the resource | | `userPermissions` | GroupPermissions! | Permissions for the current user on the resource |
...@@ -1239,7 +1239,7 @@ Contains statistics about a milestone ...@@ -1239,7 +1239,7 @@ Contains statistics about a milestone
| `path` | String! | Path of the namespace | | `path` | String! | Path of the namespace |
| `requestAccessEnabled` | Boolean | Indicates if users can request access to namespace | | `requestAccessEnabled` | Boolean | Indicates if users can request access to namespace |
| `rootStorageStatistics` | RootStorageStatistics | Aggregated storage statistics of the namespace. Only available for root namespaces | | `rootStorageStatistics` | RootStorageStatistics | Aggregated storage statistics of the namespace. Only available for root namespaces |
| `storageSizeLimit` | Int | Total storage limit of the root namespace in bytes | | `storageSizeLimit` | Float | Total storage limit of the root namespace in bytes |
| `visibility` | String | Visibility of the namespace | | `visibility` | String | Visibility of the namespace |
## Note ## Note
......
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