question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to take URL_PARAM in explore chart

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

2reactions
syedgufran95commented, Sep 15, 2022

@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.

0reactions
YiouZuocommented, 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 😦.

Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Url parameter not mapping - Stack Overflow
Unfortunately my parameter doesn't map correctly and it is always null . UPDATE Additional information: here is my RouteConfig class: public ...
Read more >
Superset / Preset Jinja URL parameters - YouTube
This video is a demo about how to change the dataset to take URL parameters to present filtered data in a dashboard.
Read more >
URL query parameters - Retool Docs
You can use URL parameters to share a link to the app with a specific user already populated. Users and purchases tables. To...
Read more >
How to get URL Parameters using JavaScript ? - GeeksforGeeks
In this article, we will learn how to get the URL parameters in Javascript, along with understanding their implementation through the examples.
Read more >
Parameters - Looker Studio Help - Google Help
You can also use parameters to create report templates. ... For example, an account number parameter, or name of a database table would...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found