GTG

When planing through right-click menu, time constraints are not applied

Bug #826916 reported by Izidor Matušov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GTG
Fix Released
Medium
Nimit Shah

Bug Description

Steps to reproduce:
1, Have parent/children tasks
2, Set children to tomorrow through right-click menu
3, Set parent to today through right-click menu

Expected result:
Children tasks are updated to have due date today as its parent.

Actual result:
Children have their own due date, when restarting GTG, they get due date today (as they should)

Tags: love

Related branches

Izidor Matušov (izidor)
Changed in gtg:
milestone: 0.2.9 → 0.3
Izidor Matušov (izidor)
Changed in gtg:
milestone: 0.3 → 0.3.2
Revision history for this message
Nimit Shah (nimit-svnit) wrote :

Could this thing work?: When a parent is updated, update the due date of the child aswell.
Or, we can check if the child's due date is lower than the updated date of the parent, then don't change the due date of the child otherwise make the due date same as that of parent.

Revision history for this message
Izidor Matušov (izidor) wrote :

Nimit> You're right. When parent's due-date is updated, update the due date of all descendants as well. Constraints to aply:
  * children's due date can't be far in future than parent's one
  * for every task must be start date before or on the same day as due date

This bug shouldn't be hard to solve, adding LOVE tag.

tags: added: love
Revision history for this message
Nimit Shah (nimit-svnit) wrote :

I have updated the set_due_date() method.
   I have called this function from the editor and the browser whenever the due date of any task is updated.

Revision history for this message
Nimit Shah (nimit-svnit) wrote :

Please ignore the previous patch. It had some extra diff info. I had taken the diff from the wrong revision

Revision history for this message
Nimit Shah (nimit-svnit) wrote :

I feel this patch should do the trick.

I have compared the "fulldate" with the start start date of the task so that start_date can also be updated if necessary.

Revision history for this message
Nimit Shah (nimit-svnit) wrote :

I guess rev 1180 should do it

Izidor Matušov (izidor)
Changed in gtg:
assignee: nobody → Nimit Shah (nimit-svnit)
status: Confirmed → In Progress
Revision history for this message
Nimit Shah (nimit-svnit) wrote :

Fixed in rev 1196

Changed in gtg:
status: In Progress → Fix Committed
Izidor Matušov (izidor)
Changed in gtg:
milestone: 0.3.2 → 0.3
Changed in gtg:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.