cube icon indicating copy to clipboard operation
cube copied to clipboard

Sql api. How one can hide specific cube?

Open NikKomarov opened this issue 3 years ago • 2 comments

Problem

I want to remove cubes from sql api, but leave it visible via rest api. In other words, remove some cubes from result of query

SELECT * FROM information_schema.tables
where table_schema like 'public'

Is there any way to do it?

NikKomarov avatar Sep 01 '22 13:09 NikKomarov

@ovr wdyt?

ivan-vdovin avatar Sep 13 '22 12:09 ivan-vdovin

@NikKomarov We're going to provide shown flag for cubes which can be used together with https://cube.dev/docs/config#check-sql-auth in order to provide desired behavior through dynamic schemas. Right now, you can achieve pretty same behavior by hiding all members of the specific cube.

It'd be done as part of #5044 .

paveltiunov avatar Sep 13 '22 19:09 paveltiunov

Closing this issue as this can now be addressed with Views.

rpaik avatar Oct 13 '22 15:10 rpaik