Bug 460504 - Cannot create review - stuck at "Insert a name"
Summary: Cannot create review - stuck at "Insert a name"
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.26.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2022-10-15 19:44 UTC by hamsda.christoph
Modified: 2022-10-18 16:05 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.26.1
Sentry Crash Report:


Attachments
Discover Review Screenshot (245.33 KB, image/png)
2022-10-15 19:44 UTC, hamsda.christoph
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hamsda.christoph 2022-10-15 19:44:42 UTC
Created attachment 152860 [details]
Discover Review Screenshot

SUMMARY
Discover does not let me create a review. After setting filelight to 5 stars, writing a short title and review it says "insert a name" on the bottom left. There is no text-entry field visible, clicking on "insert a name" doesn't do anything.

STEPS TO REPRODUCE
1. Open Discover
2. Click on some app
3. Create review, fill out textboxes

OBSERVED RESULT
Cannot send review, the review button is greyed out, no extra textbox for entering a username.

EXPECTED RESULT
Having some way to input the desired username.

SOFTWARE/OS VERSIONS
Arch Linux, Kernel 6.0.1-arch2-1
KDE Plasma Version: 5.26.0
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Comment 1 Nate Graham 2022-10-17 19:30:27 UTC
I have a feeling I know what this is. We now allow the user so set their own name, but not all backends support this, so the text field for it is only conditionally visible. I bet we're requiring that it has text in it even when it's not visible. I'll investigate and fix it.
Comment 2 Nate Graham 2022-10-17 21:22:50 UTC
Yup, I was right. Fix incoming.
Comment 3 Bug Janitor Service 2022-10-17 21:24:23 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/393
Comment 4 Aleix Pol 2022-10-18 00:55:45 UTC
Git commit 8577309cafbc9a07eff1cf7a5bdb25c0ac4056b8 by Aleix Pol Gonzalez, on behalf of Nate Graham.
Committed on 18/10/2022 at 00:46.
Pushed by ngraham into branch 'master'.

Reviews: Don't check for name field being empty when it's not visible

Now, under certain circumstances, the name field will not be shown. But
the logic for ensuring all review data has been filled out was not
taking that into account, so it become impossible to submit a review
when the field was invisible because technically it was empty, so it
triggered the "Insert a name" condition.

This commit fixes that by disabling the name check when the name field
is invisible.
FIXED-IN: 5.26.1

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

https://invent.kde.org/plasma/discover/commit/8577309cafbc9a07eff1cf7a5bdb25c0ac4056b8
Comment 5 Nate Graham 2022-10-18 00:56:13 UTC
Git commit ec06b73df69edc21f0bab60cd331b7764601af48 by Nate Graham.
Committed on 18/10/2022 at 00:56.
Pushed by ngraham into branch 'Plasma/5.26'.

Reviews: Don't check for name field being empty when it's not visible

Now, under certain circumstances, the name field will not be shown. But
the logic for ensuring all review data has been filled out was not
taking that into account, so it become impossible to submit a review
when the field was invisible because technically it was empty, so it
triggered the "Insert a name" condition.

This commit fixes that by disabling the name check when the name field
is invisible.
FIXED-IN: 5.26.1


(cherry picked from commit 8577309cafbc9a07eff1cf7a5bdb25c0ac4056b8)

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

https://invent.kde.org/plasma/discover/commit/ec06b73df69edc21f0bab60cd331b7764601af48
Comment 6 hamsda.christoph 2022-10-18 15:50:49 UTC
Wow, thank you very much for the fast fix!
You're all doing great work on KDE, love it :)
Comment 7 Nate Graham 2022-10-18 16:05:14 UTC
You're very welcome!