Skip to content

Commit 7943fc5

Browse files
authored
Merge pull request #33 from itk-dev-rpa/hotfix/kmd-nova-case
Hotfix/kmd nova case
2 parents fe86dfa + 5b3cf1f commit 7943fc5

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

changelog.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [1.3.1] - 2024-02-21
11+
12+
### Fixed
13+
14+
- Key error when accessing a Nova Task without a caseworker.
15+
1016
## [1.3.0] - 2024-02-20
1117

1218
### Added
@@ -61,7 +67,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6167

6268
- Initial release
6369

64-
[Unreleased] https://github.com/itk-dev-rpa/ITK-dev-shared-components/compare/1.3.0...HEAD
70+
[Unreleased] https://github.com/itk-dev-rpa/ITK-dev-shared-components/compare/1.3.1...HEAD
71+
[1.3.1] https://github.com/itk-dev-rpa/ITK-dev-shared-components/releases/tag/1.3.1
6572
[1.3.0] https://github.com/itk-dev-rpa/ITK-dev-shared-components/releases/tag/1.3.0
6673
[1.2.0] https://github.com/itk-dev-rpa/ITK-dev-shared-components/releases/tag/1.2.0
6774
[1.1.0] https://github.com/itk-dev-rpa/ITK-dev-shared-components/releases/tag/1.1.0

itk_dev_shared_components/kmd_nova/nova_tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ def get_tasks(case_uuid: str, nova_access: NovaAccess, limit: int = 100) -> list
8989
uuid = task_dict['taskUuid'],
9090
title = task_dict['taskTitle'],
9191
description = task_dict.get('taskDescription'),
92-
case_worker_ident = task_dict['caseWorker']['ident'],
93-
case_worker_uuid = task_dict['caseWorker']['id'],
92+
case_worker_ident = task_dict['caseWorker']['ident'] if 'caseWorker' in task_dict else None,
93+
case_worker_uuid = task_dict['caseWorker']['id'] if 'caseWorker' in task_dict else None,
9494
status_code = task_dict['taskStatusCode'],
9595
deadline = datetime_from_iso_string(task_dict.get('taskDeadline')),
9696
created_date = datetime_from_iso_string(task_dict.get('taskCreateDate')),

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "itk_dev_shared_components"
7-
version = "1.3.0"
7+
version = "1.3.1"
88
authors = [
99
{ name="ITK Development", email="itk-rpa@mkb.aarhus.dk" },
1010
]

0 commit comments

Comments
 (0)