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.
Issue fork feeds-2306305
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #1
Drupa1ish CreditAttribution: Drupa1ish commentedComment #2
Drupa1ish CreditAttribution: Drupa1ish commentedThe following patch assumes that patch from #2305751-1: Skip hash check should not update hash column in feeds item table is already applied.
This works for fresh install, with new the primary key in feed_item , we didn't write the update.
Comment #4
Drupa1ish CreditAttribution: Drupa1ish commentedComment #5
lmeurs CreditAttribution: lmeurs commentedCrosslinking #1539224-63: Add support for unique fields to be unique site wide.
I have not tested the patch, but it seems to create entries in the
feeds_item
table for each imported or updated entity per importer. This could solve problems with importer ID's and hashes being overwritten when multiple importers update the same entities.Right now I am swamped with work, but hopefully I will have some time soon to reroll and test your patch with the latest dev release.
Comment #6
Drupa1ish CreditAttribution: Drupa1ish commentedRe-roll for 7.x-2.0-alpha8+84-dev. No need to run #2305751: Skip hash check should not update hash column in feeds item table, is already included.
This works for fresh install, with new the primary key in feed_item , we didn't write the update.
Comment #8
Drupa1ish CreditAttribution: Drupa1ish commentedComment #9
adrien.felipe CreditAttribution: adrien.felipe commentedI have re-rolled patch from #8 against last dev version and added the update function in feeds.install
Be aware this patch will therefore slightly modify your feeds_item table structure:
Attached patch in conjunction with patch #69 from #1539224-69: Add support for unique fields to be unique site wide works great for me with Commerce product entities, taxonomy terms and nodes.
Comment #10
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedThis comes from #2305751: Skip hash check should not update hash column in feeds item table and as said there it was not clear why that change is needed for this issue.
If it is not needed to fix this issue, we should leave it out here.
Comment #11
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedComment #12
jrusse27 CreditAttribution: jrusse27 as a volunteer commentedI've added an updated patch without the the extra code for skipping hash checks, as pointed out it's a separate issue.
Comment #13
MegaChriz CreditAttribution: MegaChriz as a volunteer commented@jrusse27
Great. Do you want to write a test for this issue as well? See #10 for what should be covered by the test.
Comment #14
Devaraj johnson CreditAttribution: Devaraj johnson as a volunteer and commentedPatch reapply for beta 4 feeds since patch 9 is passed.
Comment #15
Devaraj johnson CreditAttribution: Devaraj johnson as a volunteer and commentedPatch fix for beta 4 allow unique hash for individual feed. patch reroll
Comment #16
mikran CreditAttribution: mikran at Mediamaisteri Oy commentedThis is a problem in D8 version as well.
Comment #17
MegaChriz CreditAttribution: MegaChriz as a volunteer commentedThis has been fixed in the 8.x-3.x version in #3105322: Support multiple values for Feeds item so entities can be updated by multiple feeds, so we can move this back to 7.x-2.x if there is still interest to fix it there.
Comment #20
Xperd CreditAttribution: Xperd commentedTest from #10 added.