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/03/02 12:43:04 UTC
[GitHub] [superset] mingzeng21 opened a new issue #13416: Jinja template not working in Dashboard's markdown
mingzeng21 opened a new issue #13416:
URL: https://github.com/apache/superset/issues/13416
In a dashboard view, I am adding a markdown, and then editing some jinja method, such as, {{ current_username() }}, {{ current_user_id() }}. But it does not work as I expected.
### Expected results
I expected to see the result of the used jinja method, such as the current username.
### Actual results
The actual results is plain string of the jinja method put in the markdown, such as {{ current_username() }}.
#### Screenshots

#### How to reproduce the bug
1. Go to 'Dashboard'
2. Click on 'EDIT DASHBOARD' then plug in a markdown
3. Edit markdown, type {{ current_username() }}
4. Preview the markdown or click outside markdown, see result
### Environment
- superset version: 0.37.2
- python version: 3.7.4
- node.js version: 15.7.0
### Checklist
Make sure to follow these steps before submitting your issue - thank you!
- [x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
- [x] I have reproduced the issue with at least the latest released version of superset.
- [x] I have checked the issue tracker for the same issue and I haven't found one similar.
### Additional context
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] zufolo441 commented on issue #13416: Jinja template not working in Dashboard's markdown
Posted by GitBox <gi...@apache.org>.
zufolo441 commented on issue #13416:
URL: https://github.com/apache/superset/issues/13416#issuecomment-795066702
for SQLLab, you have to set to True the parameter ENABLE_TEMPLATE_PROCESSING in config.py.
For Markdown, I already asked this functionality some time ago.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] mingzeng21 commented on issue #13416: Jinja template not working in Dashboard's markdown
Posted by GitBox <gi...@apache.org>.
mingzeng21 commented on issue #13416:
URL: https://github.com/apache/superset/issues/13416#issuecomment-789362673
> @mingzeng21
Dear @junlincc , it used to work in markup viz, but not dashboard's markdown. Since markup was removed, I guess dashboard's markdown is the replacement.
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] zuzana-vej commented on issue #13416: Jinja template not working in Dashboard's markdown
Posted by GitBox <gi...@apache.org>.
zuzana-vej commented on issue #13416:
URL: https://github.com/apache/superset/issues/13416#issuecomment-1069317711
@mingzeng21 are you still facing this issue on latest master / relesae?
--
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
[GitHub] [superset] asdi744 commented on issue #13416: Jinja template not working in Dashboard's markdown
Posted by GitBox <gi...@apache.org>.
asdi744 commented on issue #13416:
URL: https://github.com/apache/superset/issues/13416#issuecomment-790512323
I am facing the same issue, trying to get the current user id/name in SQL LAB in Superset v1.0.0
none of the following methods work:
`current_user_id()`
`current_username()`
`cache_key_wrapper()`
<img width="851" alt="Screenshot 2021-03-04 at 15 29 44" src="https://user-images.githubusercontent.com/4865462/109950669-99467100-7cfe-11eb-8870-aa39ce30e230.png">
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
[GitHub] [superset] junlincc commented on issue #13416: Jinja template not working in Dashboard's markdown
Posted by GitBox <gi...@apache.org>.
junlincc commented on issue #13416:
URL: https://github.com/apache/superset/issues/13416#issuecomment-789056566
Hi @mingzeng21 I'm not sure if what you described is expected behavior. Did it work before?
----------------------------------------------------------------
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:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org