@stryker-mutator/dashboard-data-access 0.14.4-pr-888.18 → 0.14.4-pr-888.19

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.
@@ -6,15 +6,11 @@ export class DashboardQuery {
6
6
  this.whereConditions = whereConditions;
7
7
  }
8
8
  whereRowKeyNotEquals(rowKey) {
9
- const whereCondition = {
10
- condition: odata `not(RowKey eq ${encodeKey(this.ModelClass.createRowKey(rowKey) || '')})`,
11
- };
9
+ const whereCondition = odata `RowKey ne ${encodeKey(this.ModelClass.createRowKey(rowKey) || '')}`;
12
10
  return new DashboardQuery(this.ModelClass, [...this.whereConditions, whereCondition]);
13
11
  }
14
12
  wherePartitionKeyEquals(partitionKey) {
15
- const whereCondition = {
16
- condition: odata `PartitionKey eq ${encodeKey(this.ModelClass.createPartitionKey(partitionKey))}`,
17
- };
13
+ const whereCondition = odata `PartitionKey eq ${encodeKey(this.ModelClass.createPartitionKey(partitionKey))}`;
18
14
  return new DashboardQuery(this.ModelClass, [...this.whereConditions, whereCondition]);
19
15
  }
20
16
  static create(ModelClass) {
@@ -23,10 +19,10 @@ export class DashboardQuery {
23
19
  build() {
24
20
  return this.whereConditions.reduce((tableQuery, whereCondition, index) => {
25
21
  if (index === 0) {
26
- return { filter: whereCondition.condition };
22
+ return { filter: whereCondition };
27
23
  }
28
24
  else {
29
- return { filter: `${tableQuery.filter} and ${whereCondition.condition}` };
25
+ return { filter: `${tableQuery.filter} and ${whereCondition}` };
30
26
  }
31
27
  }, {});
32
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryker-mutator/dashboard-data-access",
3
- "version": "0.14.4-pr-888.18",
3
+ "version": "0.14.4-pr-888.19",
4
4
  "type": "module",
5
5
  "description": "This package contains the data access layer of the stryker dashboard application.",
6
6
  "scripts": {
@@ -24,9 +24,9 @@
24
24
  "dependencies": {
25
25
  "@azure/data-tables": "13.2.2",
26
26
  "@azure/storage-blob": "12.24.0",
27
- "@stryker-mutator/dashboard-common": "0.14.4-pr-888.18",
27
+ "@stryker-mutator/dashboard-common": "0.14.4-pr-888.19",
28
28
  "mutation-testing-metrics": "3.2.0",
29
29
  "mutation-testing-report-schema": "3.1.1"
30
30
  },
31
- "gitHead": "21dd5233330ea3c2a63b2e68ce6a9b55cac95a30"
31
+ "gitHead": "59001e9d770d648b3e1a394a51f3b317cb5bb407"
32
32
  }