Bug 219540 - 2nd level sorting in Task List
Summary: 2nd level sorting in Task List
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 enhancement (vote)
Target Milestone: 3.0   Edit
Assignee: Frank Becker CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
: 219541 219542 219543 224721 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-20 00:07 EST by Frank Becker CLA
Modified: 2009-08-14 00:44 EDT (History)
3 users (show)

See Also:


Attachments
patch (12.56 KB, patch)
2008-02-21 15:42 EST, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (10.18 KB, application/octet-stream)
2008-02-21 15:42 EST, Frank Becker CLA
no flags Details
Patch with JUnit Test (15.96 KB, patch)
2008-02-24 12:27 EST, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (10.21 KB, application/octet-stream)
2008-02-24 12:27 EST, Frank Becker CLA
no flags Details
Bookmarks sorting dialog (20.71 KB, image/jpeg)
2008-04-01 18:13 EDT, Robert Elves CLA
no flags Details
alternative Patch (22.78 KB, patch)
2008-04-05 15:36 EDT, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (16.16 KB, application/octet-stream)
2008-04-05 15:36 EDT, Frank Becker CLA
no flags Details
corrected Version of alternative Patch (26.11 KB, patch)
2008-04-05 15:44 EDT, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (16.11 KB, application/octet-stream)
2008-04-05 15:44 EDT, Frank Becker CLA
no flags Details
updated patch (40.09 KB, patch)
2008-04-22 18:56 EDT, Robert Elves CLA
no flags Details | Diff
updated patch (25.31 KB, patch)
2008-04-24 17:26 EDT, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (20.50 KB, application/octet-stream)
2008-04-24 17:26 EDT, Frank Becker CLA
no flags Details
screanshot (33.92 KB, image/tiff)
2008-04-29 13:39 EDT, Frank Becker CLA
no flags Details
updated Patch (26.45 KB, patch)
2008-05-03 16:56 EDT, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (24.97 KB, application/octet-stream)
2008-05-03 16:56 EDT, Frank Becker CLA
no flags Details
updated patch (21.47 KB, patch)
2008-05-06 16:49 EDT, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (26.48 KB, application/octet-stream)
2008-05-06 16:49 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 Frank Becker CLA 2008-02-20 00:07:27 EST
-- Created from Comment --
URL: https://bugs.eclipse.org/bugs/show_bug.cgi?id=216150
Comment: 5

Frank: this bug is about sorting in the Search view, not Task List.  However, it would be great if you could make a new bug for your additional Task List sorting, because there have been some requests for that as well.  Regarding this approach, I have a bit of a usability concern with your approach though, because some might have trouble understanding the word "Level", and because doubly-nested menus are hard to use.  What if the menu was?
* First Sort by -> full list of sorters
* Then Sort by -> full list of sorters

Btw, if you're interested in providing a patch for this bug that would be great too.  What we're after is that no matter what primary sort order is chosen in the Search view, there should be a second sort order that's by ID and description (with the same semantics as in the Task List).
Comment 1 Frank Becker CLA 2008-02-20 00:28:27 EST
*** Bug 219542 has been marked as a duplicate of this bug. ***
Comment 2 Frank Becker CLA 2008-02-20 00:28:43 EST
*** Bug 219543 has been marked as a duplicate of this bug. ***
Comment 3 Frank Becker CLA 2008-02-20 00:29:04 EST
*** Bug 219541 has been marked as a duplicate of this bug. ***
Comment 4 Frank Becker CLA 2008-02-21 15:42:45 EST
Created attachment 90402 [details]
patch
Comment 5 Frank Becker CLA 2008-02-21 15:42:48 EST
Created attachment 90403 [details]
mylyn/context/zip
Comment 6 Eugene Kuleshov CLA 2008-02-24 01:18:18 EST
Frank, it would be great if you'd add a tests for TaskListTableSorter class. See existing TableSorterTest.
Comment 7 Frank Becker CLA 2008-02-24 12:27:18 EST
Created attachment 90581 [details]
Patch with JUnit Test

