@cubejs-backend/testing 0.30.0 → 0.30.1
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.30.1](https://github.com/cube-js/cube.js/compare/v0.30.0...v0.30.1) (2022-05-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **materialize-driver:** commit cursor on release ([#4526](https://github.com/cube-js/cube.js/issues/4526)) ([441581c](https://github.com/cube-js/cube.js/commit/441581cb38406e74081c0a06fe747dd8efb8cb8d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [0.30.0](https://github.com/cube-js/cube.js/compare/v0.29.57...v0.30.0) (2022-05-11)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @cubejs-backend/testing
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
cube('Orders', {
|
|
2
|
+
sql: `
|
|
3
|
+
select 1 as id, 100 as amount, 'new' status
|
|
4
|
+
UNION ALL
|
|
5
|
+
select 2 as id, 200 as amount, 'new' status
|
|
6
|
+
UNION ALL
|
|
7
|
+
select 3 as id, 300 as amount, 'processed' status
|
|
8
|
+
UNION ALL
|
|
9
|
+
select 4 as id, 500 as amount, 'processed' status
|
|
10
|
+
UNION ALL
|
|
11
|
+
select 5 as id, 600 as amount, 'shipped' status
|
|
12
|
+
`,
|
|
13
|
+
measures: {
|
|
14
|
+
count: {
|
|
15
|
+
type: 'count',
|
|
16
|
+
},
|
|
17
|
+
totalAmount: {
|
|
18
|
+
sql: 'amount',
|
|
19
|
+
type: 'sum',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
dimensions: {
|
|
23
|
+
status: {
|
|
24
|
+
sql: 'status',
|
|
25
|
+
type: 'string',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
preAggregations: {
|
|
29
|
+
orderStatus: {
|
|
30
|
+
measures: [CUBE.count, CUBE.totalAmount],
|
|
31
|
+
dimensions: [CUBE.status],
|
|
32
|
+
refreshKey: {
|
|
33
|
+
every: '1 second',
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubejs-backend/testing",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.1",
|
|
4
4
|
"description": "Cube.js e2e tests",
|
|
5
5
|
"author": "Cube Dev, Inc.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@cubejs-backend/dotenv": "^9.0.2",
|
|
62
|
-
"@cubejs-backend/query-orchestrator": "^0.30.
|
|
63
|
-
"@cubejs-backend/schema-compiler": "^0.30.
|
|
64
|
-
"@cubejs-backend/shared": "^0.30.
|
|
65
|
-
"@cubejs-backend/testing-shared": "^0.30.
|
|
62
|
+
"@cubejs-backend/query-orchestrator": "^0.30.1",
|
|
63
|
+
"@cubejs-backend/schema-compiler": "^0.30.1",
|
|
64
|
+
"@cubejs-backend/shared": "^0.30.1",
|
|
65
|
+
"@cubejs-backend/testing-shared": "^0.30.1",
|
|
66
66
|
"@cubejs-client/ws-transport": "^0.30.0",
|
|
67
67
|
"dedent": "^0.7.0",
|
|
68
68
|
"fs-extra": "^8.1.0",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"eslintConfig": {
|
|
108
108
|
"extends": "../cubejs-linter"
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "e4757337c26890369df40ec1d7a8ae633ca1fafe"
|
|
111
111
|
}
|