if (filterBy === 'is_automated' || filterBy === 'priority' || filterBy === 'category') {
    const query = { executions__run: runId }
    if (filterBy === 'is_automated') {
      query[filterBy] = filterValue
    } else if (filterBy === 'priority') {