File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,15 +47,15 @@ def data_sovereignty_issues
47
47
reasons = [ ]
48
48
chart_dataset_ids = dashboard [ :datasets ] [ :chart_datasets ] . map { |d | d [ :id ] }
49
49
50
- # invalid if any filters datasets are not part of the chart datasets
50
+ # add WARNING msg if any filters datasets are not part of the chart datasets
51
51
unknown_datasets = dashboard [ :filters ] [ :filter_dataset_ids ] - chart_dataset_ids
52
52
if unknown_datasets . any?
53
53
reasons << "WARNING: One or more filter datasets is not included in chart datasets for " \
54
54
"filter dataset ids: #{ unknown_datasets . join ( ', ' ) } ."
55
55
reasons << "DETAILS: #{ unknown_dataset_details ( unknown_datasets ) } "
56
56
end
57
57
58
- # invalid if any filters datasets are not part of the chart datasets
58
+ # add ERROR msg if multiple chart dataset schemas are found
59
59
chart_dataset_schemas = dashboard [ :datasets ] [ :chart_datasets ] . map { |d | d [ :schema ] } . uniq
60
60
if chart_dataset_schemas . count > 1
61
61
reasons << "ERROR: Multiple distinct chart dataset schemas found. Expected 1. Found #{ chart_dataset_schemas . count } . " \
You can’t perform that action at this time.
0 commit comments