cube-js/cube

Add ability to look at cube meta during queryRewrite

Aperta

#4118 aperta il 17 feb 2022

 (11 commenti) (13 reazioni) (0 assegnatari)Rust (1965 fork)batch import
configurationhelp wanted

Metriche repository

Star
 (19.563 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor