@cubejs-backend/testing 0.35.75 → 0.35.76
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
|
+
checkinsLastMonth: {
|
|
46
|
+
sql: `${checkinsCount}`,
|
|
47
|
+
type: 'sum',
|
|
48
|
+
rollingWindow: {
|
|
49
|
+
trailing: '30 day',
|
|
50
|
+
leading: '-1 day',
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
|
|
45
54
|
checkinsPrevMonth: {
|
|
46
55
|
sql: `${checkinsCount}`,
|
|
47
56
|
type: 'sum',
|
|
@@ -51,6 +60,11 @@ cube(`visitors`, {
|
|
|
51
60
|
}
|
|
52
61
|
},
|
|
53
62
|
|
|
63
|
+
currentMonthToPrevRatio: {
|
|
64
|
+
sql: `${checkinsLastMonth} / NULLIF(1.0 * ${checkinsPrevMonth}, 0.0)`,
|
|
65
|
+
type: 'number',
|
|
66
|
+
},
|
|
67
|
+
|
|
54
68
|
uniqueSourceCount: {
|
|
55
69
|
sql: 'source',
|
|
56
70
|
type: 'countDistinct'
|
|
@@ -183,7 +197,7 @@ cube(`visitors`, {
|
|
|
183
197
|
},
|
|
184
198
|
partitionedRolling: {
|
|
185
199
|
type: 'rollup',
|
|
186
|
-
measureReferences: [checkinsRollingTotal, checkinsRolling2day, checkinsPrevMonth, count],
|
|
200
|
+
measureReferences: [checkinsRollingTotal, checkinsRolling2day, checkinsPrevMonth, count, checkinsLastMonth],
|
|
187
201
|
dimensionReferences: [source],
|
|
188
202
|
timeDimensionReference: createdAt,
|
|
189
203
|
granularity: 'hour',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubejs-backend/testing",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.76",
|
|
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.
|
|
94
|
+
"@cubejs-backend/postgres-driver": "^0.35.76",
|
|
95
95
|
"@cubejs-backend/query-orchestrator": "^0.35.73",
|
|
96
|
-
"@cubejs-backend/schema-compiler": "^0.35.
|
|
96
|
+
"@cubejs-backend/schema-compiler": "^0.35.76",
|
|
97
97
|
"@cubejs-backend/shared": "^0.35.67",
|
|
98
|
-
"@cubejs-backend/testing-shared": "^0.35.
|
|
98
|
+
"@cubejs-backend/testing-shared": "^0.35.76",
|
|
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": "
|
|
147
|
+
"gitHead": "7538fe6ffc6a68e02a834be680fb9e976b9a8d05"
|
|
148
148
|
}
|