DSD-DBS / capella-polarion

Capella-Polarion Bridge - bi-directional integration of the 2 things based on REST API
https://dsd-dbs.github.io/capella-polarion/
4 stars 1 forks source link

Fix patch workitems #44

Closed ewuerger closed 10 months ago

ewuerger commented 10 months ago

Currently all work items are patched. Only existing work items should be patched (iff they differ). This leads to a bug, where a KeyError is raised for WorkItems on which the serializer failed. For these None is placed inside the converter session. In the patch work item call it is tried to receive a non existing work item from the PolarionRepo.

Also handle Constraints which don't have a linkedText defined. Their description is then just an empty Markup.