After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 417961 - Temp table of repetitive events
Temp table of repetitive events
Status: RESOLVED FIXED
Product: chronojump
Classification: Other
Component: chronojump
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Xavier de Blas
Xavier de Blas
Depends on:
Blocks:
 
 
Reported: 2007-03-13 18:55 UTC by Xavier de Blas
Modified: 2007-03-14 16:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Xavier de Blas 2007-03-13 18:55:33 UTC
IT will be nice to have a temp table for recording long events (long repetitive jumps or intervallic runs). Then, if the software crashes or if there's any other problem, chronojump should be able to recuperate that event until was last recorded.

This events cannot be in normal jumpReactive or runInterval tables with a -1 id, because this can crash with other parts of the software. It will be easy to create two special new tables for this:
-tempJumpReactive
-tempRunInterval
both with the same characteristics than jumpReactive and runInterval but they will contain only 0 or 1 events. And every new event will have the value '1' as uniqueID.

in jump, on the first 10 times it will be created the table, and then updated every 10. In inteval run, it will be created at first subrun, and updated every new subrun.

When event finish ok, the event on that row will be deleted. 

On chronojump start (before loading any session), it will check if this event exist, and if exists it will try to recover, and alert the user.
Comment 1 Xavier de Blas 2007-03-13 20:28:20 UTC
80% done:
-need check: (counting & deleteTemp after threads have done)
-need: do stuff on start if a temp table is found

The tempTables contain more than one event (there's no update, there are Inserts)
All the sqlite tempTable events are delete when event is ok