You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/10/28 19:59:20 UTC

[GitHub] [superset] mistercrunch commented on issue #17273: Can I use filter Jinja Templating for schema selection in a database?

mistercrunch commented on issue #17273:
URL: https://github.com/apache/superset/issues/17273#issuecomment-954156815


   This seems worthy at a high level, so here's pointer to `get_template_processor` and how it's used to compile expressions in columns, filters and other places. Conceptually it seems like it could make sense to do this on the database schema too, but has security / data access policy implications, and it could be slightly complicated from an RBAC standpoint as I'm assuming the template (NOT rendered) will be shown as a single resource. IDK more research would be needed.
    
   https://github.com/apache/superset/blob/5aaa3330a66c90047da3dcc557970cf9383d4933/superset/connectors/sqla/models.py#L84


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org