From a8007699a295ed7664e95a6d5c61f0dc18f6be40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20T=C3=B3th?= Date: Wed, 22 May 2024 16:36:12 +0200 Subject: [PATCH] FR-247 Fix output type in the CloseTransactionsWorkflow --- uniconfig/python/CHANGELOG.md | 3 +++ .../frinx_worker/uniconfig/workflows/transaction_workflows.py | 3 +-- uniconfig/python/pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/uniconfig/python/CHANGELOG.md b/uniconfig/python/CHANGELOG.md index ba5bedd..dc600fc 100644 --- a/uniconfig/python/CHANGELOG.md +++ b/uniconfig/python/CHANGELOG.md @@ -39,3 +39,6 @@ # 2.3.0 - Implemented workflow and workers for closing of all open transactions in the specified workflow (close_transactions). + +# 2.3.1 +- Fixed closed_transactions workflow output type (it must be string). diff --git a/uniconfig/python/frinx_worker/uniconfig/workflows/transaction_workflows.py b/uniconfig/python/frinx_worker/uniconfig/workflows/transaction_workflows.py index 58c9fa1..91f24fd 100644 --- a/uniconfig/python/frinx_worker/uniconfig/workflows/transaction_workflows.py +++ b/uniconfig/python/frinx_worker/uniconfig/workflows/transaction_workflows.py @@ -7,7 +7,6 @@ from pydantic import Field from frinx_worker.uniconfig.transaction_helpers import TransactionHelpers -from frinx_worker.uniconfig.transaction_helpers import UniconfigTransactionContext class TransactionWorkflows(ServiceWorkflowsImpl): @@ -26,7 +25,7 @@ class WorkflowInput(WorkflowImpl.WorkflowInput): ) class WorkflowOutput(WorkflowImpl.WorkflowOutput): - closed_transactions: list[UniconfigTransactionContext] = Field( + closed_transactions: str = Field( description="List of successfully closed UniConfig transactions in this workflow." ) diff --git a/uniconfig/python/pyproject.toml b/uniconfig/python/pyproject.toml index 1c32fa3..f1547ac 100644 --- a/uniconfig/python/pyproject.toml +++ b/uniconfig/python/pyproject.toml @@ -21,7 +21,7 @@ packages = [{ include = "frinx_worker" }] name = "frinx-uniconfig-worker" description = "Conductor worker for Frinx Uniconfig" authors = ["Jozef Volak "] -version = "2.3.0" +version = "2.3.1" readme = ["README.md", "CHANGELOG.md", "RELEASE.md"] keywords = ["frinx-machine", "uniconfig", "worker"] license = "Apache 2.0"