@cubejs-backend/testing 1.6.51 → 1.6.53
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.
- package/birdbox-fixtures/links/cube.js +2 -0
- package/birdbox-fixtures/links/model/cubes/orders.yaml +34 -0
- package/birdbox-fixtures/links/model/cubes/users.yaml +50 -0
- package/birdbox-fixtures/links/model/views/users_view.yaml +12 -0
- package/birdbox-fixtures/postgresql/schema/SlowQuery.js +17 -0
- package/package.json +13 -12
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
cubes:
|
|
2
|
+
- name: orders
|
|
3
|
+
sql: >
|
|
4
|
+
SELECT 1 as id, 1 as user_id, 'completed' as status
|
|
5
|
+
UNION ALL
|
|
6
|
+
SELECT 2, 2, 'pending'
|
|
7
|
+
|
|
8
|
+
joins:
|
|
9
|
+
- name: users
|
|
10
|
+
sql: "{CUBE}.user_id = {users.id}"
|
|
11
|
+
relationship: many_to_one
|
|
12
|
+
|
|
13
|
+
dimensions:
|
|
14
|
+
- name: id
|
|
15
|
+
sql: id
|
|
16
|
+
type: number
|
|
17
|
+
primary_key: true
|
|
18
|
+
|
|
19
|
+
- name: status
|
|
20
|
+
sql: status
|
|
21
|
+
type: string
|
|
22
|
+
links:
|
|
23
|
+
- name: user_link
|
|
24
|
+
label: View user
|
|
25
|
+
dashboard: user_detail
|
|
26
|
+
params:
|
|
27
|
+
- key: user_name
|
|
28
|
+
value: "{users.full_name}"
|
|
29
|
+
- key: user_city
|
|
30
|
+
value: "{users.city}"
|
|
31
|
+
|
|
32
|
+
measures:
|
|
33
|
+
- name: count
|
|
34
|
+
type: count
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
cubes:
|
|
2
|
+
- name: users
|
|
3
|
+
sql: >
|
|
4
|
+
SELECT 1 as id, 'John' as first_name, 'Doe' as last_name, 'New York' as city
|
|
5
|
+
UNION ALL
|
|
6
|
+
SELECT 2, 'Jane', 'Smith', 'London'
|
|
7
|
+
|
|
8
|
+
dimensions:
|
|
9
|
+
- name: id
|
|
10
|
+
sql: id
|
|
11
|
+
type: number
|
|
12
|
+
primary_key: true
|
|
13
|
+
|
|
14
|
+
- name: full_name
|
|
15
|
+
sql: "first_name || ' ' || last_name"
|
|
16
|
+
type: string
|
|
17
|
+
links:
|
|
18
|
+
- name: google_search
|
|
19
|
+
label: Search on Google
|
|
20
|
+
url: "{full_name}"
|
|
21
|
+
icon: brand-google
|
|
22
|
+
- name: profile
|
|
23
|
+
label: View profile
|
|
24
|
+
dashboard: user_profile_123
|
|
25
|
+
- name: city_dashboard
|
|
26
|
+
label: City dashboard
|
|
27
|
+
dashboard: city_dash
|
|
28
|
+
params:
|
|
29
|
+
- key: city
|
|
30
|
+
value: "{city}"
|
|
31
|
+
- key: user_id
|
|
32
|
+
value: "{id}"
|
|
33
|
+
- name: crm_link
|
|
34
|
+
label: View in CRM
|
|
35
|
+
dashboard: crm_contacts
|
|
36
|
+
params:
|
|
37
|
+
- key: full_name
|
|
38
|
+
value: "{full_name}"
|
|
39
|
+
- key: city
|
|
40
|
+
value: "{city}"
|
|
41
|
+
- key: duplicate_city
|
|
42
|
+
value: "{city}"
|
|
43
|
+
|
|
44
|
+
- name: city
|
|
45
|
+
sql: city
|
|
46
|
+
type: string
|
|
47
|
+
|
|
48
|
+
measures:
|
|
49
|
+
- name: count
|
|
50
|
+
type: count
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubejs-backend/testing",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.53",
|
|
4
4
|
"description": "Cube.js e2e tests",
|
|
5
5
|
"author": "Cube Dev, Inc.",
|
|
6
6
|
"repository": {
|
|
@@ -84,6 +84,7 @@
|
|
|
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
86
|
"smoke:rbac-graphql": "TZ=UTC jest --verbose -i dist/test/smoke-rbac-graphql.test.js",
|
|
87
|
+
"smoke:links": "jest --verbose -i dist/test/smoke-links.test.js",
|
|
87
88
|
"smoke:cubesql": "TZ=UTC jest --verbose --forceExit -i dist/test/smoke-cubesql.test.js",
|
|
88
89
|
"smoke:cubesql:snapshot": "TZ=UTC jest --verbose --forceExit --updateSnapshot -i dist/test/smoke-cubesql.test.js",
|
|
89
90
|
"smoke:prestodb": "jest --verbose -i dist/test/smoke-prestodb.test.js",
|
|
@@ -101,15 +102,15 @@
|
|
|
101
102
|
"birdbox-fixtures"
|
|
102
103
|
],
|
|
103
104
|
"dependencies": {
|
|
104
|
-
"@cubejs-backend/cubestore-driver": "1.6.
|
|
105
|
+
"@cubejs-backend/cubestore-driver": "1.6.53",
|
|
105
106
|
"@cubejs-backend/dotenv": "^9.0.2",
|
|
106
|
-
"@cubejs-backend/ksql-driver": "1.6.
|
|
107
|
-
"@cubejs-backend/postgres-driver": "1.6.
|
|
108
|
-
"@cubejs-backend/query-orchestrator": "1.6.
|
|
109
|
-
"@cubejs-backend/schema-compiler": "1.6.
|
|
110
|
-
"@cubejs-backend/shared": "1.6.
|
|
111
|
-
"@cubejs-backend/testing-shared": "1.6.
|
|
112
|
-
"@cubejs-client/ws-transport": "1.6.
|
|
107
|
+
"@cubejs-backend/ksql-driver": "1.6.53",
|
|
108
|
+
"@cubejs-backend/postgres-driver": "1.6.53",
|
|
109
|
+
"@cubejs-backend/query-orchestrator": "1.6.53",
|
|
110
|
+
"@cubejs-backend/schema-compiler": "1.6.53",
|
|
111
|
+
"@cubejs-backend/shared": "1.6.53",
|
|
112
|
+
"@cubejs-backend/testing-shared": "1.6.53",
|
|
113
|
+
"@cubejs-client/ws-transport": "1.6.53",
|
|
113
114
|
"dedent": "^0.7.0",
|
|
114
115
|
"fs-extra": "^8.1.0",
|
|
115
116
|
"http-proxy": "^1.18.1",
|
|
@@ -120,8 +121,8 @@
|
|
|
120
121
|
},
|
|
121
122
|
"devDependencies": {
|
|
122
123
|
"@4tw/cypress-drag-drop": "^1.6.0",
|
|
123
|
-
"@cubejs-backend/linter": "1.6.
|
|
124
|
-
"@cubejs-client/core": "1.6.
|
|
124
|
+
"@cubejs-backend/linter": "1.6.53",
|
|
125
|
+
"@cubejs-client/core": "1.6.53",
|
|
125
126
|
"@jest/globals": "^29",
|
|
126
127
|
"@types/dedent": "^0.7.0",
|
|
127
128
|
"@types/http-proxy": "^1.17.5",
|
|
@@ -147,5 +148,5 @@
|
|
|
147
148
|
"eslintConfig": {
|
|
148
149
|
"extends": "../cubejs-linter"
|
|
149
150
|
},
|
|
150
|
-
"gitHead": "
|
|
151
|
+
"gitHead": "a2c65aa68f1df49e35ea8ac3177d39a966d92586"
|
|
151
152
|
}
|