mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Feature #725
- Added feature #725, which provides feedback when tasks become unblocked. - Added unit tests.
This commit is contained in:
parent
56f0281ab1
commit
9d74b55d48
7 changed files with 56 additions and 6 deletions
|
@ -94,9 +94,10 @@ int CmdDelete::execute (std::string& output)
|
|||
if (permission (*task, question, filtered.size ()))
|
||||
{
|
||||
updateRecurrenceMask (*task);
|
||||
context.tdb2.modify (*task);
|
||||
++count;
|
||||
context.tdb2.modify (*task);
|
||||
feedback_affected (STRING_CMD_DELETE_TASK, *task);
|
||||
feedback_unblocked (*task);
|
||||
dependencyChainOnComplete (*task);
|
||||
context.footnote (onProjectChange (*task, true));
|
||||
|
||||
|
@ -117,8 +118,9 @@ int CmdDelete::execute (std::string& output)
|
|||
|
||||
updateRecurrenceMask (*sibling);
|
||||
context.tdb2.modify (*sibling);
|
||||
++count;
|
||||
feedback_affected (STRING_CMD_DELETE_TASK_R, *sibling);
|
||||
feedback_unblocked (*sibling);
|
||||
++count;
|
||||
}
|
||||
|
||||
// Delete the parent
|
||||
|
|
|
@ -95,6 +95,8 @@ int CmdDone::execute (std::string& output)
|
|||
context.tdb2.modify (*task);
|
||||
++count;
|
||||
feedback_affected (STRING_CMD_DONE_TASK, *task);
|
||||
feedback_unblocked (*task);
|
||||
context.tdb2.modify (*task);
|
||||
if (!nagged)
|
||||
nagged = nag (*task);
|
||||
dependencyChainOnComplete (*task);
|
||||
|
|
|
@ -104,10 +104,11 @@ int CmdModify::execute (std::string& output)
|
|||
if (permission (*task, taskDifferences (before, *task) + question, filtered.size ()))
|
||||
{
|
||||
updateRecurrenceMask (*task);
|
||||
context.tdb2.modify (*task);
|
||||
dependencyChainOnModify (before, *task);
|
||||
++count;
|
||||
feedback_affected (STRING_CMD_MODIFY_TASK, *task);
|
||||
dependencyChainOnModify (before, *task);
|
||||
feedback_unblocked (*task);
|
||||
context.tdb2.modify (*task);
|
||||
context.footnote (onProjectChange (before, *task));
|
||||
|
||||
// Task potentially has siblings - modify them.
|
||||
|
@ -123,11 +124,12 @@ int CmdModify::execute (std::string& output)
|
|||
Task alternate (*sibling);
|
||||
modify_task_description_replace (*sibling, modifications);
|
||||
updateRecurrenceMask (*sibling);
|
||||
context.tdb2.modify (*sibling);
|
||||
dependencyChainOnModify (alternate, *sibling);
|
||||
context.footnote (onProjectChange (alternate, *sibling));
|
||||
++count;
|
||||
feedback_affected (STRING_CMD_MODIFY_TASK_R, *sibling);
|
||||
feedback_unblocked (*sibling);
|
||||
context.tdb2.modify (*sibling);
|
||||
context.footnote (onProjectChange (alternate, *sibling));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue