Commit 8049fa00 authored by Jose Vargas's avatar Jose Vargas Committed by Jose Ivan Vargas

Remove total_pipeline_duration from project_type

This removes the total_pipeline_duration from the
project_type of the GraphQL api
parent c3e01c72
...@@ -315,9 +315,6 @@ module Types ...@@ -315,9 +315,6 @@ module Types
description: 'Pipeline analytics', description: 'Pipeline analytics',
resolver: Resolvers::ProjectPipelineStatisticsResolver resolver: Resolvers::ProjectPipelineStatisticsResolver
field :total_pipeline_duration, GraphQL::INT_TYPE, null: true,
description: 'Total pipeline duration for all of the pipelines in a project'
def label(title:) def label(title:)
BatchLoader::GraphQL.for(title).batch(key: project) do |titles, loader, args| BatchLoader::GraphQL.for(title).batch(key: project) do |titles, loader, args|
LabelsFinder LabelsFinder
...@@ -362,10 +359,6 @@ module Types ...@@ -362,10 +359,6 @@ module Types
project.container_repositories.size project.container_repositories.size
end end
def total_pipeline_duration
object.all_pipelines.total_duration
end
private private
def project def project
......
---
title: Remove total_pipeline_duration from project_type
merge_request: 50093
author:
type: changed
...@@ -18710,11 +18710,6 @@ type Project { ...@@ -18710,11 +18710,6 @@ type Project {
last: Int last: Int
): TerraformStateConnection ): TerraformStateConnection
"""
Total pipeline duration for all of the pipelines in a project
"""
totalPipelineDuration: Int
""" """
Permissions for the current user on the resource Permissions for the current user on the resource
""" """
......
...@@ -54460,20 +54460,6 @@ ...@@ -54460,20 +54460,6 @@
"isDeprecated": false, "isDeprecated": false,
"deprecationReason": null "deprecationReason": null
}, },
{
"name": "totalPipelineDuration",
"description": "Total pipeline duration for all of the pipelines in a project",
"args": [
],
"type": {
"kind": "SCALAR",
"name": "Int",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{ {
"name": "userPermissions", "name": "userPermissions",
"description": "Permissions for the current user on the resource", "description": "Permissions for the current user on the resource",
...@@ -2690,7 +2690,6 @@ Autogenerated return type of PipelineRetry. ...@@ -2690,7 +2690,6 @@ Autogenerated return type of PipelineRetry.
| `suggestionCommitMessage` | String | The commit message used to apply merge request suggestions | | `suggestionCommitMessage` | String | The commit message used to apply merge request suggestions |
| `tagList` | String | List of project topics (not Git tags) | | `tagList` | String | List of project topics (not Git tags) |
| `terraformStates` | TerraformStateConnection | Terraform states associated with the project | | `terraformStates` | TerraformStateConnection | Terraform states associated with the project |
| `totalPipelineDuration` | Int | Total pipeline duration for all of the pipelines in a project |
| `userPermissions` | ProjectPermissions! | Permissions for the current user on the resource | | `userPermissions` | ProjectPermissions! | Permissions for the current user on the resource |
| `visibility` | String | Visibility of the project | | `visibility` | String | Visibility of the project |
| `vulnerabilities` | VulnerabilityConnection | Vulnerabilities reported on the project | | `vulnerabilities` | VulnerabilityConnection | Vulnerabilities reported on the project |
......
...@@ -31,7 +31,7 @@ RSpec.describe GitlabSchema.types['Project'] do ...@@ -31,7 +31,7 @@ RSpec.describe GitlabSchema.types['Project'] do
container_expiration_policy service_desk_enabled service_desk_address container_expiration_policy service_desk_enabled service_desk_address
issue_status_counts terraform_states alert_management_integrations issue_status_counts terraform_states alert_management_integrations
container_repositories container_repositories_count container_repositories container_repositories_count
pipeline_analytics total_pipeline_duration squash_read_only pipeline_analytics squash_read_only
] ]
expect(described_class).to include_graphql_fields(*expected_fields) expect(described_class).to include_graphql_fields(*expected_fields)
......
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