@cubejs-backend/testing 1.6.29 → 1.6.30
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.
|
@@ -24,6 +24,10 @@ cube(`Orders`, {
|
|
|
24
24
|
type: `count_distinct`,
|
|
25
25
|
sql: `CASE WHEN ${Orders.status} = 'shipped' THEN ${CUBE}.id END`
|
|
26
26
|
},
|
|
27
|
+
approxOrderCount: {
|
|
28
|
+
type: `count_distinct_approx`,
|
|
29
|
+
sql: `CASE WHEN ${Orders.status} = 'shipped' THEN ${CUBE}.id END`
|
|
30
|
+
},
|
|
27
31
|
netCollectionCompleted: {
|
|
28
32
|
type: `sum`,
|
|
29
33
|
sql: `CASE WHEN ${Orders.status} = 'shipped' THEN ${CUBE}.amount END`
|
|
@@ -50,6 +54,24 @@ cube(`Orders`, {
|
|
|
50
54
|
format: `currency`,
|
|
51
55
|
currency: `usd`,
|
|
52
56
|
},
|
|
57
|
+
avgAmount: {
|
|
58
|
+
sql: `amount`,
|
|
59
|
+
type: `avg`,
|
|
60
|
+
format: `currency`,
|
|
61
|
+
currency: `usd`,
|
|
62
|
+
},
|
|
63
|
+
minAmount: {
|
|
64
|
+
sql: `amount`,
|
|
65
|
+
type: `min`,
|
|
66
|
+
format: `currency`,
|
|
67
|
+
currency: `usd`,
|
|
68
|
+
},
|
|
69
|
+
maxAmount: {
|
|
70
|
+
sql: `amount`,
|
|
71
|
+
type: `max`,
|
|
72
|
+
format: `currency`,
|
|
73
|
+
currency: `usd`,
|
|
74
|
+
},
|
|
53
75
|
toRemove: {
|
|
54
76
|
type: `count`,
|
|
55
77
|
},
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
cube('Orders', {
|
|
2
|
+
sql: `SELECT 1 as id, 100 as amount, 'secret123' as internal_code, 'premium' as tier`,
|
|
3
|
+
|
|
4
|
+
measures: {
|
|
5
|
+
count: {
|
|
6
|
+
type: 'count',
|
|
7
|
+
},
|
|
8
|
+
totalAmount: {
|
|
9
|
+
sql: 'amount',
|
|
10
|
+
type: 'sum',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
|
|
14
|
+
dimensions: {
|
|
15
|
+
id: {
|
|
16
|
+
sql: 'id',
|
|
17
|
+
type: 'number',
|
|
18
|
+
primaryKey: true,
|
|
19
|
+
},
|
|
20
|
+
amount: {
|
|
21
|
+
sql: 'amount',
|
|
22
|
+
type: 'number',
|
|
23
|
+
},
|
|
24
|
+
internalCode: {
|
|
25
|
+
sql: 'internal_code',
|
|
26
|
+
type: 'string',
|
|
27
|
+
},
|
|
28
|
+
tier: {
|
|
29
|
+
sql: 'tier',
|
|
30
|
+
type: 'string',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
accessPolicy: [
|
|
35
|
+
{
|
|
36
|
+
role: '*',
|
|
37
|
+
memberLevel: {
|
|
38
|
+
includes: [],
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
role: 'tenant-a',
|
|
43
|
+
memberLevel: {
|
|
44
|
+
includes: '*',
|
|
45
|
+
excludes: ['tier'],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
role: 'tenant-b',
|
|
50
|
+
memberLevel: {
|
|
51
|
+
includes: '*',
|
|
52
|
+
excludes: ['internalCode'],
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubejs-backend/testing",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.30",
|
|
4
4
|
"description": "Cube.js e2e tests",
|
|
5
5
|
"author": "Cube Dev, Inc.",
|
|
6
6
|
"repository": {
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"smoke:vertica": "jest --verbose -i dist/test/smoke-vertica.test.js",
|
|
84
84
|
"smoke:vertica:snapshot": "jest --verbose --updateSnapshot -i dist/test/smoke-vertica.test.js",
|
|
85
85
|
"smoke:rbac": "TZ=UTC jest --verbose -i dist/test/smoke-rbac.test.js",
|
|
86
|
+
"smoke:rbac-graphql": "TZ=UTC jest --verbose -i dist/test/smoke-rbac-graphql.test.js",
|
|
86
87
|
"smoke:cubesql": "TZ=UTC jest --verbose --forceExit -i dist/test/smoke-cubesql.test.js",
|
|
87
88
|
"smoke:cubesql:snapshot": "TZ=UTC jest --verbose --forceExit --updateSnapshot -i dist/test/smoke-cubesql.test.js",
|
|
88
89
|
"smoke:prestodb": "jest --verbose -i dist/test/smoke-prestodb.test.js",
|
|
@@ -99,15 +100,15 @@
|
|
|
99
100
|
"birdbox-fixtures"
|
|
100
101
|
],
|
|
101
102
|
"dependencies": {
|
|
102
|
-
"@cubejs-backend/cubestore-driver": "1.6.
|
|
103
|
+
"@cubejs-backend/cubestore-driver": "1.6.30",
|
|
103
104
|
"@cubejs-backend/dotenv": "^9.0.2",
|
|
104
|
-
"@cubejs-backend/ksql-driver": "1.6.
|
|
105
|
-
"@cubejs-backend/postgres-driver": "1.6.
|
|
106
|
-
"@cubejs-backend/query-orchestrator": "1.6.
|
|
107
|
-
"@cubejs-backend/schema-compiler": "1.6.
|
|
108
|
-
"@cubejs-backend/shared": "1.6.
|
|
109
|
-
"@cubejs-backend/testing-shared": "1.6.
|
|
110
|
-
"@cubejs-client/ws-transport": "1.6.
|
|
105
|
+
"@cubejs-backend/ksql-driver": "1.6.30",
|
|
106
|
+
"@cubejs-backend/postgres-driver": "1.6.30",
|
|
107
|
+
"@cubejs-backend/query-orchestrator": "1.6.30",
|
|
108
|
+
"@cubejs-backend/schema-compiler": "1.6.30",
|
|
109
|
+
"@cubejs-backend/shared": "1.6.30",
|
|
110
|
+
"@cubejs-backend/testing-shared": "1.6.30",
|
|
111
|
+
"@cubejs-client/ws-transport": "1.6.30",
|
|
111
112
|
"dedent": "^0.7.0",
|
|
112
113
|
"fs-extra": "^8.1.0",
|
|
113
114
|
"http-proxy": "^1.18.1",
|
|
@@ -118,8 +119,8 @@
|
|
|
118
119
|
},
|
|
119
120
|
"devDependencies": {
|
|
120
121
|
"@4tw/cypress-drag-drop": "^1.6.0",
|
|
121
|
-
"@cubejs-backend/linter": "1.6.
|
|
122
|
-
"@cubejs-client/core": "1.6.
|
|
122
|
+
"@cubejs-backend/linter": "1.6.30",
|
|
123
|
+
"@cubejs-client/core": "1.6.30",
|
|
123
124
|
"@jest/globals": "^29",
|
|
124
125
|
"@types/dedent": "^0.7.0",
|
|
125
126
|
"@types/http-proxy": "^1.17.5",
|
|
@@ -145,5 +146,5 @@
|
|
|
145
146
|
"eslintConfig": {
|
|
146
147
|
"extends": "../cubejs-linter"
|
|
147
148
|
},
|
|
148
|
-
"gitHead": "
|
|
149
|
+
"gitHead": "e94781a4a5349347f1b57fed9ffa029450b2d717"
|
|
149
150
|
}
|