Closed (fixed)
Project:
Feeds
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Aug 2014 at 15:29 UTC
Updated:
18 Sep 2014 at 18:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ekes commentedFixes three issues above.
Comment #3
ekes commented0 fails, and that patch didn't create one of the 82 exceptions.
Comment #4
megachrizIs this still an issue now that a fix for #661606: Support unique targets in mappers has been committed? Either way, the patch provided in #1 doesn't apply anymore.
Comment #5
ekes commentedAh 4 hours is a long time in the feeds queue :-)
I'll test the new version.
Comment #6
ekes commented#661606: Support unique targets in mappers fixed the is_null/false logic error.
But the query is still reused despite having conditions added already earlier in the foreach, and it's accessing $source->id rather than $source->importer()->id.
Re-rolled.
Comment #7
ekes commentedComment #8
twistor commented$source->id is still there.
Re-using the query might not be technically correct, but it seems to be working according to the tests. At least, we should clone it rather than rebuilding it.
Can you write a test to demonstrate the problem? I cannot reproduce it.
Comment #9
twistor commentedI spoke too soon. I see the problem now with re-using the query.
Re-building the query is fine, since there should be that many unique fields anyway.
Either way, $source->id is still there.
Comment #10
ekes commented> Either way, $source->id is still there.
Quite so, not sure what happened there.
Comment #11
twistor commentedComment #12
twistor commentedHow about we move the whole thing down?
Comment #14
twistor commentedblarg.
Comment #16
twistor commentedThanks ekes!
I don't think this needed a test since it comes from *very* old code that probably didn't understand how the new db API works.