versionone / VersionOne.SDK.Python

A library for custom Python development against the VersionOne Platform's REST-based API.
BSD 3-Clause "New" or "Revised" License
23 stars 32 forks source link

History is not complete #33

Closed nicosmik closed 8 years ago

nicosmik commented 8 years ago

Here is what I do when I try to get the History of one Story. `#!/usr/bin/env python from v1pysdk import V1Meta

v1 = V1Meta(instance_url="https://XXX", username="XXX", password="XXX") story = v1.Story(224775) for s in story.History: print s todo = [0 if not c.ToDo else int(c.ToDo) for c in s.Children]
hrsdone = [sum([0 if not a.Value else int(a.Value) for a in c.Actuals]) for c in s.Children] detailestimate = [0 if not c.DetailEstimate else float(c.DetailEstimate) for c in s.Children] print 'Date', s.ChangeDate, 'detailestimate', detailestimate, sum(detailestimate), 'hrsdone', hrsdone, sum(hrsdone), 'todo', todo, sum(todo)`

But when I compare the result with the one from VersionOne website, some changes are missing. I don't see many dates where the todo or the hours done have been modified.

Here is output logs: Story(224775:550850) Date 2016-06-20T11:17:15.713 detailestimate [32.0, 16.0, 16.0] 64.0 hrsdone [0, 0, 0] 0 todo [32, 16, 16] 64 Story(224775:550909) Date 2016-06-21T11:00:11.333 detailestimate [32.0, 16.0, 16.0] 64.0 hrsdone [0, 0, 0] 0 todo [32, 16, 16] 64 Story(224775:551370) Date 2016-06-29T10:09:53.243 detailestimate [32.0, 16.0, 16.0] 64.0 hrsdone [46, 8, 8] 62 todo [0, 12, 12] 24 Story(224775:551589) Date 2016-06-30T09:09:24.303 detailestimate [32.0, 16.0, 16.0] 64.0 hrsdone [46, 16, 8] 70 todo [0, 4, 12] 16

What should I do to get the missing changes?

nicosmik commented 8 years ago

Sorry, this is the wrong location See [http://stackoverflow.com/questions/38122868/python-versionone-history-is-missing-changes]()