After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 791084 - Remove Yahoo! Weather support
Remove Yahoo! Weather support
Status: RESOLVED FIXED
Product: libgweather
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: future
Assigned To: libgweather-maint
libgweather-maint
Depends on:
Blocks:
 
 
Reported: 2017-12-01 13:14 UTC by Bastien Nocera
Modified: 2017-12-01 21:00 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Remove Yahoo! Weather support (21.21 KB, patch)
2017-12-01 13:14 UTC, Bastien Nocera
accepted-commit_now Details | Review
Remove Yahoo! Weather support (21.21 KB, patch)
2017-12-01 14:04 UTC, Bastien Nocera
none Details | Review
Remove Yahoo! Weather support (19.93 KB, patch)
2017-12-01 17:03 UTC, Bastien Nocera
none Details | Review
Remove Yahoo! Weather support (20.85 KB, patch)
2017-12-01 17:05 UTC, Bastien Nocera
committed Details | Review

Description Bastien Nocera 2017-12-01 13:14:29 UTC
.
Comment 1 Bastien Nocera 2017-12-01 13:14:34 UTC
Created attachment 364754 [details] [review]
Remove Yahoo! Weather support

The RSS feed URL was moved from:
https://weather.yahooapis.com/forecastrss
to:
https://weather-ydn-yql.media.yahoo.com/forecastrss
as per https://developer.yahoo.com/weather/documentation.html

But this new location requires use of OAuth to link the API to the
application. Given that we relied on the URL to be freely accessible,
and that we have so few locations with a Yahoo "Where On Earth" ID set,
we might as well remove the code to avoid failing to fetch the weather
for those locations.
Comment 2 Bastien Nocera 2017-12-01 14:04:45 UTC
Created attachment 364756 [details] [review]
Remove Yahoo! Weather support

The RSS feed URL was moved from:
https://weather.yahooapis.com/forecastrss
to:
https://weather-ydn-yql.media.yahoo.com/forecastrss
as per https://developer.yahoo.com/weather/documentation.html

But this new location requires use of OAuth to link the API to the
application. Given that we relied on the URL to be freely accessible,
and that we have so few locations with a Yahoo "Where On Earth" ID set,
we might as well remove the code to avoid failing to fetch the weather
for those locations.
Comment 3 Giovanni Campagna 2017-12-01 17:00:54 UTC
Review of attachment 364754 [details] [review]:

I agree with the removal.

::: libgweather/gweather-weather.h
@@ +45,3 @@
     GWEATHER_PROVIDER_YR_NO = 1 << 4,
     GWEATHER_PROVIDER_OWM = 1 << 5,
+    GWEATHER_PROVIDER_ALL = b11011

I think you should leave this enum unchanged, to keep ABI compatibility.

We won't reuse 1 << 3 anyway, and the code does not check for unknown flags.
Comment 4 Bastien Nocera 2017-12-01 17:03:44 UTC
Created attachment 364769 [details] [review]
Remove Yahoo! Weather support

The RSS feed URL was moved from:
https://weather.yahooapis.com/forecastrss
to:
https://weather-ydn-yql.media.yahoo.com/forecastrss
as per https://developer.yahoo.com/weather/documentation.html

But this new location requires use of OAuth to link the API to the
application. Given that we relied on the URL to be freely accessible,
and that we have so few locations with a Yahoo "Where On Earth" ID set,
we might as well remove the code to avoid failing to fetch the weather
for those locations.
Comment 5 Bastien Nocera 2017-12-01 17:05:41 UTC
Created attachment 364770 [details] [review]
Remove Yahoo! Weather support

The RSS feed URL was moved from:
https://weather.yahooapis.com/forecastrss
to:
https://weather-ydn-yql.media.yahoo.com/forecastrss
as per https://developer.yahoo.com/weather/documentation.html

But this new location requires use of OAuth to link the API to the
application. Given that we relied on the URL to be freely accessible,
and that we have so few locations with a Yahoo "Where On Earth" ID set,
we might as well remove the code to avoid failing to fetch the weather
for those locations.
Comment 6 Bastien Nocera 2017-12-01 17:06:38 UTC
Attachment 364770 [details] pushed as dfc8744 - Remove Yahoo! Weather support
Comment 7 Bastien Nocera 2017-12-01 21:00:00 UTC
I also made a mention of the removal of the Yahoo backend in the enum above.