fix: implement force refresh in chart data request #9762
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CATEGORY
Choose one
SUMMARY
With the introduction of the new chart data API, support for force updating charts was temporarily lost. This updates the
@superset-ui/chart
and@superset-ui/query
packages which recently added support for force updates ( apache-superset/superset-ui#445 ) and adds theforce
property toformData
, which is now properly deserialized by the new endpoint ( #9749 ).BEFORE
AFTER
TEST PLAN
Local testing (unit tests will be updated later as more charts are migrated to the new endpoint and the old endpoint is deprecated)
ADDITIONAL INFORMATION
REVIEWERS
@suddjian @rusackas @kristw @ktmud