Skip to content

Commit 735552e

Browse files
justinparksadpandajoe
authored andcommitted
fix(sqllab): Allow clear on schema and catalog (#32515)
(cherry picked from commit 4c3aae7)
1 parent fdbc40d commit 735552e

File tree

2 files changed

+3
-0
lines changed
  • superset/commands/dataset/importers/v1
  • superset-frontend/src/components/DatabaseSelector

2 files changed

+3
-0
lines changed

superset-frontend/src/components/DatabaseSelector/index.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ export default function DatabaseSelector({
392392
options={catalogOptions}
393393
showSearch
394394
value={currentCatalog || undefined}
395+
allowClear
395396
/>,
396397
refreshIcon,
397398
);
@@ -418,6 +419,7 @@ export default function DatabaseSelector({
418419
options={schemaOptions}
419420
showSearch
420421
value={currentSchema}
422+
allowClear
421423
/>,
422424
refreshIcon,
423425
);

superset/commands/dataset/importers/v1/utils.py

+1
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ def validate_data_uri(data_uri: str) -> None:
102102
raise DatasetForbiddenDataURI()
103103

104104

105+
# pylint: disable=too-many-branches
105106
def import_dataset(
106107
config: dict[str, Any],
107108
overwrite: bool = False,

0 commit comments

Comments
 (0)