rsdpyenugula commented on issue #6708: Jinja macro url_params is not working from the dashboard URL: https://github.com/apache/incubator-superset/issues/6708#issuecomment-546195558 > @kristw please find the step to reproduce it and let me know if you need more information > > **Susperset Version Info** > Superset 0.28.1 > Flask 0.12.4 > Python 3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 11:07:29) > [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] > > **Steps** > > 1. Create a query with the URL filter > >  > > 1. Explore it >  > > The explore will throw an error by default >  > > 1. Pass the filter to the URL and run the chart > >  > > It will work fine >  > > 1. Now save the chart and add it to a dashboard > >  > >  > > 1. Now let's try to pass different values to the dashboard > i. Value as Superset >  > The Dashboard failed to run the chart with the value as "superset" and it still shows the previously cached value > > ii. Let's do it one more time with the value as "test" > >  > > Still, the same thing. It failed to run the dashboard with the URL parameters. > > **Console log** > 2019-01-17 13:30:03,496:DEBUG:root:[stats_logger] (incr) dashboard > 2019-01-17 13:30:03,515:INFO:root:Database.get_sqla_engine(). Masked URL: sqlite:////Users/ravi/.superset/superset.db > 2019-01-17 13:30:03,563:INFO:werkzeug:127.0.0.1 - - [17/Jan/2019 13:30:03] "GET /superset/dashboard/10/?name=test HTTP/1.1" 200 - > 2019-01-17 13:30:04,195:INFO:werkzeug:127.0.0.1 - - [17/Jan/2019 13:30:04] "GET /superset/csrf_token/ HTTP/1.1" 200 - > 2019-01-17 13:30:04,224:INFO:werkzeug:127.0.0.1 - - [17/Jan/2019 13:30:04] "GET /csstemplateasyncmodelview/api/read HTTP/1.1" 200 - > 2019-01-17 13:30:04,276:INFO:werkzeug:127.0.0.1 - - [17/Jan/2019 13:30:04] "GET /superset/favstar/Dashboard/10/count/ HTTP/1.1" 200 - > 2019-01-17 13:30:04,613:DEBUG:root:[stats_logger] (incr) explore_json > > ``` > 2019-01-17 13:30:04,652:INFO:root:Cache key: 0da9ec696f2af366a051fe0914aaa257 > 2019-01-17 13:30:04,656:INFO:root:Database.get_sqla_engine(). Masked URL: sqlite:////Users/ravi/.superset/superset.db > 2019-01-17 13:30:04,657:INFO:root:SELECT name AS name > FROM (Select 'foo' as name) AS expr_qry > LIMIT 1000 OFFSET 0 > ``` > > 2019-01-17 13:30:04,664:DEBUG:root:[stats_logger] (incr) loaded_from_source > 2019-01-17 13:30:04,670:INFO:werkzeug:127.0.0.1 - - [17/Jan/2019 13:30:04] "POST /superset/explore_json/?form_data=%7B%22slice_id%22%3A159%7D HTTP/1.1" 200 - > 2019-01-17 13:30:04,698:DEBUG:root:[stats_logger] (incr) log > 2019-01-17 13:30:04,701:INFO:werkzeug:127.0.0.1 - - [17/Jan/2019 13:30:04] "POST /superset/log/?dashboard_id=10 HTTP/1.1" 200 - Please the see the url parameter in the scrrenshot and the value in the dashbaord
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
