You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by vi...@apache.org on 2021/12/22 06:48:34 UTC

[superset] branch master updated: fix(dashboard): update native filter info in metadata is not updated (#17842)

This is an automated email from the ASF dual-hosted git repository.

villebro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new ec48dd5  fix(dashboard): update native filter info in metadata is not updated (#17842)
ec48dd5 is described below

commit ec48dd5c4083c6d0ad80a54bc382678f688677e2
Author: Stephen Liu <75...@qq.com>
AuthorDate: Wed Dec 22 14:47:27 2021 +0800

    fix(dashboard): update native filter info in metadata is not updated (#17842)
---
 superset-frontend/src/dashboard/actions/dashboardState.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/superset-frontend/src/dashboard/actions/dashboardState.js b/superset-frontend/src/dashboard/actions/dashboardState.js
index 6049102..1073e7f 100644
--- a/superset-frontend/src/dashboard/actions/dashboardState.js
+++ b/superset-frontend/src/dashboard/actions/dashboardState.js
@@ -46,6 +46,7 @@ import {
   removeFilter,
   updateDirectPathToFilter,
 } from './dashboardFilters';
+import { SET_FILTER_CONFIG_COMPLETE } from './nativeFilters';
 
 export const SET_UNSAVED_CHANGES = 'SET_UNSAVED_CHANGES';
 export function setUnsavedChanges(hasUnsavedChanges) {
@@ -286,6 +287,12 @@ export function saveDashboardRequest(data, id, saveType) {
             chartConfiguration: metadata.chart_configuration,
           });
         }
+        if (metadata.native_filter_configuration) {
+          dispatch({
+            type: SET_FILTER_CONFIG_COMPLETE,
+            filterConfig: metadata.native_filter_configuration,
+          });
+        }
       }
       if (lastModifiedTime) {
         dispatch(saveDashboardRequestSuccess(lastModifiedTime));