This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 208089 - resolve subtask presentation in Task List
Summary: resolve subtask presentation in Task List
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P2 enhancement (vote)
Target Milestone: 3.2   Edit
Assignee: Robert Elves CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 281552 (view as bug list)
Depends on: 191737 195726 197772 204699 204721 204762 205202 207552 210624 249243
Blocks:
  Show dependency tree
 
Reported: 2007-10-30 14:55 EDT by Robert Elves CLA
Modified: 2009-08-13 15:43 EDT (History)
6 users (show)

See Also:


Attachments
first pass (9.36 KB, patch)
2009-05-01 00:35 EDT, Robert Elves CLA
no flags Details | Diff
mylyn/context/zip (37.72 KB, application/octet-stream)
2009-05-01 00:35 EDT, Robert Elves CLA
no flags Details
updated patch (13.52 KB, patch)
2009-05-05 00:04 EDT, Robert Elves CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Elves CLA 2007-10-30 14:55:51 EDT
A number of usability issues have been reported related to subtask visibility and incoming status.
Comment 1 Robert Elves CLA 2007-12-13 16:13:28 EST
Critical subtasks fixed for 2.2. Remaining are on for 2.3/3.0.
Comment 2 Robert Elves CLA 2008-06-14 01:27:29 EDT
Need to defer: http://wiki.eclipse.org/index.php/Mylyn/3.0_Plan#Deferred_Items
Comment 3 Robert Elves CLA 2009-01-27 16:50:32 EST
We've entered into design discussion for this change but have yet converged. Deferring.
Comment 4 Steffen Pingel CLA 2009-04-22 23:41:03 EDT
Here is what we have come up with in our discussion so far:

- Add an option to the query page for settings a flag to retrieve subtasks when querying.
- SynchronizeTasksJob needs to be modified to not retrieve subtasks by default. SynchronizeQueriesJob should provide SynchronizeTasksJob with a list of tasks for which subtasks need to be retrieved.
Comment 5 Robert Elves CLA 2009-05-01 00:35:42 EDT
Created attachment 134036 [details]
first pass

Potential solution, makes use of session object.
Comment 6 Robert Elves CLA 2009-05-01 00:35:50 EDT
Created attachment 134037 [details]
mylyn/context/zip
Comment 7 Steffen Pingel CLA 2009-05-04 16:58:08 EDT
The approach looks good to me. My only concern is that before we have solved the problem better on a conceptual level I would like to avoid putting this into API. How about not exposing the includeRelations flag on IRepositoryQuery but cast to internals in BugzillaSearchPage instead? You might also want to use an "extended" attribute to store the includeRelations flag to avoid having to modify the persistence implementation and task list format.
Comment 8 Robert Elves CLA 2009-05-05 00:04:48 EDT
Created attachment 134360 [details]
updated patch

Thanks for reviewing Steffen.  This updated patch addresses the concerns you raised.  

Mik,  if you could run with this patch before we commit to this it would be great since there are some outstanding usability concerns.  For example, there is a scenario where subtasks will not be exposed when expected.  When a query is switch from not retrieving subtasks over to one that will retrieve subtasks.  In this case if a task has a subtask that doesn't match the query the subtask will not be revealed until the task either has incoming changes or is deleted and resynchronized (a full task data retrieval occurs).
Comment 9 Mik Kersten CLA 2009-05-05 11:59:19 EDT
Now running from patch.

Seems like that edge case may be acceptable.  We should document it carefully if we're stuck with it.
Comment 10 Mik Kersten CLA 2009-05-05 12:37:02 EDT
Can we make this work for JIRA as well?
Comment 11 Steffen Pingel CLA 2009-05-05 12:51:27 EDT
Let's discuss this on the next call. Considering the inconsistencies caused by the change I don't think this should go into the release and I'm not sure that it's worth investing additional time into it.
Comment 12 Mik Kersten CLA 2009-05-27 14:16:18 EDT
I'm seeing errors like the following on every sync.  Could it be related:

java.lang.IllegalArgumentException: Element https://bugs.eclipse.org/bugs-60289 does not exist in the task list.
	at org.eclipse.mylyn.internal.tasks.core.TaskList.getValidElement(TaskList.java:465)
	at org.eclipse.mylyn.internal.tasks.core.TaskList.addTask(TaskList.java:150)
	at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeTasksJob.synchronizedTaskRelations(SynchronizeTasksJob.java:184)
	at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeTasksJob.run(SynchronizeTasksJob.java:147)
	at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeTasksJob.run(SynchronizeTasksJob.java:131)
	at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.run(SynchronizeQueriesJob.java:221)
	at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeRepositoriesJob.updateQueries(SynchronizeRepositoriesJob.java:148)
	at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeRepositoriesJob.run(SynchronizeRepositoriesJob.java:111)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Comment 13 Steffen Pingel CLA 2009-05-27 15:52:30 EDT
Are you running on the patch?
Comment 14 Mik Kersten CLA 2009-05-27 16:50:40 EDT
Yup.  Have been running on it for two weeks or so.
Comment 15 Robert Elves CLA 2009-06-10 15:46:24 EDT
Further progress to be made in next cycle.
Comment 16 Steffen Pingel CLA 2009-06-25 14:31:17 EDT
*** Bug 281552 has been marked as a duplicate of this bug. ***
Comment 17 Steffen Pingel CLA 2009-08-13 15:43:12 EDT
I have moved the last remaining subtask to bug 248377 and we can track further progress on that bug. Great job on getting all these fixes in Rob!