Thomas Lauf
961d0212ba
#167 Allow intervals to be shortened to zero width
...
Closes #167
2018-08-10 18:02:41 +02:00
Janik Rabe
7bc2002f47
Database: Fix an incorrect comment
2018-08-08 21:28:38 +02:00
Janik Rabe
8b48085ee8
CmdHelp: Add missing closing bracket
2018-08-08 21:13:08 +02:00
Janik Rabe
d54bc6ba55
CmdSummary: Do not extend end time beyond end of day
...
When showing a summary, set the end time to the current time on the
last day only. This prevents over-counting of time when a tracked
interval covers multiple days.
Fixes test TestSummary.test_with_open_interval when the system time
is between midnight and 01:00 AM.
2018-08-08 07:12:40 +02:00
Janik Rabe
616ca4b884
#157 : Change error message for non-positive IDs
2018-08-08 07:06:42 +02:00
Janik Rabe
48aa9cfdc0
CLI: Ensure IDs are non-zero
...
This fixes out-of-bounds accesses in several subcommands when the
invalid ID @0 is passed to the program.
2018-08-08 07:06:42 +02:00
Thomas Lauf
9489ed5b70
Fix error message
2018-07-31 09:48:03 +02:00
Thomas Lauf
1dcefd6a31
Update libshared to 230c63bd385b2a5a6ee5eb431df54b0c5c229b4d
2018-07-25 21:57:33 +02:00
Thomas Lauf
d230e40313
#9 TI-1: Make undo work with config actions
2018-07-24 18:40:11 +02:00
Thomas Lauf
0688e3ba07
#9 TI-1: Move static functions (un)setConfigVariable(...) to Rules
2018-07-24 08:07:10 +02:00
Thomas Lauf
cd7755bc6c
#9 TI-1: Make undo work with interval actions
2018-07-23 22:12:11 +02:00
Thomas Lauf
cfdd3680a4
#9 TI-1: Move starting and stopping of transactions to commands
2018-07-22 00:01:31 +02:00
Thomas Lauf
29e305033b
#9 TI-1: Make undo work with interval actions
...
- Add creator method to create interval from JSON string
- Add getters for UndoAction fields
- Make Database::modifyInterval work with empty intervals (i.e. ignore them at the respective command)
2018-07-21 22:35:17 +02:00
Thomas Lauf
86258cdb93
#9 TI-1: Add informative output to undo command
2018-07-19 20:03:01 +02:00
Thomas Lauf
76ee22e7e5
#9 TI-1: Add TransactionFactory
...
- CmdUndo pops last transaction from array (and applies undo actions - tbd)
- TransactionFactory reads contents of undo.data into transaction array
- Transaction array is written back to undo.data
2018-07-19 19:56:10 +02:00
Thomas Lauf
d8a4b8ff43
#9 TI-1 Add a skeleton undo command
2018-07-19 11:58:43 +02:00
Thomas Lauf
21b4b6242c
#9 TI-1: Merge if statements
2018-07-18 22:43:32 +02:00
Thomas Lauf
af621a3eef
#9 TI-1: Return early, use return value of delegated CmdShow
2018-07-18 22:32:05 +02:00
Thomas Lauf
36134ca5fc
#9 TI-1: Fix application name in comments
2018-07-18 22:25:14 +02:00
Thomas Lauf
b32945a925
#9 TI-1: Reformat function definitions
2018-07-18 22:22:02 +02:00
Thomas Lauf
881d9590da
#9 TI-1: Add wrapper methods for config and interval undo-actions
...
- make recordUndoAction private
2018-07-18 21:49:18 +02:00
Thomas Lauf
b8b0bbfeaf
#9 TI-1: Rename undoTxn*-functions
2018-07-18 21:38:06 +02:00
Thomas Lauf
f031bd9d22
#9 TI-1: Use Transaction and UndoAction in Database
...
- Add toString-Methods to Transaction and UndoAction
2018-07-18 21:09:07 +02:00
Thomas Lauf
2fdc3eba4a
#9 TI-1: Add data types Transaction and UndoAction
2018-07-18 21:04:20 +02:00
Thomas Lauf
b1421579ab
Update ChangeLog, AUTHORS, and Copyright
2018-05-19 11:35:14 +02:00
Thomas Lauf
543848ae68
Take change of month into account when calculating interval widths
...
- Fixes #135 : Task at month end not getting displayed
2018-05-19 11:35:14 +02:00
Thomas Lauf
10dfa64cfa
#21 Add implicit @1 to command 'untag'
...
- Extend interval assertions
- Add interval assertions to tests for command 'tag'
- Add interval assertions to tests for command 'untag'
2018-05-13 17:56:55 +02:00
Thomas Lauf
c595132a9c
#21 Use open interval when no id given
...
- Add test
- Special handling if database empty
2018-05-13 17:56:55 +02:00
Thomas Lauf
4afd14ee2e
#21 Let command 'tag' fail on no tags given
...
- Add test
2018-05-13 17:56:55 +02:00
Thomas Lauf
784ecbbfd9
#21 Move check for empty ID list
...
- Sharpen error message
- Add test
2018-05-13 17:56:55 +02:00
Thomas Lauf
db13bd403f
#21 Move method to gather tags to CLI
2018-05-13 17:56:55 +02:00
Thomas Lauf
fac5d6a057
#138 Escape '"' in tags for JSON output
2018-05-11 18:42:49 +02:00
Thomas Lauf
2c5812f7a3
Use the empty method to check for emptiness instead of comparing to an empty object
2018-05-10 20:57:22 +02:00
Simon Ruderich
2271bd9eea
Use https:// link for opensource.org
2018-03-16 23:11:08 +01:00
Thomas Lauf
cdaf921e75
#112 : Update libshared to c3d7db12d47bf9e6a4a2db75998f3a9edca77797
2018-03-10 21:47:22 +01:00
Thomas Lauf
5264947de8
TI-116: Remove superfluous feedback
2018-03-10 21:26:28 +01:00
Thomas Lauf
8ce9e83ab5
TI-93 #97 Make CLI::getIds() return a set to guarantee uniqueness of ids
2018-03-08 20:44:10 +01:00
Thomas Lauf
9147f743e9
Fail early if summary is empty
2018-02-23 20:35:33 +01:00
Thomas Lauf
39eb1a8056
Add early return to CmdCancel
2018-02-22 23:54:08 +01:00
Thomas Lauf
a37ab24c07
TI-102: Fix interval flattening in CmdStart
...
- set correct range for exclusion retrieval
- report on added intervals not on entered
2018-01-19 16:25:22 +01:00
Thomas Lauf
f6e892d118
TI-102: Add interval flattening to CmdStop
2018-01-19 16:25:22 +01:00
Thomas Lauf
f617588f57
TI-102: Improve interval flattening for CmdTrack
...
- Report on added intervals, not on entered interval
2018-01-19 16:25:22 +01:00
Thomas Lauf
8e2e350cab
TI-100: Fix expansion of :lastquarter when in first quarter
2018-01-15 20:27:35 +01:00
Thomas Lauf
f1b3b3bb72
Refactor CmdDefault
...
- restore original command behaviour:return exit code 0 if tracking is active, 1 if not
- show welcome screen on first run
- add/update tests
2018-01-05 23:34:16 +01:00
Thomas Lauf
ecb8aa447c
Refactor CmdMove: Fail early if no id given
2018-01-05 14:27:25 +01:00
Thomas Lauf
35e5098b51
Extract join function
...
- use join function for std::vector<std::string> from libshared
- add join function for std::set<std::string>
- add joinQuotedIfNeeded for std::set<std::string> and std::vector<std::string>
- add unit tests
- These functions could be replaced with templates and moved to libshared.
2018-01-05 14:25:57 +01:00
Thomas Lauf
95380bbe96
Optimize includes
2018-01-05 14:21:37 +01:00
Thomas Lauf
3100ed4b6f
Small refactoring on class Range
2018-01-05 10:51:03 +01:00
Thomas Lauf
3aa932eafe
Fix typos
2018-01-05 10:49:17 +01:00
Paul Beckingham
7511882f9f
libshared: updated to 1fa5dcbf53a280857e35436aef6beb6a37266e33
2017-12-31 19:49:13 -05:00