Skip to content

Commit 77dfa3b

Browse files
committed
[NEP-18619]: Using the new filter_configuration endpoint to fetch the filter configuration
1 parent 684c64b commit 77dfa3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/superset/services/duplicate_dashboard.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ def source_dashboard_dataset_ids
259259
end
260260

261261
def source_dashboard_filter_dataset_ids
262-
@filter_dataset_ids ||= Superset::Dashboard::Filters::List.new(id).perform
262+
@filter_dataset_ids ||= source_dashboard.filter_configuration.map { |c| c['targets'] }.flatten.compact.map { |c| c['datasetId'] }.flatten.compact
263263
end
264264

265265
# Primary Assumption is that all charts datasets on the source dashboard are pointing to the same database schema

0 commit comments

Comments
 (0)