Page 1 of 1

In the Timeline log why are events out of order?

Posted: 12 Jun 2024, 22:48
by mushu
Mantis 2.26.1 on Windows

I've always wondered this, but why does the Timeline log the events in the wrong order when closing a ticket with a comment? Since the timeline flows UP into infinity (with older events at the bottom and the newest events at the top) when you close out a ticket and add a comment, the Timeline shows the Close event first and then it shows the Comment event. I'd consider that a bug...unless there's some mysterious reason why the devs wanted it to be that way. Please enlighten me.

Re: In the Timeline log why are events out of order?

Posted: 13 Jun 2024, 06:35
by cas
Think this is because first the bug is updated and next the note is added. In principle they happen on the same time, just a few milli seconds are in between which is enough to explain the order.
The correct way would be to set a timestamp @ the beginning of the process and use that for all updates. Result wil be random order :roll: also not desirable.

Re: In the Timeline log why are events out of order?

Posted: 13 Jun 2024, 15:48
by mushu
So why not check for note text and update that AND THEN call the routine to update the ticket status afterward? Seems to be pretty straightforward, but of course I haven't looked into the code because this is such a low priority. Just a bit annoying to tell users who ask that it was "just how they programmed it..."