-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: Add workflowId filter to the test-definitions endpoint
- Loading branch information
1 parent
75e2b6f
commit 0b94403
Showing
4 changed files
with
73 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
packages/cli/src/middlewares/list-query/dtos/test-definitions.filter.dto.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Expose } from 'class-transformer'; | ||
import { IsOptional, IsString } from 'class-validator'; | ||
|
||
import { BaseFilter } from './base.filter.dto'; | ||
|
||
export class TestDefinitionsFilter extends BaseFilter { | ||
@IsString() | ||
@IsOptional() | ||
@Expose() | ||
workflowId?: string; | ||
|
||
static async fromString(rawFilter: string) { | ||
return await this.toFilter(rawFilter, TestDefinitionsFilter); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters