Commit f64eaae4 authored by Jan Provaznik's avatar Jan Provaznik

Merge branch 'cablett-expose-build-id-requirement-report' into 'master'

Remove requirement report `pipeline` attribute from GraphQL

See merge request gitlab-org/gitlab!34112
parents 2de95d11 89f116a9
......@@ -11813,11 +11813,6 @@ type TestReport {
"""
id: ID!
"""
Pipeline that created the test report
"""
pipeline: Pipeline
"""
State of the test report
"""
......
......@@ -34928,20 +34928,6 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "pipeline",
"description": "Pipeline that created the test report",
"args": [
],
"type": {
"kind": "OBJECT",
"name": "Pipeline",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "state",
"description": "State of the test report",
......@@ -1745,7 +1745,6 @@ Represents a requirement test report.
| `author` | User | Author of the test report |
| `createdAt` | Time! | Timestamp of when the test report was created |
| `id` | ID! | ID of the test report |
| `pipeline` | Pipeline | Pipeline that created the test report |
| `state` | TestReportState! | State of the test report |
## Timelog
......
......@@ -18,10 +18,6 @@ module Types
description: 'Author of the test report',
resolve: -> (obj, _args, _ctx) { Gitlab::Graphql::Loaders::BatchModelLoader.new(User, obj.author_id).find }
field :pipeline, Ci::PipelineType, null: true,
description: 'Pipeline that created the test report',
resolve: -> (obj, _args, _ctx) { Gitlab::Graphql::Loaders::BatchModelLoader.new(::Ci::Pipeline, obj.pipeline_id).find }
field :created_at, TimeType, null: false,
description: 'Timestamp of when the test report was created'
end
......
......@@ -3,7 +3,7 @@
require 'spec_helper'
RSpec.describe GitlabSchema.types['TestReport'] do
fields = %i[id state pipeline author created_at]
fields = %i[id state author created_at]
it { expect(described_class.graphql_name).to eq('TestReport') }
......
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