in dashboards-notifications/public/pages/Channels/Channels.tsx [137:154]
static getQueryObjectFromState(state: ChannelsState) {
const config_type = _.isEmpty(state.filters.type)
? Object.keys(CHANNEL_TYPE) // by default get all channels but not email senders/groups
: state.filters.type;
const queryObject: any = {
from_index: state.from,
max_items: state.size,
query: state.search,
config_type,
sort_field: state.sortField,
sort_order: state.sortDirection,
};
if (state.filters.state != undefined)
queryObject.is_enabled = state.filters.state;
if (!_.isEmpty(state.filters.source))
queryObject.feature_list = state.filters.source;
return queryObject;
}