oashton opened a new issue #10817:
URL: https://github.com/apache/incubator-superset/issues/10817


   ### Expected results
   
   the `filter_values` function should work in a datasource query used in a 
chart, even if the chart is used as a annotation chart
   
   ### Actual results
   
   if a chart is used as a annotation in another chart, the `filter_values` 
function used inside the datasource query doesn't work, it doesn't return any 
value. Important to note: a filter value is selected in the dashboard.
   
   #### How to reproduce the bug
   
   1. Create a line chart to be used as a annotation in another chart. The 
datasource query should use the `filter_values` function
   2. Create another line chart, add the previosly created line chart as a 
annotation
   3. Add the line chart created in the previous step in a dashboard, add a 
filter box with the same field used as a parameter in the `filter_values` of 
the Step 1
   4. The annotation doesn't show up as expected
   
   ### Environment
   
   - superset version: `superset version`
   Superset 0.37.0:
   Python 3.6.9
   Flask 1.1.2
   Werkzeug 1.0.1
   - python version: `python --version`
   Python: 3.6.9
   - node.js version: `node -v`
   node: v12.10.0
   - npm version: `npm -v`
   npm: 6.10.3
   
   ### Checklist
   
   Make sure these boxes are checked before submitting your issue - thank you!
   
   - [X] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [X] I have reproduced the issue with at least the latest released version 
of superset.
   - [X] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   ### Additional context
   
   I changed the following the line `if (!isDashboardRequest && fd) {` (line 
254) in `chartAction.js` to `if (fd !== null) {` and it solved the problem but 
I'm not sure about the impact in other behaviours
   
![image](https://user-images.githubusercontent.com/6887197/92616252-9dc82a80-f283-11ea-953d-02b973d19f1e.png)
   
   
   


----------------------------------------------------------------
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]



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

Reply via email to