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

Bug #826916 reported by Izidor Matušov on 2011-08-15
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Getting Things GNOME!
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)

Related branches

Izidor Matušov (izidor) on 2011-09-25
Changed in gtg:
milestone: 0.2.9 → 0.3
Izidor Matušov (izidor) on 2012-02-13
Changed in gtg:
milestone: 0.3 → 0.3.2
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.

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
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.

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

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.

Nimit Shah (nimit-svnit) wrote :

I guess rev 1180 should do it

Izidor Matušov (izidor) on 2012-05-25
Changed in gtg:
assignee: nobody → Nimit Shah (nimit-svnit)
status: Confirmed → In Progress
Nimit Shah (nimit-svnit) wrote :

Fixed in rev 1196

Changed in gtg:
status: In Progress → Fix Committed
Izidor Matušov (izidor) on 2012-07-18
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  Edit
Everyone can see this information.

Other bug subscribers