Local Folders are always moved to the end of the account list after a restart
Categories
(Thunderbird :: Account Manager, defect)
Tracking
(thunderbird91 verified)
Tracking | Status | |
---|---|---|
thunderbird91 | --- | verified |
People
(Reporter: jose, Assigned: freaktechnik)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
wsmwk
:
approval-comm-beta+
|
Details |
+++ This bug was initially created as a clone of Bug #1706849 +++
Dragging feed accounts works, but after a restart they are back at the original position.
Maybe something that was overlooking in bug 1706849.
Reporter | ||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
Comment 1•3 years ago
|
||
Don't look at me, it happens with or without the change I made. Bug 244347 is what did it, most likely.
Reporter | ||
Comment 2•3 years ago
|
||
(In reply to Geoff Lankow (:darktrojan) from comment #1)
Don't look at me, ...
I'm looking at the Thunderbird team (and NI'ed someone who has looked at this code before (bug 1706849, bug 1721761)) to fix a regression that will inconvenience some users who are used to a certain account order.
Assignee | ||
Comment 3•3 years ago
|
||
Quick testing shows that the move is properly persisted in the mail.accountmanager.accounts
pref, but somethings seems to move Local Folders to the bottom again at startup.
Reporter | ||
Comment 4•3 years ago
|
||
That's what I saw, too, now that "something" needs to be found.
Comment 5•3 years ago
|
||
Probably the default location for the only default account Thunderbird ships with.
I personally prefer it at the bottom, since it is easier to find.
Comment 6•3 years ago
|
||
The issue was introduced here: https://hg.mozilla.org/comm-central/rev/800f2782950f#l11.12. This code runs at startup and moves "Local Folders" last. Not only feed accounts are moved before local folders, for example, moving "Local Folders" to the top doesn't stick either. Sadly the code wasn't commented, you need to read bug 244347 comment #128(!!) downwards to see the motivation. Our fix for the time being is here:
https://github.com/Betterbird/thunderbird-patches/blob/main/91/bugs/1721574-feed-account-move.patch
Reporter | ||
Comment 7•3 years ago
|
||
Right, I adjusted the summary accordingly, so this can be found easier. Moving local folders to the top was a feature of the add-on, see bug 244347 comment #135.
Assignee | ||
Comment 8•3 years ago
|
||
Let me clean up the summary a bit.
Assignee | ||
Comment 9•3 years ago
|
||
Comment 10•3 years ago
|
||
Thanks for validating our analysis. Do you think this comment could be useful? Insert a new account before "local folders" if "local folders" was last.
Otherwise it's hard to tell what this code is for.
Assignee | ||
Comment 11•3 years ago
|
||
(In reply to Zoe Martin from comment #10)
Thanks for validating our analysis. Do you think this comment could be useful?
Insert a new account before "local folders" if "local folders" was last.
Otherwise it's hard to tell what this code is for.
I'm not sure what the context of the comment is, is this for a specific line of my patch? In general we want to always append accounts while building the account list, which is what this patch fixes.
Comment 12•3 years ago
|
||
Well, as per comment #6, the code of the new hunk wasn't documented, so we were tempted to revert it before reading about the motivation the original bug. That's why we added this:
https://github.com/Betterbird/thunderbird-patches/blob/main/91/bugs/1721574-feed-account-move.patch#L61
Assignee | ||
Updated•3 years ago
|
Comment 13•3 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/7e01d4429355
Ignore local folders position when creating accounts during startup. r=benc
Updated•3 years ago
|
Comment hidden (obsolete) |
Assignee | ||
Comment 15•3 years ago
|
||
Comment on attachment 9232875 [details]
Bug 1721574 - Ignore local folders position when creating accounts during startup. r=benc
[Approval Request Comment]
Regression caused by (bug #): bug 244347
User impact if declined: Local Folders will always move to the end of the account list when Thunderbird is started
Testing completed (on c-c, etc.): automated tests, verified in daily
Risk to taking this patch (and alternatives if risky): Changes logic initializing the accounts, however should have a low probability of breaking the account loading all together. Worst I could see is that account order logic misbehaves in some other way.
Comment 16•3 years ago
|
||
Comment on attachment 9232875 [details]
Bug 1721574 - Ignore local folders position when creating accounts during startup. r=benc
[Triage Comment]
Approved for beta
Comment 17•3 years ago
|
||
bugherder uplift |
Thunderbird 91.0b6:
https://hg.mozilla.org/releases/comm-beta/rev/07943634f891
Updated•3 years ago
|
Comment 19•3 years ago
|
||
Description
•