Ref T3569. Fixes T3567. When figuring out how much time has been spent on an object, subtract "preemptive" events which interrupted the object.
Also, make the UI look vaguely sane:
{F72773}
Differential D7349
Make Phrequent time accounting aware of the stack epriestley on Oct 18 2013, 7:02 PM. Authored by Tags None Referenced Files
Details
Ref T3569. Fixes T3567. When figuring out how much time has been spent on an object, subtract "preemptive" events which interrupted the object. Also, make the UI look vaguely sane: {F72773} Added a bunch of unit tests, mucked around in the UI.
Diff Detail
Event TimelineComment Actions Looks good
Comment Actions I noticed a slight issue after applying this patch. I don't know whether it's a bug or an expected behaviour. I noticed a bug after applying this patch: Steps to reproduce:
Exected: Got: Comment Actions Update regarding my issue:I am seeing the issue with only one of my tasks. I think this is probably because I meddled with the mysql tables. So it's not likely a bug with this patch. Comment Actions Your expected behavior is also my expected behavior, so let me know if you can repro. There might be some bugs in this somewhere -- it's not super simple and the unit tests only give me okayish confidence in it. Comment Actions @epriestley, I got this error when I tried to start tracking a task.
Comment Actions @epriestley - I can reproduce the "2 d" error, but I don't know why it's coming. Doesn't happen with anything except 1 task. these are the contents of my phrequent table: {P953} |