@cubejs-backend/testing 1.6.52 → 1.6.54

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.
@@ -0,0 +1,2 @@
1
+ module.exports = {
2
+ };
@@ -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
@@ -0,0 +1,12 @@
1
+ views:
2
+ - name: users_with_links
3
+ cubes:
4
+ - join_path: users
5
+ includes:
6
+ - full_name
7
+ - city
8
+
9
+ - name: users_all
10
+ cubes:
11
+ - join_path: users
12
+ includes: "*"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubejs-backend/testing",
3
- "version": "1.6.52",
3
+ "version": "1.6.54",
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.52",
105
+ "@cubejs-backend/cubestore-driver": "1.6.54",
105
106
  "@cubejs-backend/dotenv": "^9.0.2",
106
- "@cubejs-backend/ksql-driver": "1.6.52",
107
- "@cubejs-backend/postgres-driver": "1.6.52",
108
- "@cubejs-backend/query-orchestrator": "1.6.52",
109
- "@cubejs-backend/schema-compiler": "1.6.52",
110
- "@cubejs-backend/shared": "1.6.52",
111
- "@cubejs-backend/testing-shared": "1.6.52",
112
- "@cubejs-client/ws-transport": "1.6.52",
107
+ "@cubejs-backend/ksql-driver": "1.6.54",
108
+ "@cubejs-backend/postgres-driver": "1.6.54",
109
+ "@cubejs-backend/query-orchestrator": "1.6.54",
110
+ "@cubejs-backend/schema-compiler": "1.6.54",
111
+ "@cubejs-backend/shared": "1.6.54",
112
+ "@cubejs-backend/testing-shared": "1.6.54",
113
+ "@cubejs-client/ws-transport": "1.6.54",
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.52",
124
- "@cubejs-client/core": "1.6.52",
124
+ "@cubejs-backend/linter": "1.6.54",
125
+ "@cubejs-client/core": "1.6.54",
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": "fa7e2f38fe00e28e98e6a6a23557fb87584a9903"
151
+ "gitHead": "11588e62b6493e4c61e57360ea154b67ddcbc873"
151
152
  }