Bug 464612 - Discover creates repeated notifications of ongoing tasks when you open and close its window
Summary: Discover creates repeated notifications of ongoing tasks when you open and cl...
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (other bugs)
Version First Reported In: 5.26.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-21 21:04 UTC by Eduardo Correia
Modified: 2023-01-23 23:28 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.27
Sentry Crash Report:


Attachments
example after 3x open/close discover window (1.19 MB, image/png)
2023-01-21 21:07 UTC, Eduardo Correia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eduardo Correia 2023-01-21 21:04:54 UTC
SUMMARY
Discover creates many repeated notifications of "installing updates" with the progress bar when you open and close its window repeatedly. A recent KDE update made Discover able to be closed while installing updates or apps, and a pending notification will appear with the current status. If a user closes the window while it has some ongoing action a notification will be shown with the current progress. However, if the user decides to "go check the progress" in Discover itself, or go do anything else that he reopens Discover window, and then closes it again, a new additional ongoing will be created, even though there was already one. You can spam this and create as many ongoing notifications you like. When Discover finishes its work, all these repeated notifications, as many as there are, will all spam you desktop again telling you they finished their work. The Discover icon in the taskbar also shows the number of notifications, that keeps increasing too as new notifications are created. Basically everything works as expected, except that Discover shouldn't create a new "installing stuff" notification if there was already one.

Added an attachment that tries to show exactly what happens after I closed and opened Discover window many times (3 times, in the case of the attachment) while a long update was installing.

(confused about if this bug report should go into "discover" component or "notifier").

STEPS TO REPRODUCE
1. Make Discover do some work that takes some time: install many updates, or many apps in a row.
2. Close Discover window, an ongoing notification will be created, as expected.
3. Open Discover window again while it hasn't finished its work, and then close it again.
4. Another additional notification will be created, not removing the old one.
5. Repeat this as many times as you want, you will created dozen of them.
6. All of this ongoing notifications will spam your desktop with "finished" when Discover completes its tasks.

OBSERVED RESULT
Repeated similar ongoing notifications.

EXPECTED RESULT
Discover should maybe check if there is already an ongoing notification similar to what it is trying to create, and not create a new one. Or remove the old one and create a new one.

SOFTWARE/OS VERSIONS
Linux: 6.1.4 64 bits - OpenSUSE Tumbleweed
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.8
Comment 1 Eduardo Correia 2023-01-21 21:07:30 UTC
Created attachment 155485 [details]
example after 3x open/close discover window

Guess I forgot the attachment. Added it now.
Comment 2 Nate Graham 2023-01-23 23:28:38 UTC
Thankfully this has already been fixed for Plasma 5.27!