ikdekker / jira-sync-timesheets

MIT License
0 stars 0 forks source link

Library not functioning properly #5

Open ikdekker opened 5 years ago

ikdekker commented 5 years ago

[will be updated soon (21/10)]

It seems the lesstif/php-jira-rest-client, which is in use to communicate with the Jira API, is not working as expected.

I will open an issue as soon as I encounter it again (can work around it for the time being)

ikdekker commented 4 years ago

The JiraRestApi service has a search method, allowing for an offset and batch param to be given. It is expected that after calling this method with a batch of 50, the getTotal() method on the result yields the batch size or less (on the end of the offset to the actual total). So when results < _batchsize. However, this is not the case. Getting the total of the result will yield the total of worklogs (in my search-case) of the Jira environment.

This would be decent, if the actual data result would also provide the full list of issues, but to my last knowledge (not verified lately), only _batchsize at most issues are returned.

Getting the full list of issues would not be desirable for environments with limited memory available.

ikdekker commented 4 years ago

If I have the time and motivation, I might check if this bug persists in the latest version of the library. If so, I will analyse the situation again and create a bug report over there.