The method checkOptions in models/dataview/aggregation already validates that the necessary options are included and that the aggregation methods exist. However, the overview use case has a more restricted list of valid methods (it only accepts sum or count) and thus the existing validation wasn't enough in here.
Extra validation has been added for the overview together with some tests to validate that all cases are covered by one of the validation methods.
Fixes #1137
The method
checkOptions
inmodels/dataview/aggregation
already validates that the necessary options are included and that the aggregation methods exist. However, the overview use case has a more restricted list of valid methods (it only accepts sum or count) and thus the existing validation wasn't enough in here.Extra validation has been added for the overview together with some tests to validate that all cases are covered by one of the validation methods.