Time tracking stops at browser close

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
lolka_bolka
Posts: 7
Joined: 07 Dec 2006, 13:40
Location: Hungary

Time tracking stops at browser close

Post by lolka_bolka »

Hi!

The time tracking is one of thw most powerfull feature of Mantis and all bug tracker system.
I started to work, push start, and when finished, push stop.

But, if there are some unexpected thing, like browser crash, problem with electricity, anything, of just close the browser, the time tracker lost all the tracked time.

I counfigured my time tracker system from here:
http://www.mantisbt.org/docs/master-1.2 ... METRACKING

My settings are this:
# --- Time tracking ---
$g_time_tracking_enabled = ON;
$g_time_tracking_without_note = ON;
$g_time_tracking_view_threshold = DEVELOPER;
$g_time_tracking_stopwatch = ON;

My other question is to, who can i see, how many time i spent on 1 issue, or on 1 project? These informations are really important for me!

Thank you for your help.
lolka_bolka
Posts: 7
Joined: 07 Dec 2006, 13:40
Location: Hungary

Re: Time tracking stops at browser close

Post by lolka_bolka »

Can anybody help with this please?
It's so frustrating, when you works 5:42 hours on something, and then close your browser, and don't remember, it was 5 hours, 6 hours, 4 hours, or exactly how many?
atrol
Site Admin
Posts: 8553
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Time tracking stops at browser close

Post by atrol »

There is no way to prevent you from closing the browser (and I hope there will never be a way that a web application is able to prevent me from closing the browser)

You would have to develop a method that makes asynchronous updates of the database in a certain interval.
Please use Search before posting and read the Manual
lolka_bolka
Posts: 7
Joined: 07 Dec 2006, 13:40
Location: Hungary

Re: Time tracking stops at browser close

Post by lolka_bolka »

atrol wrote:There is no way to prevent you from closing the browser (and I hope there will never be a way that a web application is able to prevent me from closing the browser)

You would have to develop a method that makes asynchronous updates of the database in a certain interval.
Yes, i know, there is no way to prevent an event waht closing the browser.
But if i am working an a ticket, what is takes hours, there should be a solution, what is store the state of time tracking.

I mean, when i push the start button, an ajax call should register it into a table, a timestamp, ticket ID, state (started / stoped).
So, when there is an electricity problem, or any event, what closes the browser, if i login again, and open that ticket, i do not lost my tracked time, because system could read out the state of time tracking, and if it started, it could figure out, how much time worked on it, and set the text input field.

This is a suggestion.
atrol
Site Admin
Posts: 8553
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Time tracking stops at browser close

Post by atrol »

Submitting a patch is always a good idea, as it increases the chances of improvement eventually making it into MantisBT core. All contributions are welcome and greatly appreciated.

Patch submissions can be made in several ways. In the order of preference:

1. Send us a Pull Request on our Github repository [1]
2. Attach a GIT patch to the issue
3. Attach a Unified Diff, clearly specifying the patch's base release

Kindly avoid to upload entire modified PHP files.

Please make sure that your submissions adhere to our Coding Guidelines [2], if they don't your patch might be rejected.

[1] https://github.com/mantisbt/mantisbt
[2] http://www.mantisbt.org/wiki/doku.php/m ... guidelines
Please use Search before posting and read the Manual
Post Reply