Commit d9759322 authored by Michael Kozono's avatar Michael Kozono

Merge branch 'nicolasdular/expose-temporary-storage-increase' into 'master'

Expose temporary storage increase end date

See merge request gitlab-org/gitlab!36495
parents 7b1621e6 98212ac7
...@@ -5303,6 +5303,11 @@ type Group { ...@@ -5303,6 +5303,11 @@ type Group {
""" """
subgroupCreationLevel: String subgroupCreationLevel: String
"""
Date until the temporary storage increase is active
"""
temporaryStorageIncreaseEndsOn: Time
""" """
Time logged in issues by group members Time logged in issues by group members
""" """
...@@ -8204,6 +8209,11 @@ type Namespace { ...@@ -8204,6 +8209,11 @@ type Namespace {
""" """
storageSizeLimit: Float storageSizeLimit: Float
"""
Date until the temporary storage increase is active
"""
temporaryStorageIncreaseEndsOn: Time
""" """
Visibility of the namespace Visibility of the namespace
""" """
......
...@@ -14595,6 +14595,20 @@ ...@@ -14595,6 +14595,20 @@
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
}, },
{
"name": "temporaryStorageIncreaseEndsOn",
"description": "Date until the temporary storage increase is active",
"args": [
],
"type": {
"kind": "SCALAR",
"name": "Time",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "timelogs", "name": "timelogs",
"description": "Time logged in issues by group members", "description": "Time logged in issues by group members",
...@@ -24437,6 +24451,20 @@ ...@@ -24437,6 +24451,20 @@
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
}, },
{
"name": "temporaryStorageIncreaseEndsOn",
"description": "Date until the temporary storage increase is active",
"args": [
],
"type": {
"kind": "SCALAR",
"name": "Time",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "visibility", "name": "visibility",
"description": "Visibility of the namespace", "description": "Visibility of the namespace",
...@@ -818,6 +818,7 @@ Autogenerated return type of EpicTreeReorder ...@@ -818,6 +818,7 @@ Autogenerated return type of EpicTreeReorder
| `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` | Float | 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 |
| `temporaryStorageIncreaseEndsOn` | Time | Date until the temporary storage increase is active |
| `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 |
| `visibility` | String | Visibility of the namespace | | `visibility` | String | Visibility of the namespace |
...@@ -1254,6 +1255,7 @@ Contains statistics about a milestone ...@@ -1254,6 +1255,7 @@ Contains statistics about a milestone
| `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` | Float | Total storage limit of the root namespace in bytes | | `storageSizeLimit` | Float | Total storage limit of the root namespace in bytes |
| `temporaryStorageIncreaseEndsOn` | Time | Date until the temporary storage increase is active |
| `visibility` | String | Visibility of the namespace | | `visibility` | String | Visibility of the namespace |
## Note ## Note
......
...@@ -7,9 +7,15 @@ module EE ...@@ -7,9 +7,15 @@ module EE
prepended do prepended do
field :storage_size_limit, field :storage_size_limit,
GraphQL::FLOAT_TYPE, null: true, 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) { EE::Namespace::RootStorageSize.new(obj).limit } resolve: -> (obj, _args, _ctx) { EE::Namespace::RootStorageSize.new(obj).limit }
field :temporary_storage_increase_ends_on,
::Types::TimeType,
null: true,
description: 'Date until the temporary storage increase is active'
end end
end end
end end
......
...@@ -50,6 +50,7 @@ module EE ...@@ -50,6 +50,7 @@ module EE
delegate :additional_purchased_storage_size, :additional_purchased_storage_size=, delegate :additional_purchased_storage_size, :additional_purchased_storage_size=,
:additional_purchased_storage_ends_on, :additional_purchased_storage_ends_on=, :additional_purchased_storage_ends_on, :additional_purchased_storage_ends_on=,
:temporary_storage_increase_ends_on,
to: :namespace_limit, allow_nil: true to: :namespace_limit, allow_nil: true
delegate :email, to: :owner, allow_nil: true, prefix: true delegate :email, to: :owner, allow_nil: true, prefix: true
......
---
title: Expose temporary storage increase end date in api
merge_request: 36495
author:
type: added
...@@ -3,5 +3,9 @@ ...@@ -3,5 +3,9 @@
require 'spec_helper' require 'spec_helper'
RSpec.describe GitlabSchema.types['Namespace'] do RSpec.describe GitlabSchema.types['Namespace'] do
it { expect(described_class).to have_graphql_field(:storage_size_limit) } it 'has specific fields' do
expected_fields = %w[storage_size_limit temporary_storage_increase_ends_on]
expect(described_class).to include_graphql_fields(*expected_fields)
end
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