File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ def datasets_details
51
51
private
52
52
53
53
def filter_dataset_ids
54
- @filter_dataset_ids ||= dashboard . filter_configuration . map { |c | c [ 'targets' ] } . flatten . compact . map { |c | c [ 'datasetId' ] } . flatten . compact
54
+ @filter_dataset_ids ||= dashboard . filter_configuration . map { |c | c [ 'targets' ] } . flatten . compact . map { |c | c [ 'datasetId' ] } . flatten . compact . uniq
55
55
end
56
56
57
57
def filter_datasets ( filter_dataset_ids_not_used_in_charts )
Original file line number Diff line number Diff line change @@ -259,7 +259,7 @@ def source_dashboard_dataset_ids
259
259
end
260
260
261
261
def source_dashboard_filter_dataset_ids
262
- @filter_dataset_ids ||= source_dashboard . filter_configuration . map { |c | c [ 'targets' ] } . flatten . compact . map { |c | c [ 'datasetId' ] } . flatten . compact
262
+ @filter_dataset_ids ||= source_dashboard . filter_configuration . map { |c | c [ 'targets' ] } . flatten . compact . map { |c | c [ 'datasetId' ] } . flatten . compact . uniq
263
263
end
264
264
265
265
# Primary Assumption is that all charts datasets on the source dashboard are pointing to the same database schema
You can’t perform that action at this time.
0 commit comments