From 1bbe9a03c0e6aac92b798f4a46fbac75972d530d Mon Sep 17 00:00:00 2001 From: Pierre Millot Date: Mon, 2 Dec 2024 22:15:26 +0100 Subject: [PATCH 1/2] fix(specs): add sourceType to listTasks --- specs/ingestion/common/observabilityParameters.yml | 4 +--- specs/ingestion/common/taskParameters.yml | 13 +++++++++++++ specs/ingestion/paths/tasks/v2/tasks.yml | 1 + 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/specs/ingestion/common/observabilityParameters.yml b/specs/ingestion/common/observabilityParameters.yml index 109892474a..69f6fd370c 100644 --- a/specs/ingestion/common/observabilityParameters.yml +++ b/specs/ingestion/common/observabilityParameters.yml @@ -30,9 +30,7 @@ runType: in: query description: Run type for filtering the list of task runs. schema: - type: array - items: - $ref: './schemas/run.yml#/RunType' + $ref: './schemas/run.yml#/RunType' taskID: name: taskID diff --git a/specs/ingestion/common/taskParameters.yml b/specs/ingestion/common/taskParameters.yml index 11783e9bfd..f455216fcb 100644 --- a/specs/ingestion/common/taskParameters.yml +++ b/specs/ingestion/common/taskParameters.yml @@ -32,6 +32,19 @@ sourceID: items: $ref: './schemas/common.yml#/sourceID' +sourceType: + name: sourceType + in: query + description: Filters the tasks with the specified source type. + required: false + style: form + explode: false + schema: + type: array + items: + $ref: './schemas/source.yml#/SourceType' + example: json,commercetools + destinationID: name: destinationID in: query diff --git a/specs/ingestion/paths/tasks/v2/tasks.yml b/specs/ingestion/paths/tasks/v2/tasks.yml index ffc5c6aebb..1eafd687b5 100644 --- a/specs/ingestion/paths/tasks/v2/tasks.yml +++ b/specs/ingestion/paths/tasks/v2/tasks.yml @@ -14,6 +14,7 @@ get: - $ref: '../../../common/taskParameters.yml#/action' - $ref: '../../../common/taskParameters.yml#/enabled' - $ref: '../../../common/taskParameters.yml#/sourceID' + - $ref: '../../../common/taskParameters.yml#/sourceType' - $ref: '../../../common/taskParameters.yml#/destinationID' - $ref: '../../../common/taskParameters.yml#/triggerType' - $ref: '../../../common/taskParameters.yml#/sort' From a656e9712c2e5247ecbc93f1228663a2835ab2aa Mon Sep 17 00:00:00 2001 From: Pierre Millot Date: Tue, 3 Dec 2024 09:46:55 +0100 Subject: [PATCH 2/2] rollback --- specs/ingestion/common/observabilityParameters.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/specs/ingestion/common/observabilityParameters.yml b/specs/ingestion/common/observabilityParameters.yml index 69f6fd370c..109892474a 100644 --- a/specs/ingestion/common/observabilityParameters.yml +++ b/specs/ingestion/common/observabilityParameters.yml @@ -30,7 +30,9 @@ runType: in: query description: Run type for filtering the list of task runs. schema: - $ref: './schemas/run.yml#/RunType' + type: array + items: + $ref: './schemas/run.yml#/RunType' taskID: name: taskID