Skip to content

Commit aed705b

Browse files
committed
adjusts over write default for importing dashboard
1 parent bbff9bb commit aed705b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/superset/dashboard/export.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module Dashboard
1313
class Export < Request
1414
include FileUtilities
1515

16-
TMP_SUPERSET_DASHBOARD_PATH = '/tmp/superset_dashboards'
16+
TMP_SUPERSET_DASHBOARD_PATH = '/tmp/superset_dashboard_exports'
1717

1818
attr_reader :dashboard_id, :destination_path
1919

lib/superset/dashboard/import.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
# Subsequent imports will result in updating/over writing the previous imported dashboard with the contents of the zip file.
1212

1313
# the overwrite flag will determine if the dashboard will be updated or created new
14+
# overwrite: false .. will result in an error if a dashboard with the same UUID already exists
1415

1516
# Usage
16-
# Superset::Dashboard::Import.new(source_zip_file: '/tmp/dashboard.zip', overwrite: true).perform
17+
# Superset::Dashboard::Import.new(source_zip_file: '/tmp/dashboard.zip').perform
1718
#
1819

1920
module Superset
@@ -22,7 +23,7 @@ class Import < Request
2223

2324
attr_reader :source_zip_file, :overwrite
2425

25-
def initialize(source_zip_file: , overwrite: false)
26+
def initialize(source_zip_file: , overwrite: true)
2627
@source_zip_file = source_zip_file
2728
@overwrite = overwrite
2829
end

0 commit comments

Comments
 (0)