Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
c86eecb3
Unverified
Commit
c86eecb3
authored
3 years ago
by
Alexander Polyankin
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Invalidate tables after manual re-syncing (#19527)
parent
75be28c2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/metabase/admin/databases/database.js
+2
-0
2 additions, 0 deletions
frontend/src/metabase/admin/databases/database.js
with
2 additions
and
0 deletions
frontend/src/metabase/admin/databases/database.js
+
2
−
0
View file @
c86eecb3
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment