GothenburgBitFactory / GothenburgBitFactory/taskwarrior

Improve "task info" report for the tasks with urgency inheritance

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

Description

#### To report a bug...
`task info` provides incorrect report for urgency computation in the case if task urgency inheritance is enabled for dependent tasks (`urgency.inherit=on`).

In the example is below the text for computed urgency for the blocking task 144 should include a note that the urgency is inherited from the blocked task 144. As it's current state, the numbers in the report do not match and I had to spend some time to figure it out why. For a better user experience, the report should provide a hint when the urgency is inherited.

Blocked task
```
Name Value
ID 144
Description TEST2
Status Pending
This task blocked by 143 TEST1
Entered 2019-10-15 21:32:20 (1min)
Last modified 2019-10-15 21:33:04 (21s)
Tags next
Virtual tags BLOCKED PENDING TAGGED LATEST
UUID bcae9a5c-f8ca-494c-8888-74fd97f2d80f
Urgency 10.8

blocked 1 * -5 = -5
tags 0.8 * 1 = 0.8
TAG next 1 * 15 = 15
------
10.8
```

Blocking task:
```
Name Value
ID 143
Description TEST1
Status Pending
This task is blocking 144 TEST2
Entered 2019-10-15 21:32:08 (1min)
Last modified 2019-10-15 21:32:08 (1min)
Virtual tags BLOCKING PENDING READY UNBLOCKED
UUID 30747143-5a46-4a75-aefe-78595db4a338
Urgency 10.81

blocking 1 * 8 = 8
------
10.81
```

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.