mirror of
https://github.com/apache/superset.git
synced 2026-04-21 17:14:57 +00:00
feat(sqllab): save query parameters in database (#21682)
This commit is contained in:
@@ -499,8 +499,8 @@ const SqlEditor = ({
|
||||
);
|
||||
};
|
||||
|
||||
const onSaveQuery = async query => {
|
||||
const savedQuery = await dispatch(saveQuery(query));
|
||||
const onSaveQuery = async (query, clientId) => {
|
||||
const savedQuery = await dispatch(saveQuery(query, clientId));
|
||||
dispatch(addSavedQueryToTabState(queryEditor, savedQuery));
|
||||
};
|
||||
|
||||
@@ -580,7 +580,9 @@ const SqlEditor = ({
|
||||
queryEditorId={queryEditor.id}
|
||||
columns={latestQuery?.results?.columns || []}
|
||||
onSave={onSaveQuery}
|
||||
onUpdate={query => dispatch(updateSavedQuery(query))}
|
||||
onUpdate={(query, remoteId, id) =>
|
||||
dispatch(updateSavedQuery(query, remoteId, id))
|
||||
}
|
||||
saveQueryWarning={saveQueryWarning}
|
||||
database={database}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user