if (filterBy === 'component' || filterBy === 'tag') {
    const query = { plan: planId }
    query[`${filterBy}__name__icontains`] = filterValue

    jsonRPC('TestCase.filter', query, function (filtered) {