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

Not able to take URL_PARAM in explore chart #20825

Closed
syedgufran95 opened this issue Jul 22, 2022 · 6 comments · Fixed by #21785
Closed

Not able to take URL_PARAM in explore chart #20825

syedgufran95 opened this issue Jul 22, 2022 · 6 comments · Fixed by #21785
Labels
#bug Bug report

Comments

@syedgufran95
Copy link

A clear and concise description of what the bug is.

How to reproduce the bug

  1. Go to 'http://localhost:8088/superset/sqllab/?name=can_read'
  2. Write query on default dataset on sqllab 'select * from ab_permission where name = '{{ url_param('name') }}''
  3. Click on explore after running the query (it should return one row)
  4. click on explore.
  5. now write &name=can_read in the URL.

Expected results

URL parameters should persist in the URL and should be read by charts

Actual results

URL parameters disappear

Screenshots

URL params working in SQL lab
Screenshot from 2022-07-22 16-41-26

URL param disappears from url
ezgif com-gif-maker(4)

Environment

(please complete the following information):

  • browser type and version: persists on all browser (chrome ,Mozilla,brave)
  • superset version: [2.0.0](https://github.com/apache/superset/releases/tag/2.0.0)

Additional context

I am using jinja templating and I am using URL parms to get the data. I have change feature flag as well still it is not working.

@syedgufran95 syedgufran95 added the #bug Bug report label Jul 22, 2022
@FaidJalal
Copy link

Hey @syedgufran95 I have encountered same issue and was looking someone to report it. I tried changing the config as well but nothing went through.

@burhanaslam
Copy link

I have similar issue, haven't found solution yet

@Tabinda788
Copy link

I am facing the same issue on the newest version after pull

@YiouZuo
Copy link

YiouZuo commented Sep 14, 2022

I run into the same issue.

@syedgufran95
Copy link
Author

@YiouZuo
The problem is with the docker image. The latest docker image is breaking. I resolved the issue by making changes in the docker-compose. and moved back to the previous version. In docker-compose make changes

From

x-superset-image: &superset-image apache/superset:${TAG:-latest-dev}
To
x-superset-image: &superset-image apache/superset:44c5e2879b912b33c902b955eebdaa52ea6e5354
this id I got from an older version of the docker image from the official docker.

@YiouZuo
Copy link

YiouZuo commented Sep 16, 2022

@syedgufran95 Thank you for your suggestion! One caveat of rolling back to an older image is that some of the newer functions are lost -- one that matters in my case is the ability to save datasets from sqllab. I'll just need to wait until Superset fix their bug :(.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug Bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants