@cubejs-backend/testing 0.30.34 → 0.30.36
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,14 @@
|
|
|
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.36](https://github.com/cube-js/cube.js/compare/v0.30.35...v0.30.36) (2022-07-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @cubejs-backend/testing
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.30.34](https://github.com/cube-js/cube.js/compare/v0.30.33...v0.30.34) (2022-07-12)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @cubejs-backend/testing
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
cube('Orders', {
|
|
2
|
+
sql: `
|
|
3
|
+
select 1 as id, 100 as amount, '2017-01-01 09:34:21'::timestamp as created_at, 'new' status
|
|
4
|
+
UNION ALL
|
|
5
|
+
select 2 as id, 200 as amount, '2017-02-01 19:34:21'::timestamp as created_at, 'new' status
|
|
6
|
+
UNION ALL
|
|
7
|
+
select 3 as id, 300 as amount, '2017-01-01 19:34:21'::timestamp as created_at, 'processed' status
|
|
8
|
+
UNION ALL
|
|
9
|
+
select 4 as id, 500 as amount, '2017-01-01 19:34:21'::timestamp as created_at, 'processed' status
|
|
10
|
+
UNION ALL
|
|
11
|
+
select 5 as id, 600 as amount, '2017-01-01 19:34:21'::timestamp as created_at, 'shipped' status
|
|
12
|
+
`,
|
|
13
|
+
measures: {
|
|
14
|
+
count: {
|
|
15
|
+
type: 'count',
|
|
16
|
+
},
|
|
17
|
+
totalAmount: {
|
|
18
|
+
sql: 'amount',
|
|
19
|
+
type: 'sum',
|
|
20
|
+
},
|
|
21
|
+
toRemove: {
|
|
22
|
+
type: 'count',
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
dimensions: {
|
|
26
|
+
status: {
|
|
27
|
+
sql: 'status',
|
|
28
|
+
type: 'string',
|
|
29
|
+
},
|
|
30
|
+
createdAt: {
|
|
31
|
+
sql: 'created_at',
|
|
32
|
+
type: 'time'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cubejs-backend/testing",
|
|
3
|
-
"version": "0.30.
|
|
3
|
+
"version": "0.30.36",
|
|
4
4
|
"description": "Cube.js e2e tests",
|
|
5
5
|
"author": "Cube Dev, Inc.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"eslintConfig": {
|
|
114
114
|
"extends": "../cubejs-linter"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "2cbb7c3f7a94b4cceaf2b4cf02e0baf0139a182e"
|
|
117
117
|
}
|