DataBrewery / cubes

[NOT MAINTAINED] Light-weight Python OLAP framework for multi-dimensional data analysis
http://cubes.databrewery.org
Other
1.49k stars 314 forks source link

Does it support hidden cut? #377

Closed russel1237 closed 7 years ago

russel1237 commented 8 years ago

We have a fact table which has organization column, for each request to backend we want to filter out data based on requested organization. After adding organization as dimension in model.json we have overcome the problem.

Is it possible to cut by organization without adding it in dimensions in the model.json?

robin900 commented 8 years ago

If you configure authentication/authorization, you can define cube_restrictions (implicit cuts) for each user or role in your authorization setup. You would still need to add the dimension to your model, but any request from an authenticated user would always add the implicit cut on organization to any cubes request.

https://github.com/DataBrewery/cubes/blob/master/doc/auth.rst#simple-authorization

Stiivi commented 7 years ago

Thanks @robin900. @russel1237 Is this still an issue?

russelmahmud commented 7 years ago

@Stiivi, you can close it.