owncloud-archive / news

:newspaper: News app for ownCloud
GNU Affero General Public License v3.0
290 stars 106 forks source link

Articles not being marked read when importing articles.json #867

Closed Bugsbane closed 8 years ago

Bugsbane commented 9 years ago

I just read all articles in news, exported subscriptions.opml and articles.json via the news app settings panel, and then deactivated the app, wiped the database settings, imported subuscriptions.opml and then imported articles.json (admittedly while feeds were still loading).

When I did, my subscriptions and starred articles were successfully imported, but all feeds articles were left marked as unread.

I tried reimporting articles.json through the news settings pane button a couple more times once the feeds had finished refreshing, but it didn't change the read status of any of them. There are no relevant looking errors in the owncloud log.

ownCloud 8.1.3 News 6.0.4

BernhardPosselt commented 9 years ago

Relevant code is here https://github.com/owncloud/news/blob/master/service/feedservice.php#L299

BernhardPosselt commented 8 years ago

Closing this because of a misunderstanding (after another read through): Only unread and starred articles will be exported, otherwise the exported file would become massive.

BernhardPosselt commented 8 years ago

PS: all other solutions would cause data loss or would be incomplete ;)