Community
Participate
Working Groups
When I mark the incoming folder read, I expect it to mark only those tasks that are in the current working set, but it marks all incoming tasks in all working sets read. Now I have no idea what incomings I've missed.
Aggreed, the behavior is unexpected with a major impact. Let's try to get this fixed for 3.6.1.
Created attachment 209041 [details] patch Steffen, let me know if you think of any edge cases where this would behave strangely; it seems to me like the right thing to do and it works.
Created attachment 209042 [details] mylyn/context/zip
The filtering needs be controlled by sub-classes since AbstractTaskHandler is used for all kinds of commands some of which are independent of the task list and working set (e.g. when executed from the task editor). While the code is very compact I'm not a big fan of labels. To keep the code consistent with other parts of Mylyn I would prefer if the nested loop was extracted to a method.
The filtering only happens when selecting an ITaskContainer that isn't an ITask. How could a user select one outside of the task list?
(In reply to comment #5) > The filtering only happens when selecting an ITaskContainer that isn't an ITask. > How could a user select one outside of the task list? Good point, but it's still not intuitive to sub-class implementors that this type of filtering would be happening in the parent class. There should at least be a boolean flag to toggle the behavior, e.g. filterBasedOnActiveTaskList.
Created attachment 209229 [details] patch with flag
Thanks for the update. Can you change the boolean flag in the constructor to using a set/getter? That makes it more obvious what the flag means. If you add a test case I'll be happy to apply the patch.
Sam, are you planning to resolve this for 3.8?
I am scheduling this for Monday. It will depend on the feasibility of adding a test case.
Steffen, I've pushed a review with the requested change and a test case.
Great! Thanks. I have submitted the review: https://git.eclipse.org/r/#change,6163.