by Felipe » Jan 31, 2012 4:21 pm
Hi and thanks for the aswer.
Apparently the " $g_time_tracking_enabled = ON; " variable wasnt configured on my config_inc.php and probably for this reason I dont have the time tracking information stored, so theres no data for the plug-in to search.
My doubts now are:
We have a field called "time_tracking" on "mantis_bugnote_table" which (in my case) doenst have any data on the logs (its "0" ZERO for all records).
But the Time Tracking plugin also create a table named "mantis_plugin_TimeTracking_data_table" which I deduce its the main table for the functionality to store data. This table is supposed to record all the time spent on each log everytime it is updated, right?
As long as my $g_time_tracking_enabled variable will have the "ON" setup it is supposed to start storing information in both tables or just the "...TimeTracking_data_table" ?
For the old logs (I have Mantis running for some time in production) that had already been created on my database I could do an update command for each log based on the information I have on "mantis_bug_history_table" (which contains each update that each log has received).
And as a plus, MySQL database store datas as "1308345445" (example) and hours in other int format, correct?
So what Im supposed to do to install this:
1) Install the Plug In using the "plug in manager" from the Mantis UI. (as usual)
2) Setup the $g_time_tracking_enabled = ON; on the config_inc.php file.
3) Update information on the tables ("...TimeTracking_data_table" ? or "mantis_bugnote_table"?) for the old logs receive the correct information that the TimeTracking UI should search for.
Am I getting this right?
Thanks in advance, guys! This is helping a lot!
Once I have this function fully enabled in my Mantis I could help on developing new tools if the comunity needs.
PS.: I use Mantis 1.2.5 (update it to 1.2.8 will take me sometime as long as I had made a lot of adjustments on it)