Bug 217530 - search order should be preserved when "Find" is used on Task List
Summary: search order should be preserved when "Find" is used on Task List
Status: ASSIGNED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: dev   Edit
Hardware: PC Windows Vista
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Frank Becker CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 192488 217531 (view as bug list)
Depends on: 212967
Blocks: 211011
  Show dependency tree
 
Reported: 2008-02-01 19:47 EST by Willian Mitsuda CLA
Modified: 2011-02-02 12:29 EST (History)
2 users (show)

See Also:


Attachments
Screenshot (85.16 KB, image/jpeg)
2008-02-01 19:49 EST, Willian Mitsuda CLA
no flags Details
mylyn/context/zip (2.63 KB, application/octet-stream)
2008-10-24 16:02 EDT, Frank Becker CLA
no flags Details
patch (9.90 KB, patch)
2009-08-22 17:18 EDT, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (3.70 KB, application/octet-stream)
2009-08-22 17:18 EDT, Frank Becker CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Willian Mitsuda CLA 2008-02-01 19:47:48 EST
- Switch to workweek mode.
- Type something in the find box in task list.

The filtered results come in some undetermined order (at least I was not able to find a criteria, and didn't look at the code).

I'll post a screenshot.
Comment 1 Willian Mitsuda CLA 2008-02-01 19:49:05 EST
Created attachment 88645 [details]
Screenshot
Comment 2 Willian Mitsuda CLA 2008-02-01 19:51:53 EST
I'll give an award if you guess what is the sorting order for the above screenshot.

It certain is NOT:

- Priority.
- Bug ID.
- Summary.

The only thing I was able to recognize is that completed tasks are group after non-completed.
Comment 3 Mik Kersten CLA 2008-02-05 12:09:29 EST
Rob: please review.
Comment 4 Mik Kersten CLA 2008-02-05 12:13:15 EST
*** Bug 217531 has been marked as a duplicate of this bug. ***
Comment 5 Mik Kersten CLA 2008-02-05 12:14:02 EST
Updated title as per bug 217530.  

Rob: note that the order needs to be preserved both for Focused and Unfocused mode (i.e. the sorter should not change).
Comment 6 Robert Elves CLA 2008-06-14 00:30:59 EDT
Need to defer: http://wiki.eclipse.org/index.php/Mylyn/3.0_Plan#Deferred_Items
Comment 7 Robert Elves CLA 2008-10-22 01:49:11 EDT
Frank, since you're investigating other search related bugs I'm reassigning this to you. Just pass back if out of scope.
Comment 8 Frank Becker CLA 2008-10-24 16:02:04 EDT
(In reply to comment #7)
> Frank, since you're investigating other search related bugs I'm reassigning this
> to you. Just pass back if out of scope.

OK, what I found until now is that TaskListInterestSorter.compare should be changed in the same way like TaskListTableSorter.compare (bug#231336)

I wait with a pach until the patch for bug#231336 is reviewed.
Comment 9 Frank Becker CLA 2008-10-24 16:02:12 EDT
Created attachment 116105 [details]
mylyn/context/zip
Comment 10 Steffen Pingel CLA 2009-01-27 03:02:49 EST
I'll move this for 3.2 for now. There are some fixes and refactorings I want to take a look at before we make further changes to the sorting implementation (bug 261998).
Comment 11 Steffen Pingel CLA 2009-05-19 01:02:54 EDT
It seems that TaskListInterestSorter sorts in the following order: completion state, due date, scheduled date, priority, summary. Since this is essentially a special mode of TaskListSorter I am in favor of replacing TaskListInterestSorter by TaskListSorter after bug 212967 has been resolved. Frank, what are your thought on this?
Comment 12 Frank Becker CLA 2009-05-20 15:20:53 EDT
(In reply to comment #11)
> It seems that TaskListInterestSorter sorts in the following order: completion
> state, due date, scheduled date, priority, summary. Since this is essentially a
> special mode of TaskListSorter I am in favor of replacing
> TaskListInterestSorter by TaskListSorter after bug 212967 has been resolved.
> Frank, what are your thought on this?
> 

Steffen, yes this looks good to me.
Comment 13 Steffen Pingel CLA 2009-05-20 22:49:40 EDT
Great, then let's consider this for the next release and complete the pending changes first.
Comment 14 Steffen Pingel CLA 2009-08-19 21:47:49 EDT
*** Bug 192488 has been marked as a duplicate of this bug. ***
Comment 15 Frank Becker CLA 2009-08-22 17:18:41 EDT
Created attachment 145343 [details]
patch

please review
Comment 16 Frank Becker CLA 2009-08-22 17:18:45 EDT
Created attachment 145344 [details]
mylyn/context/zip
Comment 17 Steffen Pingel CLA 2009-10-10 19:27:37 EDT
Thanks Frank. I am not sure that that patch addresses the problem. We still want a special sorting order when the task list is focused. 

I would like to reopen the discussion for the next release. One of the problems with the current search mode is that it displays duplicates when queries in the task list overlap. I find that that impacts the value of filtering significantly and I would like to brainstorm if we can make other improvements along with resolving this bug.
Comment 18 Steffen Pingel CLA 2010-04-29 21:06:48 EDT
Let's take this off the milestone for now since we are overloaded already.