arkadiy-lysenko opened a new issue #9729:
URL: https://github.com/apache/incubator-superset/issues/9729
I have some information related to different vendors in my database and I
want to allow each registered vendor (representative person) to view
dashboards(alll sql-s are the same on each dashbord) which contains only data
related to them.
One possible solution could be to create separate views for each vendor as
well as separate roles for each vendor use. Create sql-s based on
JINJA_CONTEXT_ADDONS and add some marcos to this var like
my_custom_variable :
if user_id = 1
return 12;
if user_id = 2
return 125;
...
and etc...
Do I have another possible solution to create just one sql without copy
paste with difference only in one variable?
Can I set accordance to some hardcoded variable to logged in user and use
this variable in query?
Because changing JINJA_CONTEXT_ADDONS configuration in server side in not
very comfortable(.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]