Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
hey
I tried the feed entity processor and it works fine, when I only want to import items once.
Tried out the update function and mapped a unique target, but the processor does not react on this. It import a lot of duplicates.
I looked at the nodeproccessor and there is lookup for the GUID, but the entityt processor does not have an any code for this.
So update items or imports without duplicates does not work.
Comments
Comment #1
bennos CreditAttribution: bennos commentedI tried this patch
http://drupal.org/node/1033202#comment-7414840
an it works with the entity ID.
Missing is case for the "title" and a case for the "GUID".
As the entity processor supports the eck and the basic property of an eck has an title we should support it.
tried to solve it in my dev enviroment, but it does not work well.
Any help would be great.
Comment #2
MegaChriz CreditAttribution: MegaChriz commentedMoving to the Feeds entity processor project, the new home for the generic entity processor.
Comment #3
MegaChriz CreditAttribution: MegaChriz at WebCoo commentedThis patch should do the trick. The method
existingEntityId()
is overidden to lookup the entity ID. A method calledtestEntityIdAsUniqueTarget()
is added to FeedsEntityProcessorBasicTest to test if updating existing entities using the entity ID works as expected.The patch "feeds_entity_processor-entity-id-unique-target-2004762-3-tests-only.patch" only contains the added test and this patch should demonstrate that the test
testEntityIdAsUniqueTarget()
fails without the fix.Comment #5
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedCommitted #3.