Bug 1320284

Summary: Closing a reopened task does not update the end time
Product: [Fedora] Fedora Reporter: Siddhesh Poyarekar <siddhesh>
Component: taskAssignee: Federico Hernandez <ultrafredde>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 23CC: gbailey, jochen, pfrields, rbean, ultrafredde
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-20 19:35:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Siddhesh Poyarekar 2016-03-22 17:55:28 UTC
Description of problem:

If a task is reopened and subequently closed, its end time is not updated.

Version-Release number of selected component (if applicable):


How reproducible:

Always.


Steps to Reproduce:

$ task add "test task that does something cool"
Created task 12.

$ task 12 done
Completed task 12 'test task that does something cool'.
Completed 1 task.

$ task all
<snip>
ID St UUID     A Age   Done  Project  Due        Description                                                                                                                                  
 - C  9286b908   27s   19s                       test task that does something cool
</snip>

$ python3 <<END
from taskw import TaskWarrior
print([t for t in TaskWarrior().load_tasks()['completed'] if t['uuid'].find('9286b908') != -1])
END

[{'entry': '20160322T174914Z', 'end': '20160322T174922Z', 'uuid': '9286b908-dacf-4fc4-b963-9c36a1fb509d', 'status': 'completed', 'id': 0, 'description': 'test task that does something cool', 'urgency': 0, 'modified': '20160322T174922Z'}]

$ task 9286b908 start
Starting task 9286b908-dacf-4fc4-b963-9c36a1fb509d 'test task that does something cool'.
Started 1 task.

$ task 9286b908 done
Completed task 9286b908-dacf-4fc4-b963-9c36a1fb509d 'test task that does something cool'.
Completed 1 task.

$ python3 <<END
from taskw import TaskWarrior
print([t for t in TaskWarrior().load_tasks()['completed'] if t['uuid'].find('9286b908') != -1])
END
[{'uuid': '9286b908-dacf-4fc4-b963-9c36a1fb509d', 'urgency': 0, 'status': 'completed', 'end': '20160322T174922Z', 'description': 'test task that does something cool', 'modified': '20160322T175021Z', 'id': 0, 'entry': '20160322T174914Z'}]


Actual results:

The 'end' time does not change between the two python snippets.

Expected results:

The 'end' time should get updated.

Comment 1 Ralph Bean 2016-03-22 18:59:33 UTC
Thanks Siddhesh.  I reported this upstream as https://bug.tasktools.org/browse/TW-1788

Comment 2 Ralph Bean 2016-09-14 19:09:14 UTC
Looks like this will be fixed in task-2.6

Comment 3 Fedora End Of Life 2016-11-24 16:11:40 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Fedora End Of Life 2016-12-20 19:35:55 UTC
Fedora 23 changed to end-of-life (EOL) status on 2016-12-20. Fedora 23 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.