Skip to content

Commit 389ef91

Browse files
committed
Sort labels
1 parent 8c8e0e1 commit 389ef91

File tree

1 file changed

+40
-40
lines changed

1 file changed

+40
-40
lines changed

src/reporter/labels.js

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,41 @@ export const DEPRECATED_MANAGED_BY_OTA_MARKER = '[managed by OTA]';
33
export const MANAGED_BY_OTA_MARKER = '- Auto-managed by OTA engine';
44

55
export const LABELS = {
6+
DNS_LOOKUP_FAILURE: {
7+
name: 'domain lookup failed',
8+
color: 'FFFFFF',
9+
description: 'Fetching failed because the domain temporarily failed to resolve on DNS',
10+
},
11+
DNS_RESOLUTION_FAILURE: {
12+
name: 'domain resolution failed',
13+
color: 'FFFFFF',
14+
description: 'Fetching failed because the domain fails to resolve on DNS',
15+
},
16+
DOCUMENT_LOAD_TIMEOUT: {
17+
name: 'document load timed out',
18+
color: 'FFFFFF',
19+
description: 'Fetching failed with a timeout error',
20+
},
21+
DOCUMENT_NOT_FOUND: {
22+
name: 'document not found',
23+
color: 'FFFFFF',
24+
description: 'Fetch location is outdated',
25+
},
26+
DOCUMENT_STRUCTURE_CHANGE: {
27+
name: 'document structure changed',
28+
color: 'FFFFFF',
29+
description: 'Extraction selectors are outdated',
30+
},
31+
EMPTY_CONTENT: {
32+
name: 'document was empty',
33+
color: 'FFFFFF',
34+
description: 'Fetching failed because the server returns an empty content',
35+
},
36+
EMPTY_RESPONSE: {
37+
name: 'received empty response',
38+
color: 'FFFFFF',
39+
description: 'Fetching failed because server returned an empty response body',
40+
},
641
HTTP_403: {
742
name: 'document access forbidden',
843
color: 'FFFFFF',
@@ -28,26 +63,16 @@ export const LABELS = {
2863
color: 'FFFFFF',
2964
description: 'Fetching failed with a 503 (service unavailable) HTTP code',
3065
},
66+
INVALID_SELECTOR: {
67+
name: 'invalid selector',
68+
color: 'FFFFFF',
69+
description: 'Some selectors cannot be understood by the engine',
70+
},
3171
SSL_EXPIRED: {
3272
name: 'certificate expired',
3373
color: 'FFFFFF',
3474
description: 'Fetching failed because the domain SSL certificate has expired',
3575
},
36-
DNS_LOOKUP_FAILURE: {
37-
name: 'domain lookup failed',
38-
color: 'FFFFFF',
39-
description: 'Fetching failed because the domain temporarily failed to resolve on DNS',
40-
},
41-
DNS_RESOLUTION_FAILURE: {
42-
name: 'domain resolution failed',
43-
color: 'FFFFFF',
44-
description: 'Fetching failed because the domain fails to resolve on DNS',
45-
},
46-
EMPTY_RESPONSE: {
47-
name: 'received empty response',
48-
color: 'FFFFFF',
49-
description: 'Fetching failed because server returned an empty response body',
50-
},
5176
SSL_INVALID: {
5277
name: 'certificate was invalid',
5378
color: 'FFFFFF',
@@ -58,36 +83,11 @@ export const LABELS = {
5883
color: 'FFFFFF',
5984
description: 'Fetching failed because of too many redirects',
6085
},
61-
DOCUMENT_LOAD_TIMEOUT: {
62-
name: 'document load timed out',
63-
color: 'FFFFFF',
64-
description: 'Fetching failed with a timeout error',
65-
},
66-
EMPTY_CONTENT: {
67-
name: 'document was empty',
68-
color: 'FFFFFF',
69-
description: 'Fetching failed because the server returns an empty content',
70-
},
7186
UNKNOWN_FAILURE: {
7287
name: 'failed for unknown reason',
7388
color: 'FFFFFF',
7489
description: 'Fetching failed for an undetermined reason that needs investigation',
7590
},
76-
DOCUMENT_STRUCTURE_CHANGE: {
77-
name: 'document structure changed',
78-
color: 'FFFFFF',
79-
description: 'Extraction selectors are outdated',
80-
},
81-
DOCUMENT_NOT_FOUND: {
82-
name: 'document not found',
83-
color: 'FFFFFF',
84-
description: 'Fetch location is outdated',
85-
},
86-
INVALID_SELECTOR: {
87-
name: 'invalid selector',
88-
color: 'FFFFFF',
89-
description: 'Some selectors cannot be understood by the engine',
90-
},
9191
NEEDS_INTERVENTION: {
9292
name: '⚠ needs intervention',
9393
color: 'FDD42A',

0 commit comments

Comments
 (0)