Skip to content

Commit 5f175e7

Browse files
Fix Tasks API Schema Mismatch Issue [sc-67784] (#113)
* [sc-67784] Fixed Tasks API schema issue * Changed version update to '4.7.0' * Changed version update to '4.6.1'
1 parent 96fd596 commit 5f175e7

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ and this project adheres to [Semantic Versioning].
88
[Keep a Changelog]: https://keepachangelog.com/en/1.0.0/
99
[Semantic Versioning]: https://semver.org/spec/v2.0.0.html
1010

11-
## [4.6.1] - unreleased
11+
## [4.6.1] - 2025-05-19
12+
- Fixed Tasks API schema issue
1213
- Unify requirements in a single place
1314
- Support for Python 3.13.
1415

chartmogul/api/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Task(Resource):
1414

1515
class _Schema(Schema):
1616

17-
uuid = fields.String()
17+
task_uuid = fields.String()
1818
customer_uuid = fields.String()
1919
assignee = fields.String()
2020
task_details = fields.String()

test/api/test_customer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@
363363
allOpportunities = {"entries": [opportunityEntry], "cursor": "cursor==", "has_more": True}
364364

365365
task = {
366-
"uuid": "00000000-0000-0000-0000-000000000000",
366+
"task_uuid": "00000000-0000-0000-0000-000000000000",
367367
"customer_uuid": "cus_00000000-0000-0000-0000-000000000000",
368368
"assignee": "customer@example.com",
369369
"task_details": "This is some task details text.",
@@ -382,7 +382,7 @@
382382
}
383383

384384
taskEntry = {
385-
"uuid": "00000000-0000-0000-0000-000000000000",
385+
"task_uuid": "00000000-0000-0000-0000-000000000000",
386386
"customer_uuid": "cus_00000000-0000-0000-0000-000000000000",
387387
"assignee": "customer@example.com",
388388
"task_details": "This is some task details text.",

test/api/test_task.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from pprint import pprint
66

77
task = {
8-
"uuid": "00000000-0000-0000-0000-000000000000",
8+
"task_uuid": "00000000-0000-0000-0000-000000000000",
99
"customer_uuid": "cus_00000000-0000-0000-0000-000000000000",
1010
"assignee": "customer@example.com",
1111
"task_details": "This is some task details text.",
@@ -80,7 +80,7 @@ def test_create(self, mock_requests):
8080
@requests_mock.mock()
8181
def test_patch(self, mock_requests):
8282
new_task = {
83-
"uuid": "00000000-0000-0000-0000-000000000000",
83+
"task_uuid": "00000000-0000-0000-0000-000000000000",
8484
"customer_uuid": "cus_00000000-0000-0000-0000-000000000000",
8585
"assignee": "customer@example.com",
8686
"task_details": "This is some task details text.",

0 commit comments

Comments
 (0)