Bug 394669

Summary: category label randomly empty
Product: [Applications] Discover Reporter: Harald Sitter <sitter>
Component: discoverAssignee: Aleix Pol <aleixpol>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.12.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: shot of the screen with 0 a.d. listed as game
shot of the screen with 0 a.d. in game list not having a cat
0ad.xml
adanaxisgpl.xml
freeciv-gtk2.xml

Description Harald Sitter 2018-05-25 13:18:22 UTC
Created attachment 112862 [details]
shot of the screen with 0 a.d. listed as game

For some games the category labels are in the app delegate is empty.

e.g. when going into the global apps list "0 A.D." is listed as a Game, when then going into the Game list it has no category label anymore.

From looking at a bunch of affected apps I'd say that the categories aren't mapped into the UI.
e.g. 0 A.D. is StrategyGame but there is no category like that showing up in the list in discover.

I am attaching a bunch of appstreamcli dumps of examples I could find of this happening.
Comment 1 Harald Sitter 2018-05-25 13:18:53 UTC
Created attachment 112863 [details]
shot of the screen with 0 a.d. in game list not having a cat
Comment 2 Harald Sitter 2018-05-25 13:19:12 UTC
Created attachment 112864 [details]
0ad.xml
Comment 3 Harald Sitter 2018-05-25 13:19:22 UTC
Created attachment 112865 [details]
adanaxisgpl.xml
Comment 4 Harald Sitter 2018-05-25 13:19:32 UTC
Created attachment 112866 [details]
freeciv-gtk2.xml
Comment 5 Aleix Pol 2018-05-28 17:13:34 UTC
Git commit 13eb5dd32a1296d6a495137fb7cf51ebbdb5544e by Aleix Pol.
Committed on 28/05/2018 at 17:13.
Pushed by apol into branch 'Plasma/5.12'.

Don't randomly remove the category on some delegates

It makes the view look not uniform unnecessarily.

M  +1    -1    discover/qml/ApplicationDelegate.qml

https://commits.kde.org/discover/13eb5dd32a1296d6a495137fb7cf51ebbdb5544e
Comment 6 Aleix Pol 2018-05-28 23:30:47 UTC
*** Bug 394667 has been marked as a duplicate of this bug. ***