testilo 34.0.1 → 34.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
<tr><th>Page</th><td>__org__</td></tr>
|
|
22
22
|
<tr><th>URL</th><td>__url__</td></tr>
|
|
23
23
|
<tr><th>Requester</th><td>__requester__</td></tr>
|
|
24
|
+
<tr><th>Device</th><td>__device__</td></tr>
|
|
24
25
|
<tr><th>Test date</th><td>__dateSlash__</td></tr>
|
|
25
26
|
<tr><th>Score</th><td>__total__</td></tr>
|
|
26
27
|
<tr><th>Tested by</th><td>Testaro, procedure <code>__ts__</code></td></tr>
|
|
@@ -14,7 +14,7 @@ const {getNowDate, getNowDateSlash} = require('../../util');
|
|
|
14
14
|
// CONSTANTS
|
|
15
15
|
|
|
16
16
|
// Digester ID.
|
|
17
|
-
const digesterID = '
|
|
17
|
+
const digesterID = 'tdp42';
|
|
18
18
|
// Newline with indentations.
|
|
19
19
|
const innerJoiner = '\n ';
|
|
20
20
|
|
|
@@ -34,7 +34,7 @@ const getIssueScoreRow = (issueConstants, issueDetails) => {
|
|
|
34
34
|
};
|
|
35
35
|
// Adds parameters to a query for a digest.
|
|
36
36
|
const populateQuery = (report, query) => {
|
|
37
|
-
const {id, sources, score} = report;
|
|
37
|
+
const {acts, id, sources, score} = report;
|
|
38
38
|
const {script, target, requester} = sources;
|
|
39
39
|
const {scoreProcID, summary, details} = score;
|
|
40
40
|
query.ts = script;
|
|
@@ -46,6 +46,13 @@ const populateQuery = (report, query) => {
|
|
|
46
46
|
query.org = target.what;
|
|
47
47
|
query.url = target.which;
|
|
48
48
|
query.requester = requester;
|
|
49
|
+
const firstLaunch = acts.find(act => act.type === 'launch');
|
|
50
|
+
if (firstLaunch) {
|
|
51
|
+
query.device = firstLaunch.deviceID || 'unknown';
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
query.device = 'unknown';
|
|
55
|
+
}
|
|
49
56
|
query.reportURL = process.env.SCORED_REPORT_URL.replace('__id__', id);
|
|
50
57
|
// Add values for the score-summary table to the query.
|
|
51
58
|
const rows = {
|