Files
grafana/public/app/features/alerting/unified/utils/search.ts
Virginia Cepeda 43bbe567e7 Alerting: Support filtering rules by multiple datasources (#64355)
* Support having a datasources array in the rules filter

* Fix tests

* Display a MultiplePicker for filtering datasources

* Fix tests

* Refactor as MultipleDataSourcePicker as FC

* Make select box wider

* Remove FC from component definition

* Display ds options in groups based on whether they manage/don't manage rules

* Change dropdown texts and add help info
2023-03-22 12:02:56 -03:00

11 lines
228 B
TypeScript

import { RulesFilter } from '../search/rulesSearchParser';
export function getFilter(filter: Partial<RulesFilter>): RulesFilter {
return {
freeFormWords: [],
labels: [],
dataSourceNames: [],
...filter,
};
}