Skip to content

Commit 01a295d

Browse files
committed
remove unecessary changes
1 parent eefc32a commit 01a295d

2 files changed

Lines changed: 12 additions & 43 deletions

File tree

lib/public/views/QcFlags/ActiveColumns/gaqFlagsActiveColumns.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import { h, iconBan, iconWarning } from '/js/src/index.js';
2828
* @return {Component} display of aggregated quality
2929
*/
3030
const formatGeneralQuality = (contributingFlags, gaqDetectors) => {
31-
const missingFlags = contributingFlags.length !== gaqDetectors.length;
3231
const flagTypes = contributingFlags.map(({ flagType }) => flagType);
3332
const allGood = flagTypes.every(({ bad }) => !bad);
3433
const someBadNotReproducible = flagTypes.some(({ bad, mcReproducible }) => bad && !mcReproducible);
@@ -45,9 +44,7 @@ const formatGeneralQuality = (contributingFlags, gaqDetectors) => {
4544
: null;
4645

4746
let qualityDisplay = null;
48-
if (missingFlags) {
49-
qualityDisplay = badge('ND', { color: QcSummaryColors.INCALCULABLE_COVERAGE });
50-
} else if (allGood) {
47+
if (allGood) {
5148
qualityDisplay = badge('good', { color: QcSummaryColors.ALL_GOOD });
5249
} else if (someBadNotReproducible) {
5350
qualityDisplay = badge('bad', { color: QcSummaryColors.ALL_BAD });

test/public/qcFlags/gaqOverview.test.js

Lines changed: 11 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -66,64 +66,36 @@ module.exports = () => {
6666
// eslint-disable-next-line require-jsdoc
6767
const validateDate = (date) => date === '-' || !isNaN(dateAndTime.parse(date, 'DD/MM/YYYY hh:mm:ss'));
6868
const tableDataValidators = {
69-
generalQuality: (generalQuality) => ['ND', 'good', 'bad', 'MC.R'].includes(generalQuality),
69+
generalQuality: (generalQuality) => ['good', 'bad', 'MC.R'].includes(generalQuality),
7070
from: (timestamp) => timestamp === 'Whole run coverage' || validateDate(timestamp),
7171
to: (timestamp) => timestamp === 'Whole run coverage' || validateDate(timestamp),
7272
};
7373

7474
await validateTableData(page, new Map(Object.entries(tableDataValidators)));
7575

76-
await waitForTableLength(page, 7);
76+
await waitForTableLength(page, 3);
7777
expect(await getTableContent(page)).to.have.all.deep.ordered.members([
7878
[
79-
'ND',
80-
'08/08/2019\n13:00:00',
81-
'08/08/2019\n22:43:20',
82-
'',
83-
'',
84-
],
85-
[
86-
'ND',
79+
'MC.R',
8780
'08/08/2019\n22:43:20',
8881
'09/08/2019\n04:16:40',
8982
'Limited Acceptance MC Reproducible',
9083
'',
9184
],
9285
[
93-
'ND',
94-
'09/08/2019\n04:16:40',
95-
'09/08/2019\n05:40:00',
96-
'',
97-
'',
98-
],
99-
[
100-
'ND',
86+
'bad',
10187
'09/08/2019\n05:40:00',
10288
'09/08/2019\n07:03:20',
103-
'Limited Acceptance MC Not Reproducible',
104-
'',
105-
],
106-
[
107-
'ND',
108-
'09/08/2019\n07:03:20',
109-
'09/08/2019\n08:26:40',
110-
'',
89+
'Limited acceptance',
11190
'',
11291
],
11392
[
114-
'ND',
93+
'bad',
11594
'09/08/2019\n08:26:40',
11695
'09/08/2019\n09:50:00',
11796
'Bad',
11897
'',
11998
],
120-
[
121-
'ND',
122-
'09/08/2019\n09:50:00',
123-
'09/08/2019\n14:00:00',
124-
'',
125-
'',
126-
],
12799
]);
128100

129101
await waitForNavigation(page, () => pressElement(page, '#breadcrumb-data-pass-name a', true));
@@ -139,7 +111,7 @@ module.exports = () => {
139111
await waitForTableLength(page, 7);
140112
expect(await getTableContent(page)).to.have.all.deep.ordered.members([
141113
[
142-
'ND',
114+
'good',
143115
'08/08/2019\n13:00:00',
144116
'08/08/2019\n22:43:20',
145117
'',
@@ -153,7 +125,7 @@ module.exports = () => {
153125
'Good',
154126
],
155127
[
156-
'ND',
128+
'good',
157129
'09/08/2019\n04:16:40',
158130
'09/08/2019\n05:40:00',
159131
'',
@@ -163,11 +135,11 @@ module.exports = () => {
163135
'bad',
164136
'09/08/2019\n05:40:00',
165137
'09/08/2019\n07:03:20',
166-
'Limited Acceptance MC Not Reproducible',
138+
'Limited acceptance',
167139
'Good',
168140
],
169141
[
170-
'ND',
142+
'good',
171143
'09/08/2019\n07:03:20',
172144
'09/08/2019\n08:26:40',
173145
'',
@@ -181,7 +153,7 @@ module.exports = () => {
181153
'Good',
182154
],
183155
[
184-
'ND',
156+
'good',
185157
'09/08/2019\n09:50:00',
186158
'09/08/2019\n14:00:00',
187159
'',

0 commit comments

Comments
 (0)