Skip to content
代码片段 群组 项目
提交 7c99455c 编辑于 作者: Lukas 'Eipi' Eipert's avatar Lukas 'Eipi' Eipert
浏览文件

Merge branch '431177-reduce-query-fields' into 'master'

Remove unused fields from storage query

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/138891



Merged-by: default avatarLukas 'Eipi' Eipert <leipert@gitlab.com>
Approved-by: default avatarLukas 'Eipi' Eipert <leipert@gitlab.com>
Co-authored-by: default avatarAmmar Alakkad <am.alakkad@gmail.com>
No related branches found
No related tags found
无相关合并请求
...@@ -11,7 +11,6 @@ query getNamespaceStorageStatistics( ...@@ -11,7 +11,6 @@ query getNamespaceStorageStatistics(
) { ) {
namespace(fullPath: $fullPath) { namespace(fullPath: $fullPath) {
id id
name
storageSizeLimit storageSizeLimit
actualRepositorySizeLimit actualRepositorySizeLimit
additionalPurchasedStorageSize additionalPurchasedStorageSize
...@@ -49,10 +48,7 @@ query getNamespaceStorageStatistics( ...@@ -49,10 +48,7 @@ query getNamespaceStorageStatistics(
avatarUrl avatarUrl
webUrl webUrl
name name
repositorySizeExcess
actualRepositorySizeLimit
statistics { statistics {
commitCount
storageSize storageSize
costFactoredStorageSize costFactoredStorageSize
repositorySize repositorySize
......
...@@ -39,10 +39,7 @@ const createProject = (attrs = {}) => { ...@@ -39,10 +39,7 @@ const createProject = (attrs = {}) => {
avatarUrl: null, avatarUrl: null,
webUrl: 'http://localhost/frontend-fixtures/gitlab', webUrl: 'http://localhost/frontend-fixtures/gitlab',
name: 'GitLab', name: 'GitLab',
repositorySizeExcess: 319430.0,
actualRepositorySizeLimit: 100000.0,
statistics: { statistics: {
commitCount: 0.0,
storageSize: 1691805.0, storageSize: 1691805.0,
costFactoredStorageSize: 1691805.0, costFactoredStorageSize: 1691805.0,
repositorySize: 209710.0, repositorySize: 209710.0,
......
...@@ -65,7 +65,6 @@ export const mockedNamespaceStorageResponse = { ...@@ -65,7 +65,6 @@ export const mockedNamespaceStorageResponse = {
data: { data: {
namespace: { namespace: {
id: 'gid://gitlab/Group/84', id: 'gid://gitlab/Group/84',
name: 'wandercatgroup2',
storageSizeLimit: 0, storageSizeLimit: 0,
actualRepositorySizeLimit: 10737418240, actualRepositorySizeLimit: 10737418240,
additionalPurchasedStorageSize: 0, additionalPurchasedStorageSize: 0,
...@@ -96,10 +95,7 @@ export const mockedNamespaceStorageResponse = { ...@@ -96,10 +95,7 @@ export const mockedNamespaceStorageResponse = {
avatarUrl: null, avatarUrl: null,
webUrl: 'http://gdk.test:3000/wandercatgroup2/not-so-empty-project', webUrl: 'http://gdk.test:3000/wandercatgroup2/not-so-empty-project',
name: 'not so empty project', name: 'not so empty project',
repositorySizeExcess: 0,
actualRepositorySizeLimit: 10737418240,
statistics: { statistics: {
commitCount: 1,
storageSize: 125771, storageSize: 125771,
costFactoredStorageSize: 12577, costFactoredStorageSize: 12577,
repositorySize: 20971, repositorySize: 20971,
...@@ -120,10 +116,7 @@ export const mockedNamespaceStorageResponse = { ...@@ -120,10 +116,7 @@ export const mockedNamespaceStorageResponse = {
avatarUrl: null, avatarUrl: null,
webUrl: 'http://gdk.test:3000/wandercatgroup2/not-so-empty-project', webUrl: 'http://gdk.test:3000/wandercatgroup2/not-so-empty-project',
name: 'not so empty project', name: 'not so empty project',
repositorySizeExcess: 0,
actualRepositorySizeLimit: 10737418240,
statistics: { statistics: {
commitCount: 1,
storageSize: 125771, storageSize: 125771,
costFactoredStorageSize: 12577, costFactoredStorageSize: 12577,
repositorySize: 20971, repositorySize: 20971,
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册