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 {
"""
subgroupCreationLevel: String
"""
Date until the temporary storage increase is active
"""
temporaryStorageIncreaseEndsOn: Time
"""
Time logged in issues by group members
"""
......@@ -8204,6 +8209,11 @@ type Namespace {
"""
storageSizeLimit: Float
"""
Date until the temporary storage increase is active
"""
temporaryStorageIncreaseEndsOn: Time
"""
Visibility of the namespace
"""
......
......@@ -14595,6 +14595,20 @@
"isDeprecated": false,
"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",
"description": "Time logged in issues by group members",
......@@ -24437,6 +24451,20 @@
"isDeprecated": false,
"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",
"description": "Visibility of the namespace",
......@@ -818,6 +818,7 @@ Autogenerated return type of EpicTreeReorder
| `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 |
| `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 |
| `userPermissions` | GroupPermissions! | Permissions for the current user on the resource |
| `visibility` | String | Visibility of the namespace |
......@@ -1254,6 +1255,7 @@ Contains statistics about a milestone
| `requestAccessEnabled` | Boolean | Indicates if users can request access to namespace |
| `rootStorageStatistics` | RootStorageStatistics | Aggregated storage statistics of the namespace. Only available for root namespaces |
| `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 |
## Note
......
......@@ -7,9 +7,15 @@ module EE
prepended do
field :storage_size_limit,
GraphQL::FLOAT_TYPE, null: true,
GraphQL::FLOAT_TYPE,
null: true,
description: 'Total storage limit of the root namespace in bytes',
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
......
......@@ -50,6 +50,7 @@ module EE
delegate :additional_purchased_storage_size, :additional_purchased_storage_size=,
:additional_purchased_storage_ends_on, :additional_purchased_storage_ends_on=,
:temporary_storage_increase_ends_on,
to: :namespace_limit, allow_nil: 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 @@
require 'spec_helper'
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
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