Closed Bug 1973720 Opened 5 months ago Closed 5 months ago

In-app notifications: not properly sorting by percent chance

Categories

(Thunderbird :: General, defect)

defect

Tracking

(thunderbird_esr140 affected)

RESOLVED FIXED
142 Branch
Tracking Status
thunderbird_esr140 --- affected

People

(Reporter: freaktechnik, Assigned: arschmitz)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

https://searchfox.org/comm-central/rev/b70cb910582f75f9b09cf661914e7c7ee8c2003d/mail/components/inappnotifications/modules/NotificationManager.sys.mjs#233 tries to sort by percent_chance if severity and the start date are identical. However percent_chance is on the targeting object, so we're not actually sorting by it currently. This also highlights that sorting is currently not properly tested.

This code was introduced by bug 1936323 but since it didn't do anything previously this isn't actually a regression.

Blocks: tb140found
Assignee: nobody → arschmitz
Status: NEW → ASSIGNED

Pushed by kaie@kuix.de:
https://hg.mozilla.org/comm-central/rev/ad7d5200ca8a
Correctly sort in app notifications by percent_chance. r=freaktechnik

Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: 133 Branch → 142 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: