Commit graph

2728 commits

Author SHA1 Message Date
Paul Beckingham
751e8e7f90 Import YAML
- Implemented the import-yaml.pl external script.
- Added unit tests.
- Fixed problem where the pending tasks were not loaded prior to uuid
  verification.
2011-09-05 01:11:37 -04:00
Paul Beckingham
fa973f734b Safety Valve
- Added safety valve processing.  Whenever a write-command omits a
  filter, the command will affect every task.  This is dangerous.
  If rc.confirmation is disabled, the command is terminated.
2011-09-04 08:44:22 -04:00
Paul Beckingham
f74c33dc02 Bug
- Fixed a silly bug whereby TDB2::gc, once it loaded the data, wiped the TF2
  objects, such that TDB2::commit didn't know there was data to write.
  Hmm.  Time for a vacation.
2011-09-03 16:32:30 -04:00
Paul Beckingham
8bf1386b78 Bug
- Fixed an even worse bug whereby TDB2::gc never even bothered to load
  the data before running the GC.  Sigh.
2011-09-03 16:31:03 -04:00
Paul Beckingham
1e510f66ef Bug
- Fixed nasty bug whereby TF2::clear wiped the file names (pending.data etc) and
  so any subsequent TDB2::commit never even opened the file.  Yikes.
2011-09-03 16:30:15 -04:00
Paul Beckingham
2b7c2f6a21 Unit Tests
- Improved the signal to noise ration for more unit tests.
2011-09-03 16:25:48 -04:00
Paul Beckingham
1691ce2764 Code Cleanup
- I think the 'show' command may have prematurely obsoleted something useful,
  so added a note to review.
2011-09-03 16:23:50 -04:00
Paul Beckingham
b84f212112 Code Cleanup
- Removed obsolete 'foreach' macro.
2011-09-03 13:54:11 -04:00
Paul Beckingham
f245fa808c Code Cleanup
- Removed obsolete TDB, Att and Location code.
- Removed associated unit tests, unfortunately all ones that pass.
2011-09-03 13:17:03 -04:00
Paul Beckingham
6b3dfd0891 TDB2
- Eliminated TDB from the unit test builds.
2011-09-03 13:03:17 -04:00
Paul Beckingham
1b3ac82d7e TDB2
- Eliminated the now obsolete TDB code from Context.
- Added auto-commit code for commands that auto-gc.
2011-09-03 13:02:17 -04:00
Paul Beckingham
5d6f6e2073 TDB2
- (Partially) Converted helper code to TDB2.
2011-09-03 13:01:30 -04:00
Paul Beckingham
6c9bebec24 TDB2
- (Partially) Converted dependency handling code to TDB2.
2011-09-03 12:59:57 -04:00
Paul Beckingham
b05d4535f8 TDB2
- Converted 'project' and '_projects' commands to TDB2.
2011-09-03 12:59:30 -04:00
Paul Beckingham
72627268dc TDB2
- Converted 'tags' and '_tags' commands to TDB2.
2011-09-03 12:58:57 -04:00
Paul Beckingham
a04ce55544 TDB2
- Added a necessary TDB2::commit call.
2011-09-03 12:58:18 -04:00
Paul Beckingham
84ccf4399c TDB2
- Converted 'delete' command to TDB2.
2011-09-03 12:57:26 -04:00
Paul Beckingham
eb992d3523 TDB2
- Implemented TDB2::gc.  Probably with a few really nasty bugs, to
  provide nice entertainment for the rest of the weekend.
2011-09-03 12:56:26 -04:00
Paul Beckingham
1c837822fc Merge branch '2.0.0' of tasktools.org:task into 2.0.0 2011-09-03 11:30:20 -04:00
Paul Beckingham
54866864ad Code Cleanup
- Removed unnecessary Task::setEnd call.
2011-09-03 11:29:23 -04:00
Paul Beckingham
aef24c0c54 TDB2
- Converted the sort routine to TDB2.
2011-09-03 11:29:08 -04:00
Paul Beckingham
e379af9751 Task Validation
- Removed the newly obsoleted Command::apply_defaults, which is now
  merged into Task::validate, and therefore applied to all modifications
  and new tasks.
2011-09-03 11:19:45 -04:00
Paul Beckingham
3d1a5acafb TDB2
- Implemented high-level TDB2::id and TDB2:uuid that delegates to TF2.
- Fixed a bug in TDB2::modify that failed to properly overwrite a task.
2011-09-03 11:17:12 -04:00
Paul Beckingham
49965f8115 Commands - modify
- Converted the 'modify' command to TDB2.  This has a negative impact
  on unit tests, but that represents bugs and ommissions in TDB2,
  not flaws in the 'modify' command.  I hope.
2011-09-03 11:16:03 -04:00
Paul Beckingham
2886151e64 Commands - done
- Converted the 'done' command to TDB2.  This has a negative impact
  on unit tests, but that represents bugs and ommissions in TDB2,
  not flaws in the 'done' command.
2011-09-03 11:14:59 -04:00
Paul Beckingham
e7a255ca16 TDB2 integration
- Enabled the TDB2::clear call, paving the way for TDB elimination.
2011-09-03 11:14:24 -04:00
Paul Beckingham
cc24a3d2f0 Task Validation
- Made the validation more gentle - it no longer stomps on the status,
  which may help with bug #824.
2011-09-03 11:13:09 -04:00
Paul Beckingham
af404a5b5e Unit Tests
- Increased the signal to noise ratio.
2011-09-03 10:53:27 -04:00
Federico Hernandez
4083883ec4 Feature #813
- applied patch for eoq and soq (thanks to Paulo Almeida)
2011-09-03 16:38:26 +02:00
Johannes Schlatow
45a07f4d85 Merge
added missing gc, unit tests ok (almost)
2011-09-03 12:33:48 +02:00
Federico Hernandez
92d9b980b5 Unit tests
- project.t analysis
2011-09-02 15:35:04 +02:00
Federico Hernandez
04fab0c37a Unit tests
- added file test/ANALYSIS
  containing information about the different unit tests failing
  while finalizing 2.0.0. To be removed when releasing 2.0.0.
2011-09-02 09:25:29 +02:00
Paul Beckingham
5118b61f60 Commands - shell
- Enabled the shell command.
- Cleaned up unit tests.
2011-09-02 00:28:31 -04:00
Paul Beckingham
7b0bf9f3c2 Unit Tests
- Modified the merge.t tests to accomodate the use of 'export' instead
  of the now obsolete 'export.csv' command.
2011-09-02 00:01:18 -04:00
Paul Beckingham
63eb22fc7e TDB2 Merge
- Migrated TDB::merge to TDB2::merge.
- Removed obsoleted code from TDB.
- Modified unit tests for merge to use export instead of export.csv.
2011-09-01 23:48:35 -04:00
Paul Beckingham
45666ebfc5 Documentation
- Added the required Perl module to the developer doc, for running the
  test suite.
2011-09-01 23:24:07 -04:00
Paul Beckingham
e9c5b96344 Build
- Missed an include file.
2011-09-01 01:20:33 -04:00
Paul Beckingham
f19a09b390 Bug
- When handleRecurrence was cloning the parent task, it failed to set
  a new ID, so all the child tasks were given the ID of the parent.
- Cleaned up bug.annual.t.
2011-09-01 01:05:59 -04:00
Paul Beckingham
63dfb17bbc Undo
- Undo functionality restored, although not ideal.
2011-09-01 00:46:35 -04:00
Paul Beckingham
e0ee80b1a9 Import todo.sh
- Added more unit tests to todo.sh import.
2011-09-01 00:04:18 -04:00
Paul Beckingham
c1a21ce5a4 Export YAML
- Implemented export-yaml.pl as a filter.
- Reimplemented export.yaml.t to use the filter.
2011-08-31 23:52:07 -04:00
Paul Beckingham
5f4571b0d0 Expressions
- Implemented expression escalation: when matching against description,
  escalate to include annotations on failure.  Needs adjustment to
  DOM eval before it will work.
2011-08-31 23:36:16 -04:00
Federico Hernandez
dfe72d7de7 Unit tests
- count.t
  log now puts tasks directly into completed
2011-09-01 00:14:16 +02:00
Paul Beckingham
7789692678 Import
- Fixed priority and tag bugs in the todo.sh transform.
- Began (but have not finished) writing unit tests for this.
2011-08-31 02:29:02 -04:00
Paul Beckingham
641d4356c4 Task Validation
- Cleaned up the 'import' command due to the new validation code.
2011-08-31 02:14:05 -04:00
Paul Beckingham
12e1a30d2f Task Validation
- Cleaned up 'duplicate' command due to the new validation code.
2011-08-31 02:11:34 -04:00
Paul Beckingham
12cfdf1b5a Task Validation
- Cleaned up the 'delete' command due to the new validation code.
2011-08-31 01:50:13 -04:00
Paul Beckingham
4cc368da82 Task Validation
- Cleaned up the 'annotate' and 'denotate' code due to the new
  validation code.
2011-08-31 01:48:00 -04:00
Paul Beckingham
885bde51f1 Task Validation
- Cleaned up the 'append' and 'prepend' commands due to the new
  validation.
2011-08-31 01:45:31 -04:00
Paul Beckingham
66f8591fcd Task Validation
- Cleaned up the 'start' and 'stop' commands due to the new validation.
2011-08-31 01:43:08 -04:00