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
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,10 @@
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
+
3
8
## 0.2.2 - 2024-10-10
4
9
5
10
* add ImportDashboardAcrossEnvironments class for transfering between superset environments
Copy file name to clipboardExpand all lines: lib/superset/services/duplicate_dashboard.rb
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -204,8 +204,8 @@ def validate_params
204
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?
205
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?
206
206
207
-
# new dataset validations - Need to remove this as we are using the existing datasets for the new dashboard
208
-
# raise ValidationError, "DATASET NAME CONFLICT: The Target Schema #{target_schema} already has existing datasets named: #{target_schema_matching_dataset_names.join(',')}" unless target_schema_matching_dataset_names.empty?
207
+
# new dataset validations - Need to be commented for EU dashboard duplication as we are using the existing datasets for the new dashboard
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
251
251
unlessexisting_names.flatten.empty?
252
252
logger.error" HALTING PROCESS: Schema #{target_schema} already has Dataset called #{existing_names}"
0 commit comments