Unpublish/Delete nodes not included in feed

Created on 25 January 2018, over 6 years ago
Updated 23 October 2023, 8 months ago

Problem/Motivation

In the D7 version of Feeds there is feature to act on previously imported items that have since been removed from the source. For example, you may want to remove or unpublish previously imported nodes if they are no longer appear on the source to keep the data on your site in sync with the source.

For the old D7 issue, see #1470530: Unpublish/Delete nodes not included in feed β†’ .

Proposed resolution

Port the feature from the D7 version. When starting a import, store a list of all previously imported items by that feed. Cross off each item from the list that is seen during the import. At the end of the import unpublish or delete those that were not crossed off.

Remaining tasks

  • Implement the proposed solution.

User interface changes

A new option will appear in the processor settings, with options to choose how to act on no longer existing source items.

API changes

To be determined.

Data model changes

The configuration schema of the feed type's processor settings will change.

✨ Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands MegaChriz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Hello, and thanks for the amazing module, maintainers.
    I am writing here because I think this feature is not working properly.
    The problem is that I have a feed that creates other feeds, which then create feeds that create nodes. I use the option to delete nodes not included in the feed. This keeps the correct number of elements up to the second level, but it turns out that some of the feeds that create the nodes are orphaned because the second level feeds are deleted without affecting the feeds that create the nodes.

    Feed 1 has been changed. As a result, Feed 1.3 has been deleted, but Feeds 1.3.1, Feed 1.3.2, and Feed 1.3.3 remain in existence and are updated at the specified intervals.

Production build 0.69.0 2024