Skip to content
Snippets Groups Projects
Unverified Commit c86eecb3 authored by Alexander Polyankin's avatar Alexander Polyankin Committed by GitHub
Browse files

Invalidate tables after manual re-syncing (#19527)

parent 75be28c2
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ import MetabaseSettings from "metabase/lib/settings";
import { MetabaseApi } from "metabase/services";
import Databases from "metabase/entities/databases";
import Tables from "metabase/entities/tables";
import { updateSetting } from "metabase/admin/settings/settings";
import { editParamsForUserControlledScheduling } from "./editParamsForUserControlledScheduling";
......@@ -241,6 +242,7 @@ export const syncDatabaseSchema = createThunkAction(
return async function(dispatch, getState) {
try {
const call = await MetabaseApi.db_sync_schema({ dbId: databaseId });
dispatch({ type: Tables.actionTypes.INVALIDATE_LISTS_ACTION });
MetabaseAnalytics.trackStructEvent("Databases", "Manual Sync");
return call;
} catch (error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment