GitHub user richardfogaca added a comment to the discussion: Extra filters (to 
the chart as query params)

Hi,

For those interested in testing the improvement, there's a branch where you can 
install and verify 
[here](https://github.com/richardfogaca/superset/tree/extra-filters-as-query-params)

Here's one example introducing the filter to the chart via URL:

`channel_name` in ["general", "beginners", "introductions", "apache-releases", 
"newsletter"]

decoded_url:

http://localhost:9000/explore/?form_data_key=K_A4DU7z8JQ&slice_id=103&extra_filters={"upgrade_filters":[{"col":"channel_name","op":"IN","val":["general","beginners","apache-releases","introductions","newsletter"]}]}

encoded url:

http://localhost:9000/explore/?form_data_key=K_A4DU7z8JQ&slice_id=103&extra_filters=%7B%22upgrade_filters%22%3A%5B%7B%22col%22%3A%22channel_name%22%2C%22op%22%3A%22IN%22%2C%22val%22%3A%5B%22general%22%2C%22beginners%22%2C%22apache-releases%22%2C%22introductions%22%2C%22newsletter%22%5D%7D%5D%7D

I'm also attaching a chart I created. Please let me know if you find this 
feature useful for superset :)

GitHub link: 
https://github.com/apache/superset/discussions/32754#discussioncomment-12703152

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to