@stryker-mutator/dashboard-data-access 0.20.3 → 0.20.4
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.
|
@@ -27,8 +27,8 @@ export class MutationTestingReport {
|
|
|
27
27
|
}
|
|
28
28
|
static identify(entity, partitionKeyValue, rowKeyValue) {
|
|
29
29
|
const versionSplit = partitionKeyValue.lastIndexOf('/');
|
|
30
|
-
entity.projectName = partitionKeyValue.
|
|
31
|
-
entity.version = partitionKeyValue.
|
|
30
|
+
entity.projectName = partitionKeyValue.substring(0, versionSplit);
|
|
31
|
+
entity.version = partitionKeyValue.substring(versionSplit + 1);
|
|
32
32
|
entity.moduleName = rowKeyValue;
|
|
33
33
|
}
|
|
34
34
|
static persistedFields = ['mutationScore'];
|
|
@@ -59,11 +59,14 @@ export class MutationTestingReportService {
|
|
|
59
59
|
}));
|
|
60
60
|
}
|
|
61
61
|
async #tryAggregateProjectReport(id) {
|
|
62
|
-
const projectMutationScoreModel = await
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
const [projectMutationScoreModel, resultsByModule] = await Promise.all([
|
|
63
|
+
this.#mutationScoreMapper.findOne(id),
|
|
64
|
+
this.#mutationScoreMapper
|
|
65
|
+
.findAll(DashboardQuery.create(MutationTestingReport)
|
|
66
|
+
.wherePartitionKeyEquals(id)
|
|
67
|
+
.whereRowKeyNotEquals({ moduleName: undefined }))
|
|
68
|
+
.then(async (moduleScoreResults) => Object.fromEntries((await Promise.all(moduleScoreResults.map(async (score) => [score.model.moduleName, await this.#resultMapper.findOne(score.model)]))).filter(moduleHasResult))),
|
|
69
|
+
]);
|
|
67
70
|
if (Object.keys(resultsByModule).length) {
|
|
68
71
|
const projectResult = aggregateResultsByModule(resultsByModule);
|
|
69
72
|
const projectReport = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryker-mutator/dashboard-data-access",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "This package contains the data access layer of the stryker dashboard application.",
|
|
6
6
|
"scripts": {
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"@azure/core-rest-pipeline": "1.23.0",
|
|
29
29
|
"@azure/data-tables": "13.3.2",
|
|
30
30
|
"@azure/storage-blob": "12.31.0",
|
|
31
|
-
"@stryker-mutator/dashboard-common": "0.20.
|
|
31
|
+
"@stryker-mutator/dashboard-common": "0.20.4",
|
|
32
32
|
"mutation-testing-metrics": "3.7.3",
|
|
33
33
|
"mutation-testing-report-schema": "3.7.3"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "48e1e0ee49fb77ce3130d3a98eb14a9dfd1e75c8"
|
|
36
36
|
}
|