mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TW-1481: Unable to assign a completed task as dependency
- Thanks to Tomas Babej.
This commit is contained in:
parent
253fd35dc7
commit
f7d0f500fc
3 changed files with 4 additions and 5 deletions
|
@ -9,6 +9,8 @@
|
||||||
- TW-1425 The 'age' format rounds in odd ways (thanks to Black Ops testing).
|
- TW-1425 The 'age' format rounds in odd ways (thanks to Black Ops testing).
|
||||||
- TW-1446 Difference in how relative dates are specified in report filters since 2.3.0
|
- TW-1446 Difference in how relative dates are specified in report filters since 2.3.0
|
||||||
(thanks to atomicules).
|
(thanks to atomicules).
|
||||||
|
- TW-1481 Unable to assign a completed task as dependency (thanks to Tomas
|
||||||
|
Babej).
|
||||||
- TW-1500 Dates formatted as ".age", ".remaining", or ".countdown" often give
|
- TW-1500 Dates formatted as ".age", ".remaining", or ".countdown" often give
|
||||||
blank results (thanks to Jeremy John Reeder).
|
blank results (thanks to Jeremy John Reeder).
|
||||||
- TW-1582 Wrong urgency for first report after reviving task with
|
- TW-1582 Wrong urgency for first report after reviving task with
|
||||||
|
|
|
@ -2031,14 +2031,14 @@ void Task::modify (modType type, bool text_required /* = false */)
|
||||||
if (dep[0] == '-')
|
if (dep[0] == '-')
|
||||||
{
|
{
|
||||||
if (dep.length () == 37)
|
if (dep.length () == 37)
|
||||||
removeDependency (context.tdb2.pending.id (dep.substr (1)));
|
removeDependency (dep.substr (1));
|
||||||
else
|
else
|
||||||
removeDependency (strtol (dep.substr (1).c_str (), NULL, 10));
|
removeDependency (strtol (dep.substr (1).c_str (), NULL, 10));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (dep.length () == 36)
|
if (dep.length () == 36)
|
||||||
addDependency (context.tdb2.pending.id (dep));
|
addDependency (dep);
|
||||||
else
|
else
|
||||||
addDependency (strtol (dep.c_str (), NULL, 10));
|
addDependency (strtol (dep.c_str (), NULL, 10));
|
||||||
}
|
}
|
||||||
|
|
|
@ -306,7 +306,6 @@ class Test1481(TestCase):
|
||||||
self.child1_uuid = self.t.export_one(2)['uuid']
|
self.child1_uuid = self.t.export_one(2)['uuid']
|
||||||
self.child2_uuid = self.t.export_one(3)['uuid']
|
self.child2_uuid = self.t.export_one(3)['uuid']
|
||||||
|
|
||||||
@unittest.expectedFailure
|
|
||||||
def test_set_dependency_on_first_completed_task(self):
|
def test_set_dependency_on_first_completed_task(self):
|
||||||
"""1481: Sets dependency on task which has been just completed."""
|
"""1481: Sets dependency on task which has been just completed."""
|
||||||
self.t('2 done')
|
self.t('2 done')
|
||||||
|
@ -317,7 +316,6 @@ class Test1481(TestCase):
|
||||||
# Set the dependency
|
# Set the dependency
|
||||||
self.t('1 modify depends:%s' % self.child1_uuid)
|
self.t('1 modify depends:%s' % self.child1_uuid)
|
||||||
|
|
||||||
@unittest.expectedFailure
|
|
||||||
def test_set_dependency_on_second_completed_task(self):
|
def test_set_dependency_on_second_completed_task(self):
|
||||||
"""
|
"""
|
||||||
1481: Sets dependency on task which has been completed
|
1481: Sets dependency on task which has been completed
|
||||||
|
@ -333,7 +331,6 @@ class Test1481(TestCase):
|
||||||
# Set the dependencies
|
# Set the dependencies
|
||||||
self.t('1 modify depends:%s' % self.child2_uuid)
|
self.t('1 modify depends:%s' % self.child2_uuid)
|
||||||
|
|
||||||
@unittest.expectedFailure
|
|
||||||
def test_set_dependency_on_two_completed_tasks(self):
|
def test_set_dependency_on_two_completed_tasks(self):
|
||||||
""" 1481: Sets dependency on two most recent completed tasks. """
|
""" 1481: Sets dependency on two most recent completed tasks. """
|
||||||
self.t('2 done')
|
self.t('2 done')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue