@cubejs-backend/testing 0.35.74 → 0.35.75

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.
@@ -42,6 +42,15 @@ cube(`visitors`, {
42
42
  }
43
43
  },
44
44
 
45
+ checkinsPrevMonth: {
46
+ sql: `${checkinsCount}`,
47
+ type: 'sum',
48
+ rollingWindow: {
49
+ trailing: '60 day',
50
+ leading: '-30 day'
51
+ }
52
+ },
53
+
45
54
  uniqueSourceCount: {
46
55
  sql: 'source',
47
56
  type: 'countDistinct'
@@ -174,7 +183,7 @@ cube(`visitors`, {
174
183
  },
175
184
  partitionedRolling: {
176
185
  type: 'rollup',
177
- measureReferences: [checkinsRollingTotal, checkinsRolling2day, count],
186
+ measureReferences: [checkinsRollingTotal, checkinsRolling2day, checkinsPrevMonth, count],
178
187
  dimensionReferences: [source],
179
188
  timeDimensionReference: createdAt,
180
189
  granularity: 'hour',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubejs-backend/testing",
3
- "version": "0.35.74",
3
+ "version": "0.35.75",
4
4
  "description": "Cube.js e2e tests",
5
5
  "author": "Cube Dev, Inc.",
6
6
  "license": "Apache-2.0",
@@ -91,11 +91,11 @@
91
91
  "dependencies": {
92
92
  "@cubejs-backend/cubestore-driver": "^0.35.73",
93
93
  "@cubejs-backend/dotenv": "^9.0.2",
94
- "@cubejs-backend/postgres-driver": "^0.35.74",
94
+ "@cubejs-backend/postgres-driver": "^0.35.75",
95
95
  "@cubejs-backend/query-orchestrator": "^0.35.73",
96
- "@cubejs-backend/schema-compiler": "^0.35.74",
96
+ "@cubejs-backend/schema-compiler": "^0.35.75",
97
97
  "@cubejs-backend/shared": "^0.35.67",
98
- "@cubejs-backend/testing-shared": "^0.35.74",
98
+ "@cubejs-backend/testing-shared": "^0.35.75",
99
99
  "@cubejs-client/ws-transport": "^0.35.23",
100
100
  "dedent": "^0.7.0",
101
101
  "fs-extra": "^8.1.0",
@@ -144,5 +144,5 @@
144
144
  "eslintConfig": {
145
145
  "extends": "../cubejs-linter"
146
146
  },
147
- "gitHead": "b67a2f12b09772756680b62fc6edd14c5a5b9b63"
147
+ "gitHead": "c0e85e61f7acd0c5bf9ce99d4ee229e9374f0840"
148
148
  }