Skip to content

Commit c064e63

Browse files
authored
Merge branch 'master' into returnUsedPreAggregation
2 parents c3cf1b6 + 7cf2287 commit c064e63

File tree

324 files changed

+9442
-9075
lines changed

Some content is hidden

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

324 files changed

+9442
-9075
lines changed

.github/workflows/push.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,11 @@ jobs:
5454
# Current docker version + next LTS
5555
node-version: [20.x, 22.x]
5656
python-version: [3.11]
57+
transpile-worker-threads: [false, true]
5758
fail-fast: false
5859

60+
env:
61+
CUBEJS_TRANSPILATION_WORKER_THREADS: ${{ matrix.transpile-worker-threads }}
5962
steps:
6063
- id: get-tag-out
6164
run: echo "$OUT"

CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,37 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [1.2.1](https://github.com/cube-js/cube/compare/v1.2.0...v1.2.1) (2025-02-06)
7+
8+
9+
### Features
10+
11+
* **schema-compiler:** Move transpiling to worker threads (under the flag) ([#9188](https://github.com/cube-js/cube/issues/9188)) ([7451452](https://github.com/cube-js/cube/commit/745145283b42c891e0e063c4cad1e2102c71616a))
12+
* **tesseract:** Subqueries support ([#9108](https://github.com/cube-js/cube/issues/9108)) ([0dbf3bb](https://github.com/cube-js/cube/commit/0dbf3bb866b731f97b5588b0e620c3be7cbf9e5b))
13+
14+
15+
16+
17+
18+
# [1.2.0](https://github.com/cube-js/cube/compare/v1.1.18...v1.2.0) (2025-02-05)
19+
20+
### Bug Fixes
21+
22+
- **@cubejs-client/ngx:** Update APF configuration and build settings for Angular 12+ compatibility ([#9152](https://github.com/cube-js/cube/issues/9152)) Thanks to @HaidarZ! ([57bcbc4](https://github.com/cube-js/cube/commit/57bcbc482002aaa025ba5eab8960ecc5784faa55))
23+
- **cubejs-playground:** update query builder ([#9175](https://github.com/cube-js/cube/issues/9175)) ([4e9ed0e](https://github.com/cube-js/cube/commit/4e9ed0eae46c4abb1b84e6423bbc94ad93da37c3))
24+
- **cubejs-playground:** update query builder ([#9184](https://github.com/cube-js/cube/issues/9184)) ([247ac0c](https://github.com/cube-js/cube/commit/247ac0c4028aef5295e88cd501323b94c5a4eaab))
25+
- **cubesql:** Avoid panics during filter rewrites ([#9166](https://github.com/cube-js/cube/issues/9166)) ([4c8de88](https://github.com/cube-js/cube/commit/4c8de882b3cc57e2b0c29c33ca4ee91377176e85))
26+
- **databricks-jdbc-driver:** Fix extract epoch from timestamp SQL Generation ([#9160](https://github.com/cube-js/cube/issues/9160)) ([9a73857](https://github.com/cube-js/cube/commit/9a73857b4abc5691b44b8a395176a565cdbf1b2a))
27+
- **schema-compiler:** make sure view members are resolvable in DAP ([#9059](https://github.com/cube-js/cube/issues/9059)) ([e7b992e](https://github.com/cube-js/cube/commit/e7b992effb6ef90883d059280270c92d903607d4))
28+
29+
### Features
30+
31+
- **cubeclient:** Add hierarchies to Cube meta ([#9180](https://github.com/cube-js/cube/issues/9180)) ([56dbf9e](https://github.com/cube-js/cube/commit/56dbf9edc8c257cd81f00ff119b12543652b76d0))
32+
- **cubesql:** Add filter flattening rule ([#9148](https://github.com/cube-js/cube/issues/9148)) ([92a4b8e](https://github.com/cube-js/cube/commit/92a4b8e0e65c05f2ca0a683387d3f4434c358fc6))
33+
- **cubesql:** Add separate ungrouped_scan flag to wrapper replacer context ([#9120](https://github.com/cube-js/cube/issues/9120)) ([50bdbe7](https://github.com/cube-js/cube/commit/50bdbe7f52f653680e32d26c96c41f10e459c341))
34+
- **snowflake-driver:** set QUOTED_IDENTIFIERS_IGNORE_CASE=FALSE by default ([#9172](https://github.com/cube-js/cube/issues/9172)) ([164b783](https://github.com/cube-js/cube/commit/164b783843efa93ac8ca422634e5b6daccd91883))
35+
- Support complex join conditions for grouped joins ([#9157](https://github.com/cube-js/cube/issues/9157)) ([28c1e3b](https://github.com/cube-js/cube/commit/28c1e3bba7a100f3152bfdefd86197e818fac941))
36+
637
## [1.1.18](https://github.com/cube-js/cube/compare/v1.1.17...v1.1.18) (2025-01-27)
738

839
### Bug Fixes

docs/pages/guides/recipes/access-control/controlling-access-to-cubes-and-views.mdx

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,15 @@ cubes:
5252
views:
5353
- name: total_revenue_per_customer
5454
public: {{ COMPILE_CONTEXT['securityContext']['isFinance'] }}
55-
includes:
56-
- orders.total_revenue
57-
- users.company
55+
56+
cubes:
57+
- join_path: orders
58+
includes:
59+
- total_revenue
60+
61+
- join_path: orders.users
62+
includes:
63+
- company
5864
```
5965
6066
```javascript
@@ -75,12 +81,25 @@ cube(`users`, {
7581
});
7682

7783
// total_revenue_per_customer.js
78-
view("total_revenue_per_customer", {
84+
view(`total_revenue_per_customer`, {
7985
description: `Total revenue per customer`,
8086
public: COMPILE_CONTEXT.securityContext.isFinance,
8187

82-
includes: [orders.total_revenue, users.company],
83-
});
88+
cubes: [
89+
{
90+
join_path: orders,
91+
includes: [
92+
`total_revenue`
93+
]
94+
},
95+
{
96+
join_path: orders.users,
97+
includes: [
98+
`company`
99+
]
100+
}
101+
]
102+
})
84103
```
85104

86105
</CodeTabs>

docs/pages/guides/recipes/multitenancy/custom-data-model-per-tenant.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ module.exports = {
6767

6868
## Data modeling
6969

70-
### Customizing publicity
70+
### Customizing member-level access
7171

72-
The simplest way to customize the data models is by changing the [publicity][ref-publicity]
73-
of data model entities. It works great for use cases when tenants share parts of
72+
The simplest way to customize the data models is by changing the [member-level access][ref-mls]
73+
to data model entities. It works great for use cases when tenants share parts of
7474
their data models.
7575

7676
By setting the `public` parameter of [cubes][ref-cubes-public], [views][ref-views-public],
@@ -168,7 +168,7 @@ cube(`cube_x`, {
168168

169169
</CodeTabs>
170170

171-
For your convenience, [Playground][ref-playground] ignores publicity configration
171+
For your convenience, [Playground][ref-playground] ignores member-level access configration
172172
and marks data model entities that are not accessible for querying through
173173
[APIs][ref-apis] with the lock icon.
174174

@@ -182,8 +182,8 @@ And here's the *perspective* of `Bob`:
182182

183183
### Customizing other parameters
184184

185-
Similarly to [customizing publicity](#customizing-publicity), you can set other
186-
parameters of data model entities for each tenant individually:
185+
Similarly to [customizing member-level access](#customizing-member-level-access),
186+
you can set other parameters of data model entities for each tenant individually:
187187

188188
- By setting `sql` or [`sql_table` parameters][ref-cube-sql-table] of cubes, you
189189
can ensure that each tenant accesses data from its own tables or database schemas.
@@ -364,7 +364,7 @@ code that fetches data model files for each tenant.
364364
[ref-scheduled-refresh-contexts]: /reference/configuration/config#scheduled_refresh_contexts
365365
[ref-context-to-app-id]: /reference/configuration/config#context_to_app_id
366366
[ref-config-files]: /product/configuration#cubepy-and-cubejs-files
367-
[ref-publicity]: /product/data-modeling/concepts/publicity
367+
[ref-mls]: /product/auth/member-level-security
368368
[ref-cubes-public]: /reference/data-model/cube#public
369369
[ref-views-public]: /reference/data-model/view#public
370370
[ref-measures-public]: /reference/data-model/measures#public

docs/pages/guides/style-guide.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,14 @@ cube_project
7070
- `description`
7171
- `public`
7272
- `refresh_key`
73+
- `meta`
7374
- `pre_aggregations`
7475
- `joins`
7576
- `dimensions`
7677
- `hierarchies`
7778
- `segments`
7879
- `measures`
80+
- `access_policy`
7981

8082
### Dimensions & measures
8183

@@ -141,6 +143,7 @@ cubes:
141143
- `public`
142144
- `cubes`
143145
- `folders`
146+
- `access_policy`
144147

145148
### Example view
146149

docs/pages/product/_meta.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
"configuration": "Configuration",
55
"data-modeling": "Data modeling",
66
"caching": "Caching",
7-
"auth": "Authentication & authorization",
7+
"auth": "Access control",
88
"apis-integrations": "APIs & integrations",
99
"workspace": "Workspace",
1010
"deployment": "Deployment",

docs/pages/product/apis-integrations.mdx

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ for an unofficial, community-maintained [client library for Python](https://gith
4848

4949
</ReferenceBox>
5050

51-
### Support for data modeling
51+
### Data modeling
5252

5353
Support for data modeling features differ across APIs, integrations, and [visualization
5454
tools][ref-viz-tools]. Some of the features with partial support are listed below:
@@ -58,6 +58,17 @@ tools][ref-viz-tools]. Some of the features with partial support are listed belo
5858
| [Hierarchies][ref-hierarchies] |[Tableau][ref-tableau] via [Semantic Layer Sync][ref-sls]<br/>✅ Cube Cloud for Excel<br/>✅ [Cube Cloud for Sheets][ref-cube-cloud-for-sheets] | ❌ All other tools |
5959
| [Folders][ref-folders] |[Tableau][ref-tableau] via [Semantic Layer Sync][ref-sls]<br/>✅ Cube Cloud for Excel<br/>✅ [Cube Cloud for Sheets][ref-cube-cloud-for-sheets] | ❌ All other tools |
6060

61+
### Authentication methods
62+
63+
Support for authentication methods differ across APIs, integrations, and [visualization
64+
tools][ref-viz-tools]:
65+
66+
| Method | Supported in |
67+
| --- | --- |
68+
| [User name and password][ref-auth-user-pass] |[SQL API][ref-sql-api] and [Semantic Layer Sync][ref-sls]<br/>✅ [MDX API][ref-mdx-api] |
69+
| [Identity provider][ref-auth-idp] | ✅ Cube Cloud for Excel<br/>✅ [Cube Cloud for Sheets][ref-cube-cloud-for-sheets] |
70+
| [Access token][ref-auth-tokens] |[REST API][ref-rest-api]<br/>✅ [GraphQL API][ref-graphql-api]<br/>✅ [AI API][ref-ai-api] |
71+
6172
## Management APIs
6273

6374
In case you'd like Cube to work with data orchestration tools and let them push
@@ -83,4 +94,7 @@ API][ref-orchestration-api].
8394
[ref-viz-tools]: /product/configuration/visualization-tools
8495
[ref-hierarchies]: /reference/data-model/hierarchies
8596
[ref-folders]: /reference/data-model/view#folders
86-
[ref-tableau]: /product/configuration/visualization-tools/tableau
97+
[ref-tableau]: /product/configuration/visualization-tools/tableau
98+
[ref-auth-user-pass]: /product/auth#user-name-and-password
99+
[ref-auth-idp]: /product/auth#identity-provider
100+
[ref-auth-tokens]: /product/auth#access-token

0 commit comments

Comments
 (0)