File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ module Dashboard
13
13
class Export < Request
14
14
include FileUtilities
15
15
16
- TMP_SUPERSET_DASHBOARD_PATH = '/tmp/superset_dashboards '
16
+ TMP_SUPERSET_DASHBOARD_PATH = '/tmp/superset_dashboard_exports '
17
17
18
18
attr_reader :dashboard_id , :destination_path
19
19
Original file line number Diff line number Diff line change 11
11
# Subsequent imports will result in updating/over writing the previous imported dashboard with the contents of the zip file.
12
12
13
13
# 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
14
15
15
16
# 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
17
18
#
18
19
19
20
module Superset
@@ -22,7 +23,7 @@ class Import < Request
22
23
23
24
attr_reader :source_zip_file , :overwrite
24
25
25
- def initialize ( source_zip_file : , overwrite : false )
26
+ def initialize ( source_zip_file : , overwrite : true )
26
27
@source_zip_file = source_zip_file
27
28
@overwrite = overwrite
28
29
end
You can’t perform that action at this time.
0 commit comments