Repository navigation
Do not update feeds after import - #5629
Conversation
…s when importing multiple files.
|
A bit related to this draft #5584 |
|
I have not understood what changes it makes to not automatically update the feeds after import? Could you please try to explain some more? |
Sorry for answering so late. Take a look at Now import this: FreshRSS imports it, updates the feeds, sees the 301 and updates Now import another file with the same This can only be avoided by NOT updating the feeds between multiple imports. |
|
Instead of a new option, I would better like that we never auto-refresh feeds after an import, and modify the i18n strings from: 'feeds_imported' => 'Your feeds have been imported and will now be updated',
'feeds_imported_with_errors' => 'Your feeds have been imported, but some errors occurred',to something like: 'feeds_imported' => 'Your feeds have been imported. If you are done importing, you may now click the <i>Update feeds</i> button.',
'feeds_imported_with_errors' => 'Your feeds have been imported, but some errors occurred. If you are done importing, you may now click the <i>Update feeds</i> button.',Ping @Frenzie for a potentially better wording |
|
Would you want to mention something about reenabling cron? |
|
@Frenzie I am afraid cron-aspects go beyond what many users can do. In particular, it requires server-admin access. So I am afraid it might be more confusing than helpful, so I think we should leave that to the migration guide. Note for later: the whole problem of feeds changing addresses should be addressed with a better logic during the import, because disabling the refresh of feeds only addresses a tiny part of the use cases. |
|
Right, I forgot for a second that mentioning cron was proposed in this PR rather than the current situation. :-) I'd make it "If you're done importing, you can now click the Update feeds button." but that's merely a minor stylistic preference for being less formal. |
I'm happy with never auto-refreshing. Do you expect me to change my PR or will you do that yourself? Apart of dropping the most of my i18n changes it's just the deletion of the update line. |
|
Simply removing the actualize_feeds line sounds fine by me anyway. |
|
An update of your PR would be welcome, @robertdahlem |
I updated my changes to skip feed updates unconditionally and merged the changes to the i18n strings. Hope I did everything right with GitHub, this is my first PR. |
|
Well done 👍🏻 |
|
Help welcome #5731 (comment) |
I see the problem: In The decision what kind of import we are doing is in The big "but" is: you can import ZIP files, that include JSON and OPML. In this case the answer would be All in all I think it said "Your feeds have been imported. If you are done importing, you can now click the Update feeds button." after the import. Which is what you suggested in #5731. What exactly is wrong with the wording? I read about needing to click Update feeds twice. This has nothing to do with this PR but what is done after clicking the button. |
|
The problematic wording is This feed is empty. Please verify that it is still maintained. |
I see. Maybe in This probably would avoid the problematic wording. The corner case is still a ZIP file with OPML and JSON in it. But anyway: who has a ZIP file with OPML and JSON in it where the JSON files are only a part of the import? I would call that "asking for trouble". |
Importing multiple files tends to create duplicate feeds when the feeds are updated between imports. This is because updating feeds might change
_feed.urlespecially with PubSubHubBub feeds but also in other scenarios. (Because of the other scenarios it is not enough to setpubsubhubbub_enabledtofalsewhile importing). When the next import runs, the importer tries to match the URL with existing feeds, fails and creates a new feed.Of course automatic feed updates by cron or alternatives should be deactivated during imports. The message near the new checkbox says so.