superset
superset copied to clipboard
[reports] GET chart/<pk>/data api doesn't respect force parameter
A clear and concise description of what the bug is. Api to get data of a saved chart used by reports to send csv data doesn't respect force parameter resulting in reports having stale data.
How to reproduce the bug
- setup caching for data and report
- create table chart, so it caches the data
- change the data in the datasource without busrting cache of the chart
- create report with csv and enable
Ignore cache when generating screenshot - see the report having stale data.
Expected results
As Ignore cache when generating screenshot is enabled, report should have fresh data from datasource.
Or this option is only for reports with screenshot as its name suggests?
Actual results
Report has stale data.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
(please complete the following information):
- browser type and version:
- superset version: 1.5.1 and 2.0
- python version:
python --version - node.js version:
node -v - any feature flags active: ALERT_REPORTS
Checklist
Make sure to follow these steps before submitting your issue - thank you!
- [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
- [ ] I have reproduced the issue with at least the latest released version of superset.
- [ ] I have checked the issue tracker for the same issue and I haven't found one similar.
Additional context
Add any other context about the problem here.