@things-factory/dataset 8.0.0-alpha.30 → 8.0.0-alpha.31

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/dataset",
3
- "version": "8.0.0-alpha.30",
3
+ "version": "8.0.0-alpha.31",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -42,19 +42,19 @@
42
42
  "@operato/utils": "^8.0.0-alpha",
43
43
  "@things-factory/auth-base": "^8.0.0-alpha.29",
44
44
  "@things-factory/aws-base": "^8.0.0-alpha.29",
45
- "@things-factory/board-service": "^8.0.0-alpha.30",
45
+ "@things-factory/board-service": "^8.0.0-alpha.31",
46
46
  "@things-factory/env": "^8.0.0-alpha.8",
47
- "@things-factory/integration-base": "^8.0.0-alpha.30",
48
- "@things-factory/organization": "^8.0.0-alpha.29",
47
+ "@things-factory/integration-base": "^8.0.0-alpha.31",
48
+ "@things-factory/organization": "^8.0.0-alpha.31",
49
49
  "@things-factory/personalization": "^8.0.0-alpha.29",
50
- "@things-factory/scheduler-client": "^8.0.0-alpha.29",
50
+ "@things-factory/scheduler-client": "^8.0.0-alpha.31",
51
51
  "@things-factory/shell": "^8.0.0-alpha.29",
52
52
  "@things-factory/work-shift": "^8.0.0-alpha.29",
53
- "@things-factory/worklist": "^8.0.0-alpha.30",
53
+ "@things-factory/worklist": "^8.0.0-alpha.31",
54
54
  "cron-parser": "^4.3.0",
55
55
  "moment-timezone": "^0.5.45",
56
56
  "simple-statistics": "^7.8.3",
57
57
  "statistics": "^3.3.0"
58
58
  },
59
- "gitHead": "f01fac46630cf06e1697edc185dfb4cddcd61365"
59
+ "gitHead": "3d8df8131f3b0c1898c525d2928b7f9dc846840e"
60
60
  }
@@ -50,7 +50,7 @@ export class DataOocQuery {
50
50
  version: dataOoc.dataSetVersion
51
51
  }
52
52
  }))
53
- return dataSetHistory?.dataItems || []
53
+ return dataSetHistory?.dataItems.filter(item => item.active) || []
54
54
  }
55
55
 
56
56
  @FieldResolver(type => DataSample)
@@ -175,7 +175,7 @@ export class DataSampleQuery {
175
175
  }
176
176
  }))
177
177
 
178
- return dataSetHistory?.dataItems || []
178
+ return dataSetHistory?.dataItems.filter(item => item.active) || []
179
179
  }
180
180
 
181
181
  @FieldResolver(type => DataSet)
@@ -154,7 +154,7 @@ export class DataSummaryQuery {
154
154
  async dataItems(@Root() dataSummary: DataSummary): Promise<DataItem[]> {
155
155
  const dataSet = dataSummary.dataSetId && (await getRepository(DataSet).findOneBy({ id: dataSummary.dataSetId }))
156
156
 
157
- return dataSet?.dataItems || []
157
+ return dataSet?.dataItems.filter(item => item.active) || []
158
158
  }
159
159
 
160
160
  @FieldResolver(type => DataSet)