Closed
Bug 1185417
Opened 10 years ago
Closed 10 years ago
Wrong logic on asterisks for new messages
Categories
(Thunderbird :: Folder and Message Lists, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 45.0
People
(Reporter: fry.kun, Assigned: aceman)
References
Details
Attachments
(1 file, 1 obsolete file)
|
7.21 KB,
patch
|
mkmelin
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:39.0) Gecko/20100101 Firefox/39.0
Build ID: 20150708164734
Steps to reproduce:
Upgraded Thunderbird
Actual results:
If a folder has unread messages and has subfolders and subfolders are not visible, count of unread messages is displayed with an asterisk (*)
This wrongly applies to new messages in the visible folder only; when expanded to view inner folders, count stays the same but asterisk disappears
e.g.:
> Inbox (*123)
and
v Inbox (123)
Foo
Expected results:
Asterisk indicator would make a lot more sense if it were used for unread-in-inner-folder condition only.
e.g.:
> Inbox (123)
and
v Inbox (123)
Foo
Bar
Note, this case is already correct:
> Inbox (*123)
and
v Inbox (120)
Foo (3)
| Reporter | ||
Updated•10 years ago
|
Version: 31 → 38
Updated•10 years ago
|
Component: Untriaged → Folder and Message Lists
Whiteboard: [dupeme?]
This looks like what bug 1190609 is also proposing but this one is clearly defined.
Assignee: nobody → acelists
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Unspecified → All
Hardware: Unspecified → All
This should implement the requested feature.
There is some more support for this feature in bug 1190609 so I have CCed the interested people here.
aleth, can you try this out?
Attachment #8643995 -
Flags: feedback?(aleth)
Thanks aceman!
Fyi, the same logic bug exists for the asterisk with respect to the column number indicators.
Ie, a parent folder with a size of 10MB, and one or more sub folders that are empty, the asterisk still displays when the parent is collapsed.
No, I have implemented the logic it for all 4 values (3 columns + unread count tacked on folder name).
Comment 7•10 years ago
|
||
Comment on attachment 8643995 [details] [diff] [review]
patch
Review of attachment 8643995 [details] [diff] [review]:
-----------------------------------------------------------------
Looks OK to me. Charles is probably a better person to test this, as he seems to have a profile with use cases ;)
::: mail/base/content/folderPane.js
@@ +2224,5 @@
> if (!document.getElementById("folderUnreadCol").hidden)
> return text;
>
> + let totalUnread = this._folder.getNumUnread(gFolderStatsHelpers.sumSubfolders);
> + let unread = this._folder.getNumUnread(false);
Might be easier to change getNumUnread so that it returns both.
@@ +2832,4 @@
> },
>
> /**
> * Recursively get the size of specified folder and all its subfolders.
The latter only happens if this.sumSubFolders is true. Should be added to the comment.
Though the code might be simpler to read if you had
getFolderSize() (Doesn't include subfolders)
getTotalFolderSize() (Does include subfolders, calls getTotalFolderSize recursively if there are subfolders and getFolderSize if there are no subfolders. Can still return an array.)
@@ +2843,4 @@
> try {
> + folderSize = aFolder.sizeOnDisk;
> + if (folderSize < 0)
> + return [this.kUnknownSize, null];
Is [this.kUnknownSize, this.kUnknownSize] more consistent?
Attachment #8643995 -
Flags: feedback?(tanstaafl)
Attachment #8643995 -
Flags: feedback?(aleth)
Attachment #8643995 -
Flags: feedback+
So... I'd be happy to provide feedback, but is there a build available I can install? I'm not a dev and not sure how to go about applying this patch...
Aleth, can you push it to try server to get the try build?
Flags: needinfo?(aleth)
Comment 10•10 years ago
|
||
Comment 11•10 years ago
|
||
Once completed, builds and logs will be available at:
https://ftp-ssl.mozilla.org/pub/mozilla.org/thunderbird/try-builds/aleth@instantbird.org-fd215cd1a275
Updated•10 years ago
|
Flags: needinfo?(aleth)
| Assignee | ||
Comment 13•10 years ago
|
||
Somehow I can't see if the push job did succeed. But there are binaries created in the mentioned folder. Charles, can you try out the builds?
Comment 14•10 years ago
|
||
These builds failed, c-c is busted atm.
Comment 15•10 years ago
|
||
Comment 16•10 years ago
|
||
| Assignee | ||
Comment 17•10 years ago
|
||
aleth, why do the 2 links have different hashes? The treeherder link does not show any state of the push. However the ftp folder does contain some builds. Charles, can you try the fix in the builds?
| Assignee | ||
Comment 18•10 years ago
|
||
Addressed aleth's notes.
Attachment #8643995 -
Attachment is obsolete: true
Attachment #8643995 -
Flags: feedback?(tanstaafl)
Attachment #8666390 -
Flags: review?(mkmelin+mozilla)
Comment 19•10 years ago
|
||
My apologies, been extremely busy at $dayjob...
If there is a new try build available with the new patch, I can test it out today...
| Assignee | ||
Comment 20•10 years ago
|
||
There should be no functional changes in the new patch, you can use the existing build (comment 11).
Comment 21•10 years ago
|
||
Comment on attachment 8666390 [details] [diff] [review]
patch v2
Review of attachment 8666390 [details] [diff] [review]:
-----------------------------------------------------------------
LGTM, r=mkmelin
Attachment #8666390 -
Flags: review?(mkmelin+mozilla) → review+
| Assignee | ||
Comment 22•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 45.0
You need to log in
before you can comment on or make changes to this bug.
Description
•