Thomas Lauf
14bed139f6
Update copyrights
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-04-04 22:44:44 +02:00
Thomas Lauf
993ae85d5c
Add check whether requested intervals have been found when searching by ID
...
- Restores behaviour which got lost when switching to the new interval filtering in 9968b9e9
- Add test for each command
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2022-01-09 11:43:56 +01:00
Thomas Lauf
9968b9e9d1
Replace function getIntervalsByIds
by getTracked
with new filtering
...
Replace getIntervalsByIds in commands CmdAnnotate, CmdContinue, CmdDelete,
CmdJoin, CmdLengthen, CmdModify, CmdMove, CmdResize, CmdShorten, CmdSplit,
CmdTag, and CmdUntag
Relates to #468
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-12-02 22:31:15 +01:00
Tomas Babej
e5870380a4
doc: Update copyright to 2021
2021-01-02 02:52:39 -05:00
Thomas Lauf
ad58309159
Update Copyright
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-04-19 12:41:23 +02:00
Shaun Ruffell
845ab2f805
test: Check move / annotate commands with both synthetic and non-synthetic intervals in database
...
These tests are designed to check that `getIntervalsById()` will not
count the open interval at the end of the database twice.
See https://github.com/GothenburgBitFactory/timewarrior/pull/269/files#r368238522
2020-01-26 19:49:23 +01:00
Shaun Ruffell
7b438830e2
test: Revert recent annotate.t and move.t changes
...
In commits 18559df275
and eaed297964
I had updated existing
tests when I should have created new tests to check mixed synethic /
non-synethic intervals.
This change reverts those changes and a follow-on commit will add the
new tests.
See https://github.com/GothenburgBitFactory/timewarrior/pull/269/files#r368238522
2020-01-26 19:49:23 +01:00
Shaun Ruffell
eaed297964
test/annotate.t: Annotate a mix of synthetic / non-synthetic intervals
2020-01-17 17:48:57 +01:00
Thomas Lauf
9dd8257cc0
Replace assertEquals
with assertEqual
...
- #259
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-12-11 10:20:33 +01:00
Thomas Lauf
7fa7ca5f04
Remove vim annotations
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-12-11 10:20:33 +01:00
Thomas Lauf
f53e1cef6d
Switch to python 3
...
- #259
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-12-11 10:20:32 +01:00
Shaun Ruffell
5f5cfb7b0f
#254 : quotes in annotations are not escaped
...
Escapes the quotes for the annotations in the data file, and when
converting an interval to JSON.
The quotes in the annotations were already dequoted in
IntervalFactory::fromSerialization, so we only needed to quote the strings
when serializing or dumping to JSON.
2019-11-18 06:43:21 +01:00
Thomas Lauf
e6b5a14927
Extend command 'annotate' to remove annotation
...
- Closes #247
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-08-24 23:57:30 +02:00
Thomas Lauf
8b5a701eeb
Require python2 not python2.7 for tests
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-06-29 01:31:08 +02:00
Thomas Lauf
712b4b78b2
Revert "Run test with available python"
...
This reverts commit 6b89e122
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-06-24 21:10:57 +02:00
Thomas Lauf
6b89e12287
Run test with available python
...
- do not enforce python 2.7
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-06-22 21:21:11 +02:00
Thomas Lauf
0e43feed3c
Add tests for 'timew annotate'
2018-10-10 20:42:01 +02:00