Skip to content

Commit 2ccc89d

Browse files
committed
Simplify sub errors
1 parent 8321e42 commit 2ccc89d

6 files changed

Lines changed: 0 additions & 91 deletions

File tree

pkg/platform/api/buildplanner/request/commit.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,7 @@ query ($commitID: String!, $organization: String!, $project: String!, $target: S
163163
subErrors {
164164
__typename
165165
buildExprPath
166-
... on RemediableError {
167-
possibleRemediations {
168-
description
169-
suggestedPriority
170-
}
171-
}
172166
... on GenericSolveError {
173-
path
174167
message
175168
isTransient
176169
validationErrors {
@@ -179,19 +172,13 @@ query ($commitID: String!, $organization: String!, $project: String!, $target: S
179172
}
180173
}
181174
... on RemediableSolveError {
182-
path
183175
message
184176
isTransient
185177
errorType
186178
validationErrors {
187179
error
188180
jsonPath
189181
}
190-
suggestedRemediations {
191-
remediationType
192-
command
193-
parameters
194-
}
195182
}
196183
}
197184
}

pkg/platform/api/buildplanner/request/createproject.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,7 @@ mutation ($organization: String!, $project: String!, $private: Boolean!, $expr:
3737
subErrors {
3838
__typename
3939
buildExprPath
40-
... on RemediableError {
41-
possibleRemediations {
42-
description
43-
suggestedPriority
44-
}
45-
}
4640
... on GenericSolveError {
47-
path
4841
message
4942
isTransient
5043
validationErrors {
@@ -53,19 +46,13 @@ mutation ($organization: String!, $project: String!, $private: Boolean!, $expr:
5346
}
5447
}
5548
... on RemediableSolveError {
56-
path
5749
message
5850
isTransient
5951
errorType
6052
validationErrors {
6153
error
6254
jsonPath
6355
}
64-
suggestedRemediations {
65-
remediationType
66-
command
67-
parameters
68-
}
6956
}
7057
}
7158
}

pkg/platform/api/buildplanner/request/evaluate.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,7 @@ mutation ($organization: String!, $project: String!, $commitId: String!, $target
3232
subErrors {
3333
__typename
3434
buildExprPath
35-
... on RemediableError {
36-
possibleRemediations {
37-
description
38-
suggestedPriority
39-
}
40-
}
4135
... on GenericSolveError {
42-
path
4336
message
4437
isTransient
4538
validationErrors {
@@ -48,19 +41,13 @@ mutation ($organization: String!, $project: String!, $commitId: String!, $target
4841
}
4942
}
5043
... on RemediableSolveError {
51-
path
5244
message
5345
isTransient
5446
errorType
5547
validationErrors {
5648
error
5749
jsonPath
5850
}
59-
suggestedRemediations {
60-
remediationType
61-
command
62-
parameters
63-
}
6451
}
6552
}
6653
}

pkg/platform/api/buildplanner/request/mergecommit.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,7 @@ mutation ($organization: String!, $project: String!, $targetRef: String!, $other
3939
subErrors {
4040
__typename
4141
buildExprPath
42-
... on RemediableError {
43-
possibleRemediations {
44-
description
45-
suggestedPriority
46-
}
47-
}
4842
... on GenericSolveError {
49-
path
5043
message
5144
isTransient
5245
validationErrors {
@@ -55,19 +48,13 @@ mutation ($organization: String!, $project: String!, $targetRef: String!, $other
5548
}
5649
}
5750
... on RemediableSolveError {
58-
path
5951
message
6052
isTransient
6153
errorType
6254
validationErrors {
6355
error
6456
jsonPath
6557
}
66-
suggestedRemediations {
67-
remediationType
68-
command
69-
parameters
70-
}
7158
}
7259
}
7360
}

pkg/platform/api/buildplanner/request/revertcommit.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,7 @@ mutation ($organization: String!, $project: String!, $commitId: String!, $target
4444
subErrors {
4545
__typename
4646
buildExprPath
47-
... on RemediableError {
48-
possibleRemediations {
49-
description
50-
suggestedPriority
51-
}
52-
}
5347
... on GenericSolveError {
54-
path
5548
message
5649
isTransient
5750
validationErrors {
@@ -60,19 +53,13 @@ mutation ($organization: String!, $project: String!, $commitId: String!, $target
6053
}
6154
}
6255
... on RemediableSolveError {
63-
path
6456
message
6557
isTransient
6658
errorType
6759
validationErrors {
6860
error
6961
jsonPath
7062
}
71-
suggestedRemediations {
72-
remediationType
73-
command
74-
parameters
75-
}
7663
}
7764
}
7865
}

pkg/platform/api/buildplanner/request/stagecommit.go

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,7 @@ mutation ($organization: String!, $project: String!, $parentCommit: ID!, $descri
167167
subErrors {
168168
__typename
169169
buildExprPath
170-
... on RemediableError {
171-
possibleRemediations {
172-
description
173-
suggestedPriority
174-
}
175-
}
176170
... on GenericSolveError {
177-
path
178171
message
179172
isTransient
180173
validationErrors {
@@ -183,19 +176,13 @@ mutation ($organization: String!, $project: String!, $parentCommit: ID!, $descri
183176
}
184177
}
185178
... on RemediableSolveError {
186-
path
187179
message
188180
isTransient
189181
errorType
190182
validationErrors {
191183
error
192184
jsonPath
193185
}
194-
suggestedRemediations {
195-
remediationType
196-
command
197-
parameters
198-
}
199186
}
200187
}
201188
}
@@ -210,14 +197,7 @@ mutation ($organization: String!, $project: String!, $parentCommit: ID!, $descri
210197
subErrors {
211198
__typename
212199
buildExprPath
213-
... on RemediableError {
214-
possibleRemediations {
215-
description
216-
suggestedPriority
217-
}
218-
}
219200
... on GenericSolveError {
220-
path
221201
message
222202
isTransient
223203
validationErrors {
@@ -226,19 +206,13 @@ mutation ($organization: String!, $project: String!, $parentCommit: ID!, $descri
226206
}
227207
}
228208
... on RemediableSolveError {
229-
path
230209
message
231210
isTransient
232211
errorType
233212
validationErrors {
234213
error
235214
jsonPath
236215
}
237-
suggestedRemediations {
238-
remediationType
239-
command
240-
parameters
241-
}
242216
}
243217
}
244218
}

0 commit comments

Comments
 (0)