Skip to content

Commit

Permalink
feat: Add a warning logging message if someone uses the new type tran…
Browse files Browse the repository at this point in the history
…sition feature
  • Loading branch information
micha91 committed Jan 16, 2024
1 parent 8c49d7c commit 3ea343d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions polarion_rest_api_client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,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,
Expand Down

0 comments on commit 3ea343d

Please sign in to comment.