@cubejs-backend/testing 0.35.74 → 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,29 @@ 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
|
+
|
|
54
|
+
checkinsPrevMonth: {
|
|
55
|
+
sql: `${checkinsCount}`,
|
|
56
|
+
type: 'sum',
|
|
57
|
+
rollingWindow: {
|
|
58
|
+
trailing: '60 day',
|
|
59
|
+
leading: '-30 day'
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
currentMonthToPrevRatio: {
|
|
64
|
+
sql: `${checkinsLastMonth} / NULLIF(1.0 * ${checkinsPrevMonth}, 0.0)`,
|
|
65
|
+
type: 'number',
|
|
66
|
+
},
|
|
67
|
+
|
|
45
68
|
uniqueSourceCount: {
|
|
46
69
|
sql: 'source',
|
|
47
70
|
type: 'countDistinct'
|
|
@@ -174,7 +197,7 @@ cube(`visitors`, {
|
|
|
174
197
|
},
|
|
175
198
|
partitionedRolling: {
|
|
176
199
|
type: 'rollup',
|
|
177
|
-
measureReferences: [checkinsRollingTotal, checkinsRolling2day, count],
|
|
200
|
+
measureReferences: [checkinsRollingTotal, checkinsRolling2day, checkinsPrevMonth, count, checkinsLastMonth],
|
|
178
201
|
dimensionReferences: [source],
|
|
179
202
|
timeDimensionReference: createdAt,
|
|
180
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
|
}
|