Thomas Lauf
592e2853e0
Move debug output about overlaps where it matters
2018-09-18 21:06:33 +02:00
Thomas Lauf
f640eb4bc5
Remove splitting of intervals in storage files
...
- intervals are stored within the datafile which contains the starting date
- convert segmentContains to startsWithin and unify it
- Closes #174
2018-09-18 21:06:33 +02:00
Thomas Lauf
2f7e247859
Add tests for intervals enclosing month borders
2018-09-18 21:06:33 +02:00
Janik Rabe
fef522c53d
Fix getTracked() when last interval is empty
2018-09-18 21:06:05 +02:00
Janik Rabe
4e08bcca4d
#165 : Add test for empty intervals at midnight
2018-09-18 21:04:09 +02:00
Janik Rabe
2976e43136
#101 : Add test for full-month intervals
2018-09-18 21:04:09 +02:00
Janik Rabe
4325ffa136
Handle zero-width intervals correctly
...
Fixes #101
Fixes #165
Closes #164
2018-09-18 21:04:09 +02:00
Thomas Lauf
0273987ae6
Fix NPE when interval has no tags
2018-09-18 20:51:14 +02:00
Thomas Lauf
3c0627166a
Update ChangeLog
2018-09-07 10:13:22 +02:00
Thomas Lauf
4f5eb6eb0c
Make warning about new tags adhere to :quiet hint
2018-09-07 10:13:22 +02:00
Thomas Lauf
7771d94dee
Update tests
2018-09-07 10:13:22 +02:00
Thomas Lauf
9b5793206f
Remove old warnOnNewTag function
2018-09-07 10:13:22 +02:00
Thomas Lauf
f62767bc3d
Some code clean-up
2018-09-07 10:13:22 +02:00
Thomas Lauf
a7da0438ca
Connect database and tag-info database
2018-09-07 10:13:22 +02:00
Thomas Lauf
b32237cfb8
Add a toJson method to database
...
- only tag information for tags with count>0 is written out
2018-09-07 10:13:22 +02:00
Thomas Lauf
bfde36a740
Make counter in TagInfo an unsigned int
2018-09-07 10:13:22 +02:00
Thomas Lauf
7d93e23a20
Introduce add function
2018-09-07 10:13:22 +02:00
Thomas Lauf
d974742654
Add a tag database
2018-09-07 10:13:22 +02:00
Janik Rabe
d2f0bc70c8
Do not set CMP0037 on CMake 3.11.0 and above
...
This policy is no longer necessary because CMake issue #16062 , which
caused incorrect warnings to be shown, has been resolved in 3.11.0.
2018-09-07 10:11:36 +02:00
Thomas Lauf
8cc00eef1d
Update ChangeLog
2018-08-10 18:10:20 +02:00
Thomas Lauf
961d0212ba
#167 Allow intervals to be shortened to zero width
...
Closes #167
2018-08-10 18:02:41 +02:00
Thomas Lauf
ca7676320c
Use configure_exclusions in shorten.t
2018-08-10 17:40:36 +02:00
Thomas Lauf
84a1ffea8f
Use configure_exclusions in move.t
2018-08-10 17:33:08 +02:00
Thomas Lauf
5b5a7c1e3d
Use configure_exclusions in delete.t
2018-08-10 17:13:56 +02:00
Thomas Lauf
224ea88724
Improve untag.t
...
- use interval asserts
- use configure_exclusions
- use utc time
2018-08-10 17:08:20 +02:00
Thomas Lauf
c483568e50
Improve track.t
...
- use interval asserts
- use configure_exclusions
2018-08-10 17:08:20 +02:00
Thomas Lauf
08323c6157
Use relative times in tags.t
2018-08-10 17:08:20 +02:00
Thomas Lauf
037d855f0e
Improve tag.t
...
- use interval asserts
- use utc times
- use configure_exclusions
2018-08-10 17:08:20 +02:00
Thomas Lauf
0d1ec8e06a
Improve stop.t
...
- use interval asserts
- use configure_exclusions
2018-08-10 17:08:20 +02:00
Thomas Lauf
34e8317d01
Improve stop.t
...
- use interval asserts
- use utc time
- use configure_exclusions
2018-08-10 17:08:20 +02:00
Thomas Lauf
15bb111171
Refactor configure_exclusions
2018-08-10 17:08:20 +02:00
Thomas Lauf
7fefdf80bd
Use assertItemsEqual to compare tags
2018-08-10 17:08:20 +02:00
Thomas Lauf
937fdea818
Use interval asserts in split.t
2018-08-10 17:08:20 +02:00
Thomas Lauf
ff01bc45ca
Use interval asserts in shorten.t
2018-08-10 17:08:20 +02:00
Thomas Lauf
49750faef4
Use interval asserts in move.t
2018-08-10 17:08:20 +02:00
Thomas Lauf
c7ae1b1588
Improve lengthen.t
...
- Use configure_exclusions
- Use interval asserts
2018-08-10 17:08:20 +02:00
Thomas Lauf
3f5b47f96c
Use interval asserts in join.t
2018-08-10 17:08:20 +02:00
Thomas Lauf
9569eb6144
Use configure_exclusions in gaps.t
2018-08-10 17:08:20 +02:00
Thomas Lauf
3299967274
Use interval asserts in fill.t
2018-08-10 17:08:20 +02:00
Thomas Lauf
14b655c6e8
Improve export.t
...
- Use interval asserts
- Use UTC time
- Extract configure_exclusions method
2018-08-10 17:08:20 +02:00
Thomas Lauf
3cec514c2d
Improve delete.t
...
- Use interval asserts
2018-08-10 17:08:20 +02:00
Thomas Lauf
d5d82f02fa
Improve continue.t
...
- Use tag assertions
- Use UTC time only
2018-08-10 17:08:20 +02:00
Thomas Lauf
d62c10aa2e
Improve clock.t
...
- Use interval asserts
2018-08-10 17:08:20 +02:00
Thomas Lauf
3a8f1c081e
Improve cancel.t
...
- Reduce test cases
- Introduce interval asserts
2018-08-10 17:08:20 +02:00
Janik Rabe
7bc2002f47
Database: Fix an incorrect comment
2018-08-08 21:28:38 +02:00
Janik Rabe
9b73ffca8b
Add *.pyc files to .gitignore
...
Running 'make test' generates 'ext/totals.pyc', which should not be
under version control.
2018-08-08 21:15:15 +02:00
Janik Rabe
8b48085ee8
CmdHelp: Add missing closing bracket
2018-08-08 21:13:08 +02:00
Thomas Lauf
3f5d47f779
Update ChangeLog and AUTHORS
2018-08-08 07:18:02 +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