diff --git a/packages/cli/src/executions/executions.service.ts b/packages/cli/src/executions/executions.service.ts index 60789ccf3d..31f112811b 100644 --- a/packages/cli/src/executions/executions.service.ts +++ b/packages/cli/src/executions/executions.service.ts @@ -38,6 +38,7 @@ import { Container } from 'typedi'; import { getStatusUsingPreviousExecutionStatusMethod } from './executionHelpers'; import { ExecutionMetadata } from '@/databases/entities/ExecutionMetadata'; import { DateUtils } from 'typeorm/util/DateUtils'; +import type { TagEntity } from '@db/entities/TagEntity'; interface IGetExecutionsQueryFilter { id?: FindOperator | string; @@ -52,6 +53,7 @@ interface IGetExecutionsQueryFilter { metadata?: Array<{ key: string; value: string }>; startedAfter?: string; startedBefore?: string; + tags?: Array; } const schemaGetExecutionsQueryFilter = { @@ -72,6 +74,7 @@ const schemaGetExecutionsQueryFilter = { metadata: { type: 'array', items: { $ref: '#/$defs/metadata' } }, startedAfter: { type: 'date-time' }, startedBefore: { type: 'date-time' }, + tags: { type: 'array', items: { type: 'string' } }, }, $defs: { metadata: { @@ -194,6 +197,10 @@ export class ExecutionsService { if ('startedBefore' in filter) { delete filter.startedBefore; } + + if ('tags' in filter) { + delete filter.tags; + } } }