Bug 240025

Summary: Notification manager stores too many unneeded obsolete notifications
Product: [Unmaintained] plasma4 Reporter: anton <benderamp>
Component: notificationsAssignee: Marco Martin <notmart>
Status: RESOLVED FIXED    
Severity: normal CC: aseigo, plasma-bugs
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: long list of useless notifications

Description anton 2010-05-29 22:42:05 UTC
Version:           unspecified (using Devel) 
OS:                Linux

Platform Version 4.4.81 (KDE 4.4.81 (KDE 4.5 >= 20100527)) "release 3" from opensuse unstable

See attached screenshot to see what I mean. In short, notification manager is spammed with messages like "wlan connected to network1"/"wlan disconnected from network1"/"wlan connected to network1"/... and also tons of other zero-importance messages like errors from kopete. I have to click "close" on each one of them which seems to be rather annoying.

Reproducible: Didn't try

Steps to Reproduce:
try to connect/disconnect from wifi multiple times

Actual Results:  
notification manager would pedantly store the history of each one of such attmpts

Expected Results:  
such kind of notifications should pop up for some time and then go away forever, or at least override the old ones of same type.
Comment 1 anton 2010-05-29 22:43:11 UTC
Created attachment 47465 [details]
long list of useless notifications
Comment 2 Aaron J. Seigo 2010-06-08 01:47:20 UTC
there's a limit of 15 historical notifications
Comment 3 anton 2010-06-08 14:56:20 UTC
Thank's for this fix.

I still think that having 15 wlan connected/wlan disconnected items is evident overhead, and they actually migt hide more important notifications (for example like from kopete).

For some types of notifications there might be a timeout after which they would be dismissed automatically. And there also should be notification groups in which the new notification once appeared would replace the old one (in the above example, "wlan connected" would replace "wlan disconnected" and vice versa).