Skip to content

Commit a199c1c

Browse files
committed
Cleanup historical report
1 parent 8df3978 commit a199c1c

File tree

6 files changed

+0
-162
lines changed

6 files changed

+0
-162
lines changed

client/components/TestRun/queries.js

Lines changed: 0 additions & 150 deletions
Original file line numberDiff line numberDiff line change
@@ -85,36 +85,6 @@ export const TEST_RUN_PAGE_QUERY = gql`
8585
...TestFieldsAll
8686
renderableContent
8787
}
88-
historicalReport {
89-
id
90-
at {
91-
...AtFields
92-
}
93-
browser {
94-
...BrowserFields
95-
}
96-
exactAtVersion {
97-
...AtVersionFields
98-
}
99-
minimumAtVersion {
100-
...AtVersionFields
101-
}
102-
finalizedTestResults {
103-
...TestResultFields
104-
test {
105-
...TestFieldsSimple
106-
}
107-
scenarioResults {
108-
...ScenarioResultFieldsAll
109-
}
110-
atVersion {
111-
...AtVersionFields
112-
}
113-
browserVersion {
114-
...BrowserVersionFields
115-
}
116-
}
117-
}
11888
}
11989
}
12090
me {
@@ -172,36 +142,6 @@ export const TEST_RUN_PAGE_ANON_QUERY = gql`
172142
...TestFieldsAll
173143
renderableContent
174144
}
175-
historicalReport {
176-
id
177-
at {
178-
...AtFields
179-
}
180-
browser {
181-
...BrowserFields
182-
}
183-
exactAtVersion {
184-
...AtVersionFields
185-
}
186-
minimumAtVersion {
187-
...AtVersionFields
188-
}
189-
finalizedTestResults {
190-
...TestResultFields
191-
test {
192-
...TestFieldsSimple
193-
}
194-
scenarioResults {
195-
...ScenarioResultFieldsAll
196-
}
197-
atVersion {
198-
...AtVersionFields
199-
}
200-
browserVersion {
201-
...BrowserVersionFields
202-
}
203-
}
204-
}
205145
}
206146
}
207147
`;
@@ -287,36 +227,6 @@ export const FIND_OR_CREATE_TEST_RESULT_MUTATION = gql`
287227
runnableTests {
288228
...TestFieldsAll
289229
}
290-
historicalReport {
291-
id
292-
at {
293-
...AtFields
294-
}
295-
browser {
296-
...BrowserFields
297-
}
298-
exactAtVersion {
299-
...AtVersionFields
300-
}
301-
minimumAtVersion {
302-
...AtVersionFields
303-
}
304-
finalizedTestResults {
305-
...TestResultFields
306-
test {
307-
...TestFieldsSimple
308-
}
309-
scenarioResults {
310-
...ScenarioResultFieldsAll
311-
}
312-
atVersion {
313-
...AtVersionFields
314-
}
315-
browserVersion {
316-
...BrowserVersionFields
317-
}
318-
}
319-
}
320230
}
321231
}
322232
}
@@ -408,36 +318,6 @@ export const SAVE_TEST_RESULT_MUTATION = gql`
408318
runnableTests {
409319
...TestFieldsAll
410320
}
411-
historicalReport {
412-
id
413-
at {
414-
...AtFields
415-
}
416-
browser {
417-
...BrowserFields
418-
}
419-
exactAtVersion {
420-
...AtVersionFields
421-
}
422-
minimumAtVersion {
423-
...AtVersionFields
424-
}
425-
finalizedTestResults {
426-
...TestResultFields
427-
test {
428-
...TestFieldsSimple
429-
}
430-
scenarioResults {
431-
...ScenarioResultFieldsAll
432-
}
433-
atVersion {
434-
...AtVersionFields
435-
}
436-
browserVersion {
437-
...BrowserVersionFields
438-
}
439-
}
440-
}
441321
}
442322
}
443323
}
@@ -529,36 +409,6 @@ export const SUBMIT_TEST_RESULT_MUTATION = gql`
529409
runnableTests {
530410
...TestFieldsAll
531411
}
532-
historicalReport {
533-
id
534-
at {
535-
...AtFields
536-
}
537-
browser {
538-
...BrowserFields
539-
}
540-
exactAtVersion {
541-
...AtVersionFields
542-
}
543-
minimumAtVersion {
544-
...AtVersionFields
545-
}
546-
finalizedTestResults {
547-
...TestResultFields
548-
test {
549-
...TestFieldsSimple
550-
}
551-
scenarioResults {
552-
...ScenarioResultFieldsAll
553-
}
554-
atVersion {
555-
...AtVersionFields
556-
}
557-
browserVersion {
558-
...BrowserVersionFields
559-
}
560-
}
561-
}
562412
}
563413
}
564414
}

server/controllers/AutomationController.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,6 @@ const getApprovedFinalizedTestResults = async (testPlanRun, context) => {
183183
});
184184
}
185185

186-
// historicalReportId removed; no single historical report fallback here
187-
188186
return null;
189187
};
190188

server/graphql-schema.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,10 +1251,6 @@ const graphqlSchema = gql`
12511251
"""
12521252
recommendedAtVersion: AtVersion
12531253
"""
1254-
The historical report that this report is based on (for rerun reports).
1255-
"""
1256-
historicalReport: TestPlanReport
1257-
"""
12581254
Whether this report is a rerun of a previous report.
12591255
"""
12601256
isRerun: Boolean!
@@ -1303,7 +1299,6 @@ const graphqlSchema = gql`
13031299
minimumAtVersionId: ID
13041300
browserId: ID!
13051301
copyResultsFromTestPlanVersionId: ID
1306-
historicalReportId: ID
13071302
}
13081303
13091304
"""

server/models/TestPlanReport.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ module.exports = function (sequelize, DataTypes) {
9898
foreignKey: 'testPlanReportId',
9999
sourceKey: 'id'
100100
});
101-
102-
// historicalReportId removed; historicalReport association removed
103101
};
104102

105103
return Model;

server/resolvers/TestPlanReport/historicalReportResolver.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

server/resolvers/TestPlanReport/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const latestAtVersionReleasedAt = require('./latestAtVersionReleasedAtResolver')
1212
const recommendedAtVersion = require('./recommendedAtVersionResolver');
1313
const isFinal = require('./isFinalResolver');
1414
const isRerun = require('./isRerunResolver');
15-
const historicalReport = require('./historicalReportResolver');
1615
const exactAtVersion = require('./exactAtVersionResolver');
1716
const minimumAtVersion = require('./minimumAtVersionResolver');
1817
const vendorReviewStatus = require('./vendorReviewStatusResolver');
@@ -34,6 +33,5 @@ module.exports = {
3433
recommendedAtVersion,
3534
isFinal,
3635
isRerun,
37-
historicalReport,
3836
vendorReviewStatus
3937
};

0 commit comments

Comments
 (0)