Bug 506826

Summary: Cannot add a review (no button shown) for app with no reviews
Product: [Applications] Discover Reporter: Thomas Bertels <tbertels>
Component: discoverAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: 4wy78uwh, aleixpol, nate, sitter
Priority: NOR    
Version First Reported In: 6.3.5   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.5.0
Sentry Crash Report:

Description Thomas Bertels 2025-07-09 21:31:32 UTC
SUMMARY
Some applications pages don't have a button to add review, even if the application is installed from Discover.

STEPS TO REPRODUCE
1. Open Discover
2. Search for "memento" app
3. Install Memento
4. Open Memento app page in Discover

OBSERVED RESULT
No button is shown to add a review (and Memento doesn't have any review).

EXPECTED RESULT
A button is shown to add a review.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
User locale: fr_BE.UTF-8
Comment 1 Harald Sitter 2025-07-10 08:33:04 UTC
Code looks fishy

>             visible: (reviewsSheet.sortModel.count > 0 || reviewsModel.fetching || reviewsError.hasError)

if there are no reviews already the model.count would be 0 and thus the entire reviews section is !visible.
Comment 2 Bug Janitor Service 2025-08-27 19:37:10 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/1143
Comment 3 Nate Graham 2025-08-28 00:33:18 UTC
Git commit 5cf7b78cddb84c8fd66227628f354607f3f0df82 by Nate Graham.
Committed on 27/08/2025 at 23:53.
Pushed by ngraham into branch 'master'.

Allow writing reviews for apps with no existing reviews

Right now Discover hides the entire "Reviews" section for apps with no
reviews, which prevents them from getting any (at least from Discover).

Instead, allow the section to always be visible, and show a standard
placeholder message when there are no reviews.
FIXED-IN: 6.5.0

M  +22   -4    discover/qml/ApplicationPage.qml

https://invent.kde.org/plasma/discover/-/commit/5cf7b78cddb84c8fd66227628f354607f3f0df82