GothenburgBitFactory / GothenburgBitFactory/taskwarrior
Listing tasks by tag doesn't work if a task has the tag as its second tag
- Dominant language
- C++
- Stars
- 6.1k
- Forks
- 423
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 11
Description
I have a list of four tasks:
```
task list
ID Age Project Tags Description Urg
4 4s mini-game create jumpy ducky mini game 0.8
1 14h party-game hazard-play mini-game create UI/inventory for player 1.9
2 14h party-game hazard-play mini-game create level tile map 1.9
3 28min party-game general add controller support (automatic and manual selection) 1.8
```
I have 3 tags:
```
task tags
Tag Count
general 1
hazard-play 2
mini-game 3
```
I can effectively filter by the `hazard-play` tag:
```
task tag:hazard-play list
ID Age Project Tags Description Urg
1 14h party-game hazard-play mini-game create UI/inventory for player 1.9
2 14h party-game hazard-play mini-game create level tile map 1.9
```
Filtering by the `mini-game` tag only shows the task (4) where mini-game is the only (or first) tag in the list and does not show tag ID 1 and 2 as I would expect:
```
task tag:mini-game list
ID Age Tags Description Urg
4 1min mini-game create jumpy ducky mini game 0.8
```
Contributor guide
Research direction
Reproduce the behavior with the shown task records, then start at the CLI handling for `task tag:mini-game list` and trace how multiple tags are matched. Compare it with `tag:hazard-play` filtering and add coverage for a task whose requested tag is second; done means both matching tasks appear in the result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100