Bug 401971

Summary: Almost all apps are deleted from Featured apps list after their batch installation/removal
Product: [Applications] Discover Reporter: Alexander Mentyu <notuxius>
Component: discoverAssignee: Aleix Pol <aleixpol>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR    
Version: 5.14.4   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In: 5.15.0
Sentry Crash Report:
Attachments: List before batch installation
List after installation

Description Alexander Mentyu 2018-12-10 17:56:07 UTC
STEPS TO REPRODUCE
1. Install or remove multiple featured apps in batch mode (several at a time).
2. Watch featured apps list.

OBSERVED RESULT
Almost empty 'Featured' list - screenshot 2

EXPECTED RESULT
Featured apps stay in the list

SOFTWARE/OS VERSIONS
Operating System: KDE neon Developer Edition
KDE Plasma Version: 5.14.80
KDE Frameworks Version: 5.54.0
Qt Version: 5.11.2
Kernel Version: 4.15.0-42-generic
Comment 1 Alexander Mentyu 2018-12-10 17:57:35 UTC
Created attachment 116833 [details]
List before batch installation
Comment 2 Alexander Mentyu 2018-12-10 17:57:59 UTC
Created attachment 116834 [details]
List after installation
Comment 3 Nate Graham 2018-12-11 18:11:52 UTC
Strange. I notice that the number of reviews for Krita changes between the before and after screenshots, too. It looks like a backend might have stopped working or something. Do you have multiple backends installed?
Comment 4 Aleix Pol 2018-12-13 02:39:22 UTC
Git commit 012bd024d631332fa4a4fb7e0ff77374577f61fd by Aleix Pol.
Committed on 13/12/2018 at 02:39.
Pushed by apol into branch 'master'.

pk: change strategy for updating the installed package state

Use the information offered by the transaction instead of clearing the
package and resolving the packages again. PackageKit apt backend is
really slow and issues happen eventually.
Related: bug 401961

M  +12   -11   libdiscover/backends/PackageKitBackend/PKTransaction.cpp
M  +0    -8    libdiscover/backends/PackageKitBackend/PackageKitBackend.cpp
M  +0    -1    libdiscover/backends/PackageKitBackend/PackageKitBackend.h

https://commits.kde.org/discover/012bd024d631332fa4a4fb7e0ff77374577f61fd