craftcms / feed-me

Craft CMS plugin for importing entry data from XML, RSS or ATOM feeds—routine task or on-demand.
Other
287 stars 139 forks source link

Does not re-enable an entry that is previously disabled #1055

Open nickdunn opened 2 years ago

nickdunn commented 2 years ago

Description

When using the "Disable missing elements" strategy, if an entry is disabled then its subsequent presence in an imported feed won't re-enable it.

Steps to reproduce

  1. Configure Feed Me with the "Create new", "Update existing" and "Disable missing" strategies
  2. Import a feed of entries, see that they are all enabled
  3. Remove one entry from feed and re-import, see that this entry is now correctly Disabled in Craft
  4. Add the entry back into the feed and re-import, see that the entry incorrectly remains Disabled in Craft

The logs tell me the element has been skipped because No content has changed. This is technically true I suppose, because it's the status that has changed, not the content.

Additional info

nickdunn commented 2 years ago

To get around this issue I have to switch to the "Delete missing elements" strategy instead. This isn't a good workaround for my scenario because editors are amending other fields on these entries which they have to repeat each time the entry is recreated.

anvart commented 2 years ago

@nickdunn did you try setting status explicitly? I had the same problem.

Screenshot from 2022-07-22 13-55-32