taskwarrior icon indicating copy to clipboard operation
taskwarrior copied to clipboard

[TW-1600] Filtering "regressions"(?) in task-2.4.3, task-2.4.4

Open taskwarrior opened this issue 7 years ago • 5 comments

Ralph Bean on 2015-04-21T14:33:55Z says:

Here's an example of one. In previous versions of taskwarrior, the filter at the end would match only one task, but with task-2.4.3 it matches all three tasks.

(taskw)❯ task add foobar1
task adCreated task 742.
The project 'unsorted' has changed.  Project 'unsorted' is 66% complete (1 of 3 tasks remaining).
(taskw)❯ task add foobar2
Created task 743.
The project 'unsorted' has changed.  Project 'unsorted' is 50% complete (2 of 4 tasks remaining).
(taskw)❯ task add foobar+
Created task 744.
The project 'unsorted' has changed.  Project 'unsorted' is 40% complete (3 of 5 tasks remaining).
(taskw)❯ task proj:unsorted
[task next proj = unsorted]

id  age project  description urg 
742 11s unsorted foobar1        1
743 8s  unsorted foobar2        1
744 5s  unsorted foobar+        1

3 tasks

❯ task description.contains:"foobar+"
[task next description ~ 'foobar+']

id  age project  description urg 
742 18s unsorted foobar1        1
743 15s unsorted foobar2        1
744 12s unsorted foobar+        1

3 tasks

taskwarrior avatar Feb 14 '18 13:02 taskwarrior

Migrated metadata:

Created: 2015-04-21T14:33:55Z
Modified: 2015-07-13T11:57:10Z

taskwarrior avatar Feb 14 '18 13:02 taskwarrior

Ralph Bean on 2015-04-21T14:37:58Z says:

Here is an even trickier example. Consider a task list with these two tasks:

❯ task proj:unsorted
[task next proj = unsorted]

id  age project  description urg 
742 56s unsorted foobar1        1
743 46s unsorted foo?bar        1

2 tasks

Trying to filter for the second task gives the first one instead.

❯ task proj:unsorted description.contains:"oo?ba"
[task next proj = unsorted and description ~ 'oo?ba']

id  age project  description urg 
742 58s unsorted foobar1        1

1 task

taskwarrior avatar Feb 14 '18 13:02 taskwarrior

Ralph Bean on 2015-04-21T14:42:19Z says:

And here's a last failing case. Consider tasks with braces in the description:

❯ task proj:unsorted                                     
[task next proj = unsorted]

id  age project  description urg 
742 42s unsorted [foobar1]      1
743 40s unsorted [foobar2]      1

2 tasks
❯ task proj:unsorted description.contains:"[foobar2]"    
[task next proj = unsorted and description ~ '[foobar2]']

id  age project  description urg 
742 50s unsorted [foobar1]      1
743 48s unsorted [foobar2]      1

2 tasks

taskwarrior avatar Feb 14 '18 13:02 taskwarrior

Renato Alves on 2015-05-25T17:32:08Z says:

Test case included in the repository on branch 2.4.5.

Currently pending a fix together with other 2 known problems.

taskwarrior avatar Feb 14 '18 13:02 taskwarrior

Regression in 2.5.2, 2.6.0.

tbabej avatar Dec 05 '20 21:12 tbabej