You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2022/04/06 07:34:46 UTC

[GitHub] [superset] zhaoyongjie commented on a diff in pull request #19540: fix: View Results Doesn't Match Chart After Refreshing Cache

zhaoyongjie commented on code in PR #19540:
URL: https://github.com/apache/superset/pull/19540#discussion_r843575394


##########
superset-frontend/src/explore/components/DataTablesPane/index.tsx:
##########
@@ -242,9 +255,13 @@ export const DataTablesPane = ({
         ...prevIsLoading,
         [resultType]: true,
       }));
+
+      chartUpdateCacheInvalidationStatus(false);
+
       return getChartDataRequest({
         formData: queryFormData,
         resultFormat: 'json',
+        force: !!latestQueryCacheInvalidatedRef.current,
         resultType,
         ownState,
       })

Review Comment:
   I remember that the `force` field is in the explore state, but I can not get a `True` value even though I clicked the `cached` button. Could we resolve this issue through change the `force` value?
   
   ![image](https://user-images.githubusercontent.com/2016594/161919457-d7aac73c-c51f-4c15-a843-395296291c26.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.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org