From 520feefaf41dbbdfaa28201af6424ce2094f6d2b Mon Sep 17 00:00:00 2001 From: Michael Harbarth Date: Tue, 16 Jan 2024 17:00:23 +0100 Subject: [PATCH] feat: Add a warning logging message if someone uses the new type transition feature --- polarion_rest_api_client/client.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/polarion_rest_api_client/client.py b/polarion_rest_api_client/client.py index 2d7c4da9..e870327f 100644 --- a/polarion_rest_api_client/client.py +++ b/polarion_rest_api_client/client.py @@ -847,6 +847,12 @@ def update_work_item( """ assert work_item.id is not None work_item_type = work_item.type or oa_types.UNSET + if work_item_type: + logger.warning( + "You are attempting to change the type of Work Item %s to %s.", + work_item.id, + work_item_type, + ) response = patch_work_item.sync_detailed( self.project_id,