From 303a96a60f2ae0207119cd9eabbda5006ec7af8d Mon Sep 17 00:00:00 2001 From: tjeerddie Date: Sat, 28 Oct 2023 08:05:28 +0200 Subject: [PATCH] Bumpversion to 1.3.5rc1 (#405) --- .bumpversion.cfg | 2 +- orchestrator/__init__.py | 2 +- orchestrator/services/subscriptions.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 06cfa2303..e963ffa71 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.3.4 +current_version = 1.3.5rc1 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 2e7243aff..461d494e1 100644 --- a/orchestrator/__init__.py +++ b/orchestrator/__init__.py @@ -13,7 +13,7 @@ """This is the orchestrator workflow engine.""" -__version__ = "1.3.4" +__version__ = "1.3.5rc1" from orchestrator.app import OrchestratorCore from orchestrator.settings import app_settings, oauth2_settings diff --git a/orchestrator/services/subscriptions.py b/orchestrator/services/subscriptions.py index c0e3a93d3..0f1484801 100644 --- a/orchestrator/services/subscriptions.py +++ b/orchestrator/services/subscriptions.py @@ -580,7 +580,7 @@ def _generate_etag(model: dict) -> str: return md5(encoded).hexdigest() # noqa: S303, S324 -def convert_subscription_instance(obj: Any) -> dict[str, str]: +def convert_to_in_use_by_relation(obj: Any) -> dict[str, str]: return {"subscription_instance_id": str(obj.subscription_instance_id), "subscription_id": str(obj.subscription_id)} @@ -598,7 +598,7 @@ def inject_in_use_by_ids(path_to_block: str) -> None: return in_use_by_ids = [obj.in_use_by_id for obj in in_use_by_subs.col] - in_use_by_relations = [convert_subscription_instance(instance) for instance in in_use_by_subs] + in_use_by_relations = [convert_to_in_use_by_relation(instance) for instance in in_use_by_subs] update_in(subscription, f"{path_to_block}.in_use_by_ids", in_use_by_ids) update_in(subscription, f"{path_to_block}.in_use_by_relations", in_use_by_relations)