You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,13 @@
1
1
## Change Log
2
2
3
+
## 0.2.3 - 2024-11-15
4
+
5
+
* modifies the `Superset::Dashboard::Datasets::List.new(id).dataset_details` and `Superset::Dashboard::Datasets::List.new(id).list` to optionally include filter datasets as well to duplicate those during the dashboard duplication process. It also add a new column "Filter only" in the result which shows if a dataset is used only on filters
6
+
* This also adds an additional check in source dataset duplication that if any dataset already exists with the new name in the target schema we can use the existing dataset itself for the new dashboard also.
7
+
* Exporting a Dashboard will also include the Zip file in the repo backup (destination_path) folder.
8
+
* Exporting a Dashboard and copying the files to the backup folder will also clear out any previous backup files that no longer exist in the current zip export.
9
+
* Adds a put endpoint for chart and datasets which is needed for the bulk update of set of charts/datasets
10
+
3
11
## 0.2.2 - 2024-10-10
4
12
5
13
* add ImportDashboardAcrossEnvironments class for transfering between superset environments
Superset::Dashboard::Datasets::List.new(10).list # get all datasets for dashboard 10
13
+
Superset::Dashboard::Datasets::List.new(dashboard_id:10).list # get all datasets for dashboard 10
14
+
15
+
Superset::Dashboard::Datasets::List.new(dashboard_id:10, include_filter_datasets:true).list # get all datasets for dashboard 10 including the ones used only in dashboard filters
raise"Unable to retrieve datasets for source dashboard #{source_dashboard_id}: #{e.message}"
185
190
end
@@ -199,7 +204,7 @@ def validate_params
199
204
raiseValidationError,"The source dashboard datasets are required to point to one schema only. Actual schema list is #{source_dashboard_schemas.join(',')}"ifsource_dashboard_has_more_than_one_schema?
200
205
raiseValidationError,"One or more source dashboard filters point to a different schema than the dashboard charts. Identified Unpermittied Filter Dataset Ids are #{unpermitted_filter_dataset_ids.to_s}"ifunpermitted_filter_dataset_ids.any?
201
206
202
-
# new dataset validations
207
+
# new dataset validations - Need to be commented for EU dashboard duplication as we are using the existing datasets for the new dashboard
203
208
raiseValidationError,"DATASET NAME CONFLICT: The Target Schema #{target_schema} already has existing datasets named: #{target_schema_matching_dataset_names.join(',')}"unlesstarget_schema_matching_dataset_names.empty?
existing_names=Superset::Dataset::List.new(title_contains: source_dataset_name,schema_equals: target_schema).result.map{|t|t['table_name']}.uniq# contains match to cover with suffix as well
246
251
unlessexisting_names.flatten.empty?
247
252
logger.error" HALTING PROCESS: Schema #{target_schema} already has Dataset called #{existing_names}"
0 commit comments