cube-js / cube-js/cube

Add ability to look at cube meta during queryRewrite

Open
#4,118 11 comments 13 reactions 0 assignees View on GitHub
configuration help wanted
Dominant language
Rust
Stars
20.8k
Forks
2.1k
Avg merge
1d 2h
Merged PRs (30d)
181

Description

**Is your feature request related to a problem? Please describe.**
When setting up row-level permissions, I want to make sure that any query on a cube with a tenant id dimension is re-written to filter for that tenant ID

**Describe the solution you'd like**
The queryRewrite function should be passed a parameter that lists out all cubes and allows to inspect the dimensions + measures on those cubes

**Describe alternatives you've considered**
The alternative is maintaining a list of cubes manually. This gets tedious especially when extending cubes.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.