nextcloud / news-android

📱🗞️ Android client for the Nextcloud news/feed reader app
https://play.google.com/store/apps/details?id=de.luhmer.owncloudnewsreader
GNU Affero General Public License v3.0
699 stars 257 forks source link

Indicate when feed is broken #1360

Open LinAGKar opened 10 months ago

LinAGKar commented 10 months ago

If a feed has repeatedly failed to update (the server doesn't respond/returns unparsable content/whatever) the News web UI will make that clear by highlighting the feed in orange. In this app however, there is no indication, you just silently stop receiving items from the feed. It would be nice if the app warned you when a feed is failing to update.

David-Development commented 10 months ago

@LinAGKar Good point! Thank you for bringing this topic to our attention! I wasn't aware of the change in the API but it looks like the API will give us information about the error count as well. The endpoint /feeds should be extended (thus the database schema needs to be extended). The fields pinned, updateErrorCount and lastUpdateError should be added (here). (The field pinned is used for something else but while we're editing the database schema we should already add it).

Reference: https://nextcloud.github.io/news/api/api-v1-2/#sanitation

The webapp displays the message after 50 failed updates