Closed
Bug 1192838
Opened 9 years ago
Closed 9 years ago
Fix broken Grouped By view sort direction change, enable custom column grouping
Categories
(Thunderbird :: Folder and Message Lists, defect)
Thunderbird
Folder and Message Lists
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 45.0
People
(Reporter: alta88, Assigned: alta88)
References
(Blocks 1 open bug)
Details
Attachments
(5 files, 9 obsolete files)
7.40 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
4.38 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
15.28 KB,
patch
|
alta88
:
review+
|
Details | Diff | Splinter Review |
7.92 KB,
patch
|
alta88
:
review+
|
Details | Diff | Splinter Review |
4.69 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
No description provided.
The forthcoming patch should resolve all the Blocks: bugs.
Comment 2•9 years ago
|
||
To test these, I need to have custom column sort and group view both enabled. The UI won't let me do that. What are you doing that allows you to set this up for test? If I select sort by a custom column (by clicking on the column) it disables group view.
This wip will enable the groupby menuitem and enable collapseAll/ExpandAll on groupby. Column sorts for secondary cust cols should already work. But cust col column click sort in groupby is not yet done.
Better wip, fixes threading regression, fixes remaining issue #1 in bug 1195480 comment 3.
Attachment #8650101 -
Attachment is obsolete: true
Updated•9 years ago
|
Assignee: nobody → alta88
Part 1.
Attachment #8650183 -
Attachment is obsolete: true
Attachment #8652348 -
Flags: review?(rkent)
Part 2, column click sorting. These patches should all be applied with the ones in the blocking bugs, and finish the scope of this bug. Automatically listing custom columns in the View-Sort By menulist, rather than having the extension do it, is a separate bug.
Attachment #8652349 -
Flags: review?(rkent)
unbitrot.
Attachment #8652348 -
Attachment is obsolete: true
Attachment #8652348 -
Flags: review?(rkent)
Attachment #8656945 -
Flags: review?(rkent)
tweak to ensure non virt collapseAll folder sorts.
Attachment #8652349 -
Attachment is obsolete: true
Attachment #8652349 -
Flags: review?(rkent)
Attachment #8656946 -
Flags: review?(rkent)
Comment 9•9 years ago
|
||
These patches are all in the /mail directory code, which I'll review for simple things but would prefer to leave to magnus. I hate to do this to you after you;ve been waiting, but I really think we should ask Magnus for the reviews. The blocking bugs are all approved now and should land soon. I'll be mostly AFK until next Tuesday in any case so would not get to them for another week.
Updated•9 years ago
|
Attachment #8656945 -
Flags: review?(rkent) → review?(mkmelin+mozilla)
Updated•9 years ago
|
Attachment #8656946 -
Flags: review?(rkent) → review?(mkmelin+mozilla)
Assignee | ||
Comment 10•9 years ago
|
||
Attachment #8656945 -
Attachment is obsolete: true
Attachment #8656945 -
Flags: review?(mkmelin+mozilla)
Attachment #8663746 -
Flags: review?(mkmelin+mozilla)
Assignee | ||
Comment 11•9 years ago
|
||
unbitrot.
Attachment #8656946 -
Attachment is obsolete: true
Attachment #8656946 -
Flags: review?(mkmelin+mozilla)
Attachment #8663747 -
Flags: review?(mkmelin+mozilla)
Assignee | ||
Comment 12•9 years ago
|
||
the patch in bug 544489 must be done first.
Attachment #8663746 -
Attachment is obsolete: true
Attachment #8663746 -
Flags: review?(mkmelin+mozilla)
Attachment #8664008 -
Flags: review?(mkmelin+mozilla)
Assignee | ||
Comment 13•9 years ago
|
||
clean up the clickable columns map.
Attachment #8668699 -
Flags: review?(mkmelin+mozilla)
Updated•9 years ago
|
Attachment #8668699 -
Flags: review?(mkmelin+mozilla) → review+
Comment 14•9 years ago
|
||
These are some pretty complex changes. Could you add some tests?
Assignee | ||
Comment 15•9 years ago
|
||
Not that complex, imo. By volume of change, it's mostly refactoring for early return and making dense style more readable. The logic changes are documented in the code. Anyway, there are some grouped view tests in xpcshell. This adds several more and tests that custom column grouping works.
Attachment #8670824 -
Flags: review?(mkmelin+mozilla)
Updated•9 years ago
|
Attachment #8663747 -
Flags: review?(mkmelin+mozilla) → review+
Comment 16•9 years ago
|
||
Comment on attachment 8664008 [details] [diff] [review] enableGroupedByCustomCollapse.patch Review of attachment 8664008 [details] [diff] [review]: ----------------------------------------------------------------- ::: mail/base/content/mail3PaneWindowCommands.js @@ +468,5 @@ > return false; > case "cmd_expandAllThreads": > case "cmd_collapseAllThreads": > + return gFolderDisplay.view.showThreaded || > + gFolderDisplay.view.showGroupedBySort;; nit: double semicolon
Attachment #8664008 -
Flags: review?(mkmelin+mozilla) → review+
Comment 17•9 years ago
|
||
Comment on attachment 8670824 [details] [diff] [review] enableGroupedTests.patch Review of attachment 8670824 [details] [diff] [review]: ----------------------------------------------------------------- ::: mailnews/base/test/unit/test_nsMsgDBView.js @@ +303,5 @@ > + var outCount = {}; > + gDBView.open(aTestFolder, aSortType, aSortOrder, viewFlags, outCount); > + // outCount is 0 if byCustom; view is built by addColumnHandler() > + dump(" View Out Count: " + outCount.value + "\n"); > + please remove the dump
Attachment #8670824 -
Flags: review?(mkmelin+mozilla) → review+
Assignee | ||
Comment 18•9 years ago
|
||
Attachment #8664008 -
Attachment is obsolete: true
Attachment #8674282 -
Flags: review+
Assignee | ||
Comment 19•9 years ago
|
||
Attachment #8670824 -
Attachment is obsolete: true
Attachment #8674283 -
Flags: review+
Assignee | ||
Comment 20•9 years ago
|
||
the original dbviewWrapper created _getSortDetails() to handle the problem of different custom sorts with the same sortType, and even implemented it in _createView(). but until the backend supported secondary/multiple custom columns it wasn't necessary in the sort() and magicSort() apis. fix that now and enable asuth's incredible prescience to be fulfilled..
Attachment #8674354 -
Flags: review?(mkmelin+mozilla)
Comment 21•9 years ago
|
||
Comment on attachment 8674354 [details] [diff] [review] enableCustomColSortAPIs.patch Review of attachment 8674354 [details] [diff] [review]: ----------------------------------------------------------------- Looks reasonable to me.
Attachment #8674354 -
Flags: review?(mkmelin+mozilla) → review+
Assignee | ||
Comment 22•9 years ago
|
||
the checkin order, if it matters, should be: enableGroupedByCustomCollapse.patch enableGroupedByColumnClickSort.patch enableGroupedColumnsMap.patch enableCustomColSortAPIs.patch enableGroupedTests.patch thanks.
Keywords: checkin-needed
Comment 23•9 years ago
|
||
https://hg.mozilla.org/comm-central/rev/e536c76c22e7e7311bedc8b7fa53fd9d6af4346e Bug 1192838 - Fix broken Grouped By view sort direction change, enable custom column grouping menuitem and expandAll/collapseAll on groups, Part 1. r=mkmelin https://hg.mozilla.org/comm-central/rev/0ace2ac366214487cfe6c7ecb18cb57f9f25c5f4 Bug 1192838 - Fix broken Grouped By view sort direction change, enable custom column grouping, Part 2 column click sorting. r=mkmelin https://hg.mozilla.org/comm-central/rev/f84ffb9ecdd2d340b44769d25a40c36a456b9fb5 Bug 1192838 - Fix broken Grouped By view sort direction change, enable custom column grouping menuitem and expandAll/collapseAll on groups, Part 3 - clean up columns map. r=mkmelin https://hg.mozilla.org/comm-central/rev/60912148758030fd23c39662bd8301f64dad0ada Bug 1192838 - Fix broken Grouped By view sort direction change, enable custom column grouping menuitem and expandAll/collapseAll on groups, Part 4 - make sort() and magicSort() support multiple custom columns. r=mkmelin https://hg.mozilla.org/comm-central/rev/f03f355dcdd100da3d056adf81a576465116d952 Bug 1192838 - Fix broken Grouped By view sort direction change: Part 5 - grouped tests. r=mkmelin a=aleth
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 45.0
Comment 24•9 years ago
|
||
Yay! Thank you!
You need to log in
before you can comment on or make changes to this bug.
Description
•