Bug 495080 - Do not show "Not available" text if certain information is not available
Summary: Do not show "Not available" text if certain information is not available
Status: RESOLVED FIXED
Alias: None
Product: kdeplasma-addons
Classification: Unmaintained
Component: Weather (other bugs)
Version First Reported In: 6.1.5
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-20 11:10 UTC by bonirar716
Modified: 2024-12-12 21:38 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.2.0
Sentry Crash Report:


Attachments
A screenshot of the interface (27.21 KB, image/png)
2024-10-20 11:10 UTC, bonirar716
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bonirar716 2024-10-20 11:10:42 UTC
Created attachment 175051 [details]
A screenshot of the interface

SUMMARY
A little annoyance every time opening the applet and see this line "Not available" in the interface.
Has no idea what it is for either, what exactly is not available?
My opinion is that if certain information is not available, then better do not show the message, because that probably not very useful for common user.

STEPS TO REPRODUCE
1. Set your location to "Melbourne, Australia, AU" from BBC weather.
2. Open the applet.

OBSERVED RESULT
See the line "Not available" in the interface.

EXPECTED RESULT
Not seeing it.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-12-12 20:30:19 UTC
It could at least say *what* is not available, yeah. Or not say anything at all.
Comment 2 Ismael Asensio 2024-12-12 21:38:08 UTC
This should already be fixed with the switch to the JSON API in Plasma 6.2.0.  The new API shouldn't return a "Not available" string as the weather condition, but a "null" parameter.

Please, reopen if found again after updating to that version.
 
As a side note, even before that change, there was a filter against the text "Not Available", but the check was case sensitive.