From 303a122c754ebcf03e977a1e2c7b6f6a9668b700 Mon Sep 17 00:00:00 2001 From: tjeerddie Date: Thu, 18 Jul 2024 12:59:45 +0200 Subject: [PATCH] Change customer_key in customer_contact_list to default customer_id (#715) * Change customer_key in customer_contact_list to default customer_id * Bumpversion to 2.6.2 --- .bumpversion.cfg | 2 +- orchestrator/__init__.py | 2 +- orchestrator/forms/validators/customer_contact_list.py | 2 +- test/unit_tests/forms/test_customer_contact_list.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index a4da20d6f..38cf2ff85 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 2.6.1 +current_version = 2.6.2 commit = False tag = False parse = (?P\d+)\.(?P\d+)\.(?P\d+)(rc(?P\d+))? diff --git a/orchestrator/__init__.py b/orchestrator/__init__.py index f9c8b24e3..9e37a9a86 100644 --- a/orchestrator/__init__.py +++ b/orchestrator/__init__.py @@ -13,7 +13,7 @@ """This is the orchestrator workflow engine.""" -__version__ = "2.6.1" +__version__ = "2.6.2" from orchestrator.app import OrchestratorCore from orchestrator.settings import app_settings diff --git a/orchestrator/forms/validators/customer_contact_list.py b/orchestrator/forms/validators/customer_contact_list.py index 806bd6290..c96d71a6f 100644 --- a/orchestrator/forms/validators/customer_contact_list.py +++ b/orchestrator/forms/validators/customer_contact_list.py @@ -23,7 +23,7 @@ def customer_contact_list( customer_id: Optional[UUID] = None, - customer_key: Optional[str] = "customer", + customer_key: Optional[str] = "customer_id", min_items: Optional[int] = None, max_items: Optional[int] = None, ) -> type[list[T]]: diff --git a/test/unit_tests/forms/test_customer_contact_list.py b/test/unit_tests/forms/test_customer_contact_list.py index f01540d66..5542f607b 100644 --- a/test/unit_tests/forms/test_customer_contact_list.py +++ b/test/unit_tests/forms/test_customer_contact_list.py @@ -53,7 +53,7 @@ class Form(FormPage): "additionalProperties": False, "properties": { "customer_contacts": { - "customerKey": "customer", + "customerKey": "customer_id", "items": {"$ref": "#/$defs/ContactPerson"}, "title": "Customer Contacts", "type": "array",