GothenburgBitFactory / GothenburgBitFactory/taskwarrior

Certain filters can incorrectly disable loading of completed.data

Open
#2,478 0 comments 0 reactions 0 assignees View on GitHub
type:bug
Dominant language
C++
Stars
6.1k
Forks
423
Avg merge
1d 19h
Merged PRs (30d)
11

Description

The `Filter::pendingOnly` method attempts to implement a logic to determine whether it's safe to skip loading of the `completed.data` file.

However, in certain cases, the current implementation can get it wrong, for example:
```
$ task status.not:pending count
0
```

This result is incorrect, as there are non-pending tasks in the database, as evidenced by a different query:
```
$ task +COMPLETED count
1100
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.