New address book contacts added to end of list, not in correct sort order
Categories
(Thunderbird :: Address Book, defect, P1)
Tracking
(thunderbird78 fixed)
Tracking | Status | |
---|---|---|
thunderbird78 | --- | fixed |
People
(Reporter: darktrojan, Assigned: darktrojan)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
8.54 KB,
patch
|
mkmelin
:
review+
wsmwk
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
3.00 KB,
patch
|
mkmelin
:
review+
wsmwk
:
approval-comm-beta+
|
Details | Diff | Splinter Review |
In the address book window, if a new contact is added to the displayed directory, it is added to the end of the list, instead of wherever in the list it should be based on the current sort order.
Theres two places we add cards to the list that need fixing. The comparator we use will need to be extracted for this purpose. Bonus points if finding the right place can be done by bisection rather than comparing every row.
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Tests could be added/adapted in https://searchfox.org/comm-central/source/mail/components/addrbook/test/browser/browser_contact_tree.js
Updated•5 years ago
|
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 2•4 years ago
|
||
There's much more here that needed fixing than I first thought. I've cached the cell texts for better performance (and cleared the cache when notified of an updated contact), switched to using Intl.Collator instead of simple string comparison, and added more testing. Arguably there's much more that needs testing, like sorting on different columns, but I have some confidence that that works.
Assignee | ||
Updated•4 years ago
|
Comment 3•4 years ago
|
||
Updated•4 years ago
|
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/7e71e1df6485
Overhaul sorting of address book contact list. r=mkmelin
Comment 5•4 years ago
|
||
Comment 6•4 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #5)
Any simple manual tests you can recommend to testers?
Never mind, it's in comment 0
Arguably there's much more that needs testing, like sorting on different columns, but I have some confidence that that works.
Worthy of follow up bug?
Comment 7•4 years ago
|
||
bugherder uplift |
Thunderbird 78.0b4:
https://hg.mozilla.org/releases/comm-beta/rev/040be9666a91
Updated•4 years ago
|
Comment 8•4 years ago
|
||
Still seeing this in testing 78.0b4.
Assignee | ||
Comment 9•4 years ago
|
||
Wow. I really screwed that up. What the hell was I thinking?
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Comment 10•4 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/2e8aebfa1995
Fix sorting of address book contact list (attempt 2). r=mkmelin
Comment 11•4 years ago
|
||
Comment 12•4 years ago
|
||
bugherder uplift |
Thunderbird 78.0b4:
https://hg.mozilla.org/releases/comm-beta/rev/8a29fc272c72
Updated•4 years ago
|
Updated•4 years ago
|
Description
•