Summary: | Discover always shows 0 items in search heading | ||
---|---|---|---|
Product: | [Applications] Discover | Reporter: | Shubham Arora <shubhamarora> |
Component: | discover | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aleixpol, nate |
Priority: | NOR | Keywords: | regression |
Version: | 5.26.90 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/discover/commit/a350da8e1b2899f13258c48f7f2c67e5b0d8b9ab | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | Issue Screenshot |
Can reproduce. A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/461 Git commit 9462a8164369944e1e1f8d46f07c861c77c9e73d by Aleix Pol Gonzalez, on behalf of Aleix Pol. Committed on 01/02/2023 at 00:56. Pushed by apol into branch 'master'. ui: Fix plural calculation of app list page heading We cannot use roughCount as the value for i18np(). It's a string and we need a number. As it's <1000 JS will be overly smart and convert the number into a string but eventually we give "1000+" and then the conversion returns 0. Without warnings. 👍 M +1 -1 discover/qml/ApplicationsListPage.qml https://invent.kde.org/plasma/discover/commit/9462a8164369944e1e1f8d46f07c861c77c9e73d Git commit a350da8e1b2899f13258c48f7f2c67e5b0d8b9ab by Aleix Pol Gonzalez, on behalf of Aleix Pol. Committed on 01/02/2023 at 01:01. Pushed by apol into branch 'Plasma/5.27'. ui: Fix plural calculation of app list page heading We cannot use roughCount as the value for i18np(). It's a string and we need a number. As it's <1000 JS will be overly smart and convert the number into a string but eventually we give "1000+" and then the conversion returns 0. Without warnings. 👍 (cherry picked from commit 9462a8164369944e1e1f8d46f07c861c77c9e73d) M +1 -1 discover/qml/ApplicationsListPage.qml https://invent.kde.org/plasma/discover/commit/a350da8e1b2899f13258c48f7f2c67e5b0d8b9ab |
Created attachment 155690 [details] Issue Screenshot SUMMARY On searching for an application in Discover 0 items are shown even though package list is loaded. On switching categories the count is correctly updated. STEPS TO REPRODUCE 1. Search for a package OBSERVED RESULT 0 Count is shown EXPECTED RESULT Correct count is shown. Operating System: EndeavourOS KDE Plasma Version: 5.26.90 KDE Frameworks Version: 5.102.0 Qt Version: 5.15.8 Kernel Version: 6.1.8-arch1-1 (64-bit) Graphics Platform: Wayland Processors: 24 × AMD Ryzen 9 3900X 12-Core Processor Memory: 15.5 GiB of RAM Graphics Processor: AMD Radeon RX 580 Series Manufacturer: Gigabyte Technology Co., Ltd. Product Name: X570 AORUS ELITE System Version: -CF