Skip to content

Commit c8dd124

Browse files
Merge pull request #2 from codefresh-io/cf0.30.75
Cf0.30.75 - merge changes from upstream cube.js v0.30.75 tag into codefresh fork
2 parents ddc2f28 + cad0443 commit c8dd124

File tree

2,364 files changed

+406415
-367140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,364 files changed

+406415
-367140
lines changed

.dockerignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ packages/*/node_modules/
1515
packages/*/dist/
1616
packages/*/coverage/
1717
packages/cubejs-server-core/playground/
18-
packages/cubejs-jdbc-driver
1918
packages/cubejs-serverless
2019
packages/cubejs-serverless-aws
21-
packages/cubejs-serverless-google
20+
packages/cubejs-serverless-google

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,44 @@ A clear and concise description of what you expected to happen.
2323
**Screenshots**
2424
If applicable, add screenshots to help explain your problem.
2525

26+
**Minimally reproducible Cube Schema**
27+
In case your bug report is data modelling related please put your minimally reproducible Cube Schema here.
28+
You can use selects without tables in order to achieve that as follows.
29+
30+
```javascript
31+
cube(`Orders`, {
32+
sql: `
33+
select 1 as id, 100 as amount, 'new' status
34+
UNION ALL
35+
select 2 as id, 200 as amount, 'new' status
36+
UNION ALL
37+
select 3 as id, 300 as amount, 'processed' status
38+
UNION ALL
39+
select 4 as id, 500 as amount, 'processed' status
40+
UNION ALL
41+
select 5 as id, 600 as amount, 'shipped' status
42+
`,
43+
measures: {
44+
count: {
45+
type: `count`,
46+
},
47+
totalAmount: {
48+
sql: `amount`,
49+
type: `sum`,
50+
},
51+
toRemove: {
52+
type: `count`,
53+
},
54+
},
55+
dimensions: {
56+
status: {
57+
sql: `status`,
58+
type: `string`,
59+
},
60+
},
61+
});
62+
```
63+
2664
**Version:**
2765
[e.g. 0.4.5]
2866

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: SQL API Query Issue
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Failed SQL**
11+
Search for `Failed SQL` log message.
12+
13+
**Logical Plan**
14+
Search for `Can't rewrite plan` log message.
15+
16+
**Version:**
17+
[e.g. 0.4.5]
18+
19+
**Additional context**
20+
Add any other context about the problem here.

.github/actions/build-example.sh

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/actions/deploy-example.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,19 @@ npm config set loglevel error
99
EXAMPLE_SLUG=${EXAMPLE_SLUG}
1010

1111
EXAMPLE_DIRECTORY=examples/${EXAMPLE_SLUG}
12+
EXAMPLE_CUBE_SKIP=${EXAMPLE_CUBE_SKIP:-0}
1213
EXAMPLE_FRONTEND_SKIP=${EXAMPLE_FRONTEND_SKIP:-0}
1314
EXAMPLE_FRONTEND_SUBDIRECTORY=${EXAMPLE_FRONTEND_SUBDIRECTORY:-dashboard-app}
1415
EXAMPLE_FRONTEND_BUILD_SUBDIRECTORY=${EXAMPLE_FRONTEND_BUILD_SUBDIRECTORY:-build}
1516

1617
cd "$EXAMPLE_DIRECTORY"
17-
yarn install
18-
npm install -g cubejs-cli
19-
cubejs deploy
18+
19+
if [ "$EXAMPLE_CUBE_SKIP" -eq 0 ]
20+
then
21+
yarn install
22+
npm install -g cubejs-cli
23+
cubejs deploy
24+
fi
2025

2126
if [ "$EXAMPLE_FRONTEND_SKIP" -eq 0 ]
2227
then

.github/actions/deploy-guide.sh

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/actions/integration/athena.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
set -eo pipefail
3+
4+
# Debug log for test containers
5+
export DEBUG=testcontainers
6+
7+
echo "::group::Athena [cloud]"
8+
export CUBEJS_AWS_REGION=us-east-1
9+
export CUBEJS_AWS_S3_OUTPUT_LOCATION=s3://cubejs-opensource/testing/output
10+
export CUBEJS_DB_EXPORT_BUCKET=s3://cubejs-opensource/testing/export/
11+
yarn lerna run --concurrency 1 --stream --no-prefix integration:athena
12+
export CUBEJS_DB_EXPORT_BUCKET=cubejs-opensource
13+
yarn lerna run --concurrency 1 --stream --no-prefix integration:athena
14+
# yarn lerna run --concurrency 1 --stream --no-prefix smoke:athena
15+
echo "::endgroup::"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
set -eo pipefail
3+
4+
# Debug log for test containers
5+
export DEBUG=testcontainers
6+
7+
echo "::group::BigQuery [cloud]"
8+
export CUBEJS_DB_BQ_PROJECT_ID=cube-open-source
9+
export CUBEJS_DB_EXPORT_BUCKET=cube-open-source-export-bucket
10+
yarn lerna run --concurrency 1 --stream --no-prefix integration:bigquery
11+
# yarn lerna run --concurrency 1 --stream --no-prefix smoke:bigquery
12+
echo "::endgroup::"

.github/actions/integration/crate.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -eo pipefail
3+
4+
export DEBUG=testcontainers
5+
6+
echo "::group::Crate"
7+
yarn lerna run --concurrency 1 --stream --no-prefix integration:crate
8+
echo "::endgroup::"

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,9 @@ updates:
44
directory: "/packages"
55
schedule:
66
interval: "weekly"
7+
- package-ecosystem: "npm"
8+
directory: "/examples"
9+
schedule:
10+
interval: "monthly"
11+
allow:
12+
- dependency-type: "production"

0 commit comments

Comments
 (0)