cube-js/cube

Add ability to look at cube meta during queryRewrite

Open

#4.118 geöffnet am 17. Feb. 2022

Auf GitHub ansehen
 (11 Kommentare) (13 Reaktionen) (0 zugewiesene Personen)Rust (1.965 Forks)batch import
configurationhelp wanted

Repository-Metriken

Stars
 (19.563 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 5T 16h) (138 gemergte PRs in 30 T)

Beschreibung

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