Commit f2dcdf2f authored by Tyler Amos's avatar Tyler Amos

Add namespace name and repo size limit to query

These were additional fields required by the FE on the usage quotas
page.
parent 5ceab966
......@@ -7195,6 +7195,11 @@ type GrafanaIntegration {
}
type Group {
"""
Size limit for repositories in the namespace in bytes
"""
actualRepositorySizeLimit: Float
"""
Additional storage purchased for the root namespace in bytes
"""
......@@ -11913,6 +11918,11 @@ enum MutationOperationMode {
}
type Namespace {
"""
Size limit for repositories in the namespace in bytes
"""
actualRepositorySizeLimit: Float
"""
Additional storage purchased for the root namespace in bytes
"""
......
......@@ -19906,6 +19906,20 @@
"name": "Group",
"description": null,
"fields": [
{
"name": "actualRepositorySizeLimit",
"description": "Size limit for repositories in the namespace in bytes",
"args": [
],
"type": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "additionalPurchasedStorageSize",
"description": "Additional storage purchased for the root namespace in bytes",
......@@ -35100,6 +35114,20 @@
"name": "Namespace",
"description": null,
"fields": [
{
"name": "actualRepositorySizeLimit",
"description": "Size limit for repositories in the namespace in bytes",
"args": [
],
"type": {
"kind": "SCALAR",
"name": "Float",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "additionalPurchasedStorageSize",
"description": "Additional storage purchased for the root namespace in bytes",
......@@ -1136,6 +1136,7 @@ Autogenerated return type of EpicTreeReorder.
| Field | Type | Description |
| ----- | ---- | ----------- |
| `actualRepositorySizeLimit` | Float | Size limit for repositories in the namespace in bytes |
| `additionalPurchasedStorageSize` | Float | Additional storage purchased for the root namespace in bytes |
| `autoDevopsEnabled` | Boolean | Indicates whether Auto DevOps is enabled for all projects within this group |
| `avatarUrl` | String | Avatar URL of the group |
......@@ -1717,6 +1718,7 @@ Contains statistics about a milestone.
| Field | Type | Description |
| ----- | ---- | ----------- |
| `actualRepositorySizeLimit` | Float | Size limit for repositories in the namespace in bytes |
| `additionalPurchasedStorageSize` | Float | Additional storage purchased for the root namespace in bytes |
| `containsLockedProjects` | Boolean! | Includes at least one project where the repository size exceeds the limit |
| `description` | String | Description of the namespace |
......
query getStorageCounter($fullPath: ID!, $withExcessStorageData: Boolean = false) {
namespace(fullPath: $fullPath) {
id
name
storageSizeLimit
actualRepositorySizeLimit @include(if: $withExcessStorageData)
additionalPurchasedStorageSize @include(if: $withExcessStorageData)
totalRepositorySizeExcess @include(if: $withExcessStorageData)
totalRepositorySize @include(if: $withExcessStorageData)
......
......@@ -32,6 +32,12 @@ module EE
null: false,
description: 'Number of projects in the root namespace where the repository size exceeds the limit'
field :actual_repository_size_limit,
GraphQL::FLOAT_TYPE,
null: true,
description: 'Size limit for repositories in the namespace in bytes',
resolve: -> (obj, _args, _ctx) { obj.actual_size_limit }
field :storage_size_limit,
GraphQL::FLOAT_TYPE,
null: true,
......
......@@ -10,6 +10,7 @@ RSpec.describe GitlabSchema.types['Namespace'] do
total_repository_size
contains_locked_projects
repository_size_excess_project_count
actual_repository_size_limit
storage_size_limit
is_temporary_storage_increase_enabled
temporary_storage_increase_ends_on
......
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