Commit graph

1064 commits

Author SHA1 Message Date
Paul Beckingham
a863abf2b0 CmdStats: Color only used for tty 2015-11-15 14:19:12 -05:00
Paul Beckingham
79189c448c TW-1723: task info causes segfault
- Thanks to Roman Golovin.
- Calls like 'context.columns[name]' autovivify the key 'name' with a default
  ctor value, which ends up polluting the context.columns map with every unique
  attribute name, which is a lot of 'annotation_nnnnnnnnnn' attributes.
2015-11-15 12:57:26 -05:00
Paul Beckingham
743baf00cf TW-311: Estimated completion in burndown.daily shows impossible results
- Thanks to Michele Santullo.
- Although TW-311 references impossible results, there are two problems.
  First there is the algorithm that determines estimateѕ completion, and
  second there is the reference to wait dates. The algorithm has been replaced
  by something better, but wait dates have nothing to do with estimation.
- The 'burndown.bias' configuration setting is removed.
- The estimated completion is based on the net completion rate since the
  high water mark of total pending tasks, measured on a daily basis, regardless
  of the type of chart produced.
- Vim syntax updated.
- Docs updated.
2015-11-07 15:35:21 -05:00
Paul Beckingham
940c7a793f Portability: Fixed broken build for Cygwin and older GCC
- Thanks to Richard Boß.
2015-11-06 18:22:05 -05:00
Wilhelm Schuermann
8f8ad813cd Task: Remove std::map inheritance, clean up interface
- Make the Task object's interface more explicit by removing the
  std::map inheritance.
- Using this more explicit interface, remove unneeded ctors in order to
  allow the compiler to "Do The Right Thing"(tm).
  This leads to a performance improvement of 12% in the "add"
  performance test, and 7% for "import".
2015-11-04 20:33:52 +01:00
Paul Beckingham
5f1edbfce1 Revert "CmdEdit: Converted from strtol to std::stoi/stoul"
This reverts commit cf831a9b7c.
2015-11-02 18:39:41 -05:00
Paul Beckingham
639e04d853 Revert "CmdCalendar: Converted from strtol to std::stoul/stoi"
This reverts commit 3745f83a7b.
2015-11-02 18:39:29 -05:00
Paul Beckingham
665863809d Revert "CmdInfo: Converted from strtol to std::stoul"
This reverts commit 037514bcbf.
2015-11-02 18:39:12 -05:00
Paul Beckingham
03d564dd78 Revert "CmdStats: Converted from strtol to std::stoul"
This reverts commit 2b8ce968fc.
2015-11-02 18:38:59 -05:00
Paul Beckingham
49ad7c2ce2 Revert "CmdSummary: Converted from strtol to std::stoul"
This reverts commit 0d88df1c18.
2015-11-02 18:38:44 -05:00
Paul Beckingham
de43e34c5e Revert "CmdTimesheet: Converted from strtol to std::stoi"
This reverts commit 02f1fa371c.
2015-11-02 18:38:31 -05:00
Paul Beckingham
02f1fa371c CmdTimesheet: Converted from strtol to std::stoi 2015-11-01 22:08:24 -05:00
Paul Beckingham
0d88df1c18 CmdSummary: Converted from strtol to std::stoul 2015-11-01 22:07:46 -05:00
Paul Beckingham
2b8ce968fc CmdStats: Converted from strtol to std::stoul 2015-11-01 22:06:28 -05:00
Paul Beckingham
037514bcbf CmdInfo: Converted from strtol to std::stoul 2015-11-01 22:05:46 -05:00
Paul Beckingham
3745f83a7b CmdCalendar: Converted from strtol to std::stoul/stoi 2015-11-01 22:05:11 -05:00
Paul Beckingham
cf831a9b7c CmdEdit: Converted from strtol to std::stoi/stoul 2015-11-01 22:00:44 -05:00
Paul Beckingham
5d9ca9864e Cmd*: Moved include to top of list, per flint++ recommendation 2015-11-01 19:53:19 -05:00
Paul Beckingham
25b7f42810 CmdExport: Simplified looping with 'auto' 2015-11-01 13:50:45 -05:00
Tomas Babej
98973a9390 CmdContext: Handle errors in a consistent way 2015-10-30 16:33:16 -04:00
Paul Beckingham
182b5427cd Lexer: Migrated trim(), trimLeft() and trimRight() from text to Lexer 2015-10-30 11:17:23 -04:00
Paul Beckingham
51def4b12b Lexer: Migrated commify, ucFirst and lowerCase from text to Lexer 2015-10-30 10:57:14 -04:00
Paul Beckingham
112621ef13 CmdIDs: _zshuuids no longer obeys context 2015-10-30 00:51:37 -04:00
Paul Beckingham
4d9ac995fe CmdUrgency: _urgency no longer obeys context 2015-10-30 00:50:49 -04:00
Tomas Babej
de8c7d230f CmdDiagnostics: Add broken reference detection 2015-10-29 20:52:00 -04:00
Tomas Babej
0693f3cfc4 CmdDiagnostics: Remove redundant nesting 2015-10-29 20:51:57 -04:00
Tomas Babej
2d25cf6f59 TW-1704: Task: Use Task::identifier to reference the task
To achieve consistent output, use a helper method to generate a proper
handle - ID for tasks with non-zero ID, UUID otherwise.
2015-10-29 20:00:53 -04:00
Paul Beckingham
1236abc7d5 CmdColumns: Now shows whether a column is modifiable or read only 2015-10-29 14:14:07 -04:00
Paul Beckingham
7d58ddff6b CmdSummary: Removed unreachable code 2015-10-28 18:41:55 -04:00
Paul Beckingham
778ba44beb CmdImport: Removed redundant filter processing 2015-10-28 18:21:59 -04:00
Paul Beckingham
958637e2ca CmdBurndown: Removed unreachable code (completed/deleted tasks have no 'start' date) 2015-10-28 17:06:47 -04:00
Paul Beckingham
a82558064b Cleanup: Prep for '-Wextra' 2015-10-16 16:27:05 -04:00
Paul Beckingham
79886e03ce Merge branch 'isodate' into 2.5.0 2015-10-07 07:40:28 -04:00
Paul Beckingham
26fbca7896 CmdCalendar: Migrated from Date to ISO8601d 2015-10-03 19:31:58 -04:00
Paul Beckingham
b085006d1a CmdTimesheet: Migrated from Date to ISO8601d 2015-10-03 19:27:42 -04:00
Paul Beckingham
4002778a36 CmdStats: Migrated from Date to ISO8601d 2015-10-03 19:23:01 -04:00
Paul Beckingham
69c8125ea7 CmdHistory: Migrated from Date to ISO8601d 2015-10-03 19:22:51 -04:00
Paul Beckingham
aa3304798b CmdEdit: Migrated from Date to ISO8601d 2015-10-03 19:22:42 -04:00
Paul Beckingham
a0a302822b CmdBurndown: Migrated from Date to ISO8601d 2015-10-03 18:05:24 -04:00
Paul Beckingham
ec073c5dae CmdInfo: Migrated from Date to ISO8601d 2015-10-03 15:22:22 -04:00
Tomas Babej
4fe23fcfcd context: Do not use context for reports not meant for direct human consumption 2015-10-03 10:59:55 -04:00
Tomas Babej
97dbb0cfe4 CmdModify: Do not use filter context 2015-10-03 10:59:42 -04:00
Paul Beckingham
fff27ffabe CmdExport: Measures JSON composition time under context.timer_render 2015-10-03 08:56:05 -04:00
Paul Beckingham
4f156c407c Recur: Migrated recurrence from Date to ISO8601d
- Changed signature of recur functions, which needed a main.h change, which led
  to removing '#include <Date.h>' from main.h, which necessitated adding the
  sam include to various other source files.  Temporarily.
- Added 'ISO8601d ISO8601d::operator+ (time_t)', because of differences from the
  original Date object.
2015-09-30 09:52:09 -04:00
Paul Beckingham
244a80f799 ISO8601: Migrated more Date instances to ISO8601d 2015-09-26 23:20:08 -04:00
Paul Beckingham
68c6afbdd4 ISO8601d: Conversion from Date to ISO8601d 2015-09-26 23:08:29 -04:00
Paul Beckingham
18804a743c CmdCalendar: Converted from Date::daysInMonth to ISO8601d::daysInMonth 2015-09-26 14:09:51 -04:00
Paul Beckingham
86df438579 CmdBurndown: Converted from Date::daysInMonth to ISO8601d::daysInMonth 2015-09-26 14:08:50 -04:00
Paul Beckingham
5eb9948235 CmdExport: Measures JSON composition time under context.timer_render 2015-09-26 12:20:14 -04:00
Paul Beckingham
bb53ae17ae ISO8601p: Renamed ::_value to ::_period 2015-09-26 12:17:57 -04:00