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
   > 
   > ![screen shot 2019-01-17 at 10 33 41 
am](https://user-images.githubusercontent.com/25734842/51329833-518ffd00-1a44-11e9-95a0-d701b80d1dba.jpg)
   > 
   > 1. Explore it
   >    ![screen shot 2019-01-17 at 10 34 39 
am](https://user-images.githubusercontent.com/25734842/51329873-5fde1900-1a44-11e9-986b-f2c18cd52d01.jpg)
   > 
   > The explore will throw an error by default
   > ![screen shot 2019-01-17 at 10 34 52 
am](https://user-images.githubusercontent.com/25734842/51329947-83a15f00-1a44-11e9-9911-53bea0c38aa7.jpg)
   > 
   > 1. Pass the filter to the URL and run the chart
   > 
   > ![screen shot 2019-01-17 at 10 35 22 
am](https://user-images.githubusercontent.com/25734842/51330023-acc1ef80-1a44-11e9-8f88-840dcfa6382b.jpg)
   > 
   > It will work fine
   > ![screen shot 2019-01-17 at 10 35 32 
am](https://user-images.githubusercontent.com/25734842/51330241-222dc000-1a45-11e9-9e3d-fcfb20d817d9.jpg)
   > 
   > 1. Now save the chart and add it to a dashboard
   > 
   > ![screen shot 2019-01-17 at 10 36 34 
am](https://user-images.githubusercontent.com/25734842/51330281-35409000-1a45-11e9-83b0-c8b2f2748751.jpg)
   > 
   > ![screen shot 2019-01-17 at 10 36 42 
am](https://user-images.githubusercontent.com/25734842/51330297-3ec9f800-1a45-11e9-9c0b-69451eb0ce4d.jpg)
   > 
   > 1. Now let's try to pass different values to the dashboard
   >    i. Value as Superset
   >    ![screen shot 2019-01-17 at 10 37 03 
am](https://user-images.githubusercontent.com/25734842/51330458-8c466500-1a45-11e9-9631-614217403c3b.jpg)
   >    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"
   > 
   > ![screen shot 2019-01-17 at 10 37 29 
am](https://user-images.githubusercontent.com/25734842/51330598-d4fe1e00-1a45-11e9-91f2-ecbe0fd24268.jpg)
   > 
   > 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]

Reply via email to