Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Use Jinja Context for "url_param" #13315

Closed
3 tasks done
ranggarppb opened this issue Feb 24, 2021 · 2 comments · Fixed by #15246
Closed
3 tasks done

Unable to Use Jinja Context for "url_param" #13315

ranggarppb opened this issue Feb 24, 2021 · 2 comments · Fixed by #15246
Labels
!deprecated-label:bug Deprecated label - Use #bug instead global:jinja Related to Jinja templating sqllab Namespace | Anything related to the SQL Lab

Comments

@ranggarppb
Copy link

A clear and concise description of what the bug is.

Expected results

It gives 'rangga' as the parameter of username in url

Actual results

It returns None

Screenshots

image

How to reproduce the bug

  1. Activate your jinja context in superset/docker/pythonpath_dev/superset_config.py by adding "ENABLE_TEMPLATE_PROCESSING" : True in dictionary of FEATURE_FLAGS
    image

  2. Go to sqllab

  3. Edit your url and add '?username' argument

  4. Reload the page

  5. Write the query using jinja context of url_param and run the query

Environment

(please complete the following information):

  • superset version: 1.0.1 (docker version)
  • python version: 3.7.9

Checklist

Make sure to follow these steps before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.
@ranggarppb ranggarppb added the #bug Bug report label Feb 24, 2021
@junlincc junlincc added sqllab Namespace | Anything related to the SQL Lab global:jinja Related to Jinja templating and removed #bug Bug report labels Feb 24, 2021
@robdiciuccio
Copy link
Member

Confirmed

@robdiciuccio robdiciuccio added the !deprecated-label:bug Deprecated label - Use #bug instead label Mar 11, 2021
@maltoze
Copy link
Contributor

maltoze commented Apr 7, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
!deprecated-label:bug Deprecated label - Use #bug instead global:jinja Related to Jinja templating sqllab Namespace | Anything related to the SQL Lab
Projects
None yet
4 participants