I add test for sort by Priority and then by Summary
Comment 8 Frank Becker CLA 2008-02-24 12:27:20 EST
Created attachment 90582 [details]
mylyn/context/zip
Comment 9 Mik Kersten CLA 2008-02-28 14:22:51 EST
Rob: please review next week (after we're all done with 2.3).
Comment 10 Robert Elves CLA 2008-04-01 18:13:03 EDT
Created attachment 94449 [details]
Bookmarks sorting dialog

After trying the ui out first hand, perhaps we should consider using a single "Sorting..." menu option that opens a dialog similar to the Bookmarks (legacy) view's.   Mik, what are your thougths on this?
Comment 11 Frank Becker CLA 2008-04-05 15:36:09 EDT
Created attachment 94974 [details]
alternative Patch

Here the patch with a Dialog for setting the sortorder (as in comment 10).
Comment 12 Frank Becker CLA 2008-04-05 15:36:12 EDT
Created attachment 94975 [details]
mylyn/context/zip
Comment 13 Frank Becker CLA 2008-04-05 15:44:44 EDT
Created attachment 94976 [details]
corrected Version of alternative Patch

Sorry I did not include the test.
Comment 14 Frank Becker CLA 2008-04-05 15:44:46 EDT
Created attachment 94977 [details]
mylyn/context/zip
Comment 15 Robert Elves CLA 2008-04-07 20:09:53 EDT
*** Bug 224721 has been marked as a duplicate of this bug. ***
Comment 16 Robert Elves CLA 2008-04-22 18:55:53 EDT
Just a couple nits remaining on this one Frank: 
*The dialog shell needs a title
* the action title should be Sort...
* need to ensure that the second level sort is persisted between workbench sessions (i.e. if sort by summary is chosen as the second level, upon restarting it should still be the case)
Comment 17 Robert Elves CLA 2008-04-22 18:56:59 EDT
Created attachment 97109 [details]
updated patch
Comment 18 Frank Becker CLA 2008-04-24 17:26:49 EDT
Created attachment 97531 [details]
updated patch

Rob,

I  did not found the changes that you described in comment 16 and 17 so I create a new patch.
Comment 19 Frank Becker CLA 2008-04-24 17:26:51 EDT
Created attachment 97532 [details]
mylyn/context/zip
Comment 20 Mik Kersten CLA 2008-04-29 04:32:13 EDT
Frank: could you attach a screenshot?
Comment 21 Frank Becker CLA 2008-04-29 13:39:29 EDT
Created attachment 98030 [details]
screanshot

Here the screanshot from my Mac.

I know that this dialog is not Mylyn like but I am nos so good in UI Design.
Comment 22 Mik Kersten CLA 2008-05-02 22:03:26 EDT
Great stuff Frank.  Little nits:
* "Sortorder of the Task List" -> TaskListView.LABEL_VIEW + " Sorting"
* "Sort by" -> "Sort order:"
* "Date_Created" -> "Date Created"
Comment 23 Frank Becker CLA 2008-05-03 16:56:49 EDT
Created attachment 98540 [details]
updated Patch

corrections from comment 22 included.
Comment 24 Frank Becker CLA 2008-05-03 16:56:52 EDT
Created attachment 98541 [details]
mylyn/context/zip
Comment 25 Robert Elves CLA 2008-05-05 22:14:51 EDT
Frank, I've got some merge errors on TaskListView and TaskListTableSorter... any chance you could recut this patch and I'll try to get it applied before things change again (no promises though considering the dynamic nature of things lately). :)
Comment 26 Frank Becker CLA 2008-05-06 04:03:16 EDT
 (In reply to comment #25)
> Frank, I've got some merge errors on TaskListView and TaskListTableSorter... any
> chance you could recut this patch and I'll try to get it applied before things
> change again (no promises though considering the dynamic nature of things
> lately). :)
Yes, but I first have to finish the setup of my new MacBook Pro (actually I must install the needed Pearl Modules for Bugzilla).
Hope that I can finish this this night.
Comment 27 Frank Becker CLA 2008-05-06 16:49:09 EDT
Created attachment 98951 [details]
updated patch

as requested by comment 25
Comment 28 Frank Becker CLA 2008-05-06 16:49:17 EDT
Created attachment 98952 [details]
mylyn/context/zip
Comment 29 Robert Elves CLA 2008-05-08 19:11:06 EDT
Great! Patch applied, ip log updated.