Merge pull request #25831 from drodil/scaffolder_tasks_status_filter

feat: add support for status filtering in scaffolder endpoint
This commit is contained in:
Ben Lambert
2024-08-06 13:03:44 +02:00
committed by GitHub
10 changed files with 86 additions and 26 deletions
+1 -1
View File
@@ -315,7 +315,7 @@ export interface TaskBroker {
// (undocumented)
get(taskId: string): Promise<SerializedTask>;
// (undocumented)
list?(options?: { createdBy?: string }): Promise<{
list?(options?: { createdBy?: string; status?: TaskStatus }): Promise<{
tasks: SerializedTask[];
}>;
// (undocumented)
+4 -1
View File
@@ -180,5 +180,8 @@ export interface TaskBroker {
get(taskId: string): Promise<SerializedTask>;
list?(options?: { createdBy?: string }): Promise<{ tasks: SerializedTask[] }>;
list?(options?: {
createdBy?: string;
status?: TaskStatus;
}): Promise<{ tasks: SerializedTask[] }>;
}