Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 316657

Summary: scheduled presentation fails to show due tasks for others scheduled for This Week
Product: z_Archived Reporter: Mik Kersten <mik.kersten>
Component: MylynAssignee: Robert Elves <robert.elves>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P1 CC: steffen.pingel
Version: unspecified   
Target Milestone: 3.4.1   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
patch
none
mylyn/context/zip none

Description Mik Kersten CLA 2010-06-11 17:30:49 EDT
From bug 314166: "Just found the following bug. When focused task that's a subtask of something that's not scheduled, but has an outgoing, shows when schedueld for today, but not when scheduled for this week."  Here are the conditions I'm observing now.  When scheduled for Today, the task shows as expected, but when scheduled for This Week it won't show at all.  Working Focused.
* Subtask with one parent task.
* Not assigned to me.
* Due date is today.
Comment 1 Steffen Pingel CLA 2010-06-11 18:57:22 EDT
The scheduled presentation generally ignores task relationships. I can reproduce this with any task that is:

* Not due for me
* Scheduled for This Week

It does not show in the scheduled presentation. To reproduce schedule any Eclipse.org bug not assigned to you for This Week and set a due date on it.
Comment 2 Steffen Pingel CLA 2010-06-12 15:50:08 EDT
*** Bug 316681 has been marked as a duplicate of this bug. ***
Comment 3 Mik Kersten CLA 2010-06-15 11:14:52 EDT
Let's try to do a fix.
Comment 4 Robert Elves CLA 2010-06-15 22:01:50 EDT
There doesn't appear to be sufficient api to fix the issue. For repository tasks, we're unable to determine if the due date set is by virtue of a shared due date being set or a local due date being set (in the execution path, we're unable to test if the repo supports due date setting or not).  Currently we just test and reveal if due date set and owned by user. But in the case were a repo doesn't support due dates, and a local due date is set, and the user is not owner, the task will not appear.
Comment 5 Steffen Pingel CLA 2010-06-15 22:52:30 EDT
That sounds right. We would probably to modify the API to address that. I am not sure I understand how that relates to this bug though. I thought that was tracked here: bug 316188: private due dates for repositories that do not support shared due dates are not treated as personal?

It seemed to me that the bug described by Mik was caused by the duplicate filtering that should in this case not filter the bug from the This Week bin since the due date is not personal and hence the bug is not shown in day bins.
Comment 6 Robert Elves CLA 2010-06-15 22:57:07 EDT
Created attachment 172011 [details]
patch

yes, you're correct, the bug mentioned in the summary shoudl have a solution along these lines I believe.
Comment 7 Robert Elves CLA 2010-06-15 22:57:08 EDT
Created attachment 172012 [details]
mylyn/context/zip
Comment 8 Mik Kersten CLA 2010-06-16 14:05:08 EDT
Bootsrapping on the patch now.
Comment 9 Mik Kersten CLA 2010-06-16 15:05:09 EDT
I'm working with the patch, and did an A/B by opening up two Eclipses on the same Task List.  The instance of the problem I was seeing before is gone, so as far as I can tell the bug is fixed.  

Steffen, can you confirm?  Is this the last remaining major defect of the scheduled presentation?

If so, it is critical that we get this out asap, whether that means 3.4.0 or 3.4.1.
Comment 10 Mik Kersten CLA 2010-06-16 22:31:58 EDT
Rob: Haven't heard back from Steffen yet.  Is this tested sufficiently on your end?  Any reason you shouldn't commit it?  I haven't noticed any problems working on the patch.
Comment 11 Steffen Pingel CLA 2010-06-17 14:41:36 EDT
I find that the code that populates the scheduled containers is not very readable which make it difficult to verify whether this is the right fix. Rob, could you add some basic test coverage? I understand that there are too many parameters to test for all combinations but it's critical that we have some coverage that ensures that scheduled or due tasks indeed show in the presentation.
Comment 12 Robert Elves CLA 2010-06-24 13:01:16 EDT
Have started on tests (still sitting in my workspace)
Comment 13 Mik Kersten CLA 2010-06-25 11:54:19 EDT
We need to get this committed one way or another.  This bug is preventing proper dogfooding of the presentation.  I'm all for the tests, but not at the cost of having us discouraged from using it.
Comment 14 Robert Elves CLA 2010-06-25 12:14:53 EDT
Mik, I've committed that change and will commit more test coverage shortly.
Comment 15 Steffen Pingel CLA 2010-06-25 13:30:23 EDT
I don't understand this concern. Anyone running bootstrapped who wants to dogfood the presentation can simply apply the patch.
Comment 16 Robert Elves CLA 2010-06-25 18:06:06 EDT
Committed some test coverage
Comment 17 Steffen Pingel CLA 2010-06-26 16:05:39 EDT
I assume this got committed to head? Let me know if you want me to apply it to the 3.4.x branch and run a build.
Comment 18 Robert Elves CLA 2010-06-28 13:29:18 EDT
Yes, committed to head, if you could merge to 3.4.x that would be great.
Comment 19 Steffen Pingel CLA 2010-06-28 15:49:08 EDT
Patch committed to e_3_6_m_3_4_x branch. I'll kick off a new build.
Comment 20 Robert Elves CLA 2010-07-08 14:23:58 EDT
Thanks.