← Back to team overview

gtg-contributors team mailing list archive

Automatic recovery of XML file

 

Hi,

I've pushed an interesting commit to the trunk. It recovers your XML file from backup by default. An example:

* For some unspecified reason, your 'projects.xml' fails to load. E.g. you play with a bad written test which modifies your 'projects.xml'. However, you don't encounter it immediately, because the file is loaded only on bootup.
  * The next morning you launch GTG but it doesn't start.
  * You open a terminal to manually launch GTG.
  * There is an error about XML.
* You google that error and if you get lucky you look for backups (if you know where GTG stores data)
  * You try to play with backups and find the latest usable one.

As you can see, those are so many steps to solve a problem. Imagine a corporate worker how she turns on her computer but GTG won't start and she don't know what to do. Calling tech support and spend another hour by solving that. Instead of that, GTG takes care of those steps automagically. Restoring backups would mean to lose few steps what is better than spending few hours and losing them anyway.

If you have any objections, feel free to raise them :-)

Izidor


Follow ups