jesper-raemaekers / python-polarion

A Python package to access the Polarion WSDL API.
MIT License
56 stars 35 forks source link

Added functionality to cache changes in Test Steps #167

Closed furinij closed 5 months ago

furinij commented 7 months ago

This change is to prevent a round-trip request/response to Polarion every time one of the functions addTestStep, removeTestStep and updateTestStep is called. In case a mass change of Test Steps is required, it would take a lot of time to process and also would generate a lot of revisions for the Workitem in Polarion.

In order to prevent this, each one of the functions addTestStep, removeTestStep and updateTestStep has a new parameter that tells if the action should be cached or not, and a new function saveTestSteps must be called to update the Test Steps to Polarion in case there are any cached changes.

The new parameters are False by default so as not to break compatibility.

furinij commented 5 months ago

The same behavior can be achieved using the startTransaction and endTransaction. This implementation is not needed. Closing the PR