I can't tell yet if the bug is only a bug in the UI or whether it affects the functionality. However, when attempting to add two separate fields as Temporary Targets, the first shows up as "Temporary target 1" (as expected) and the second shows up as "Missing".

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

NWOM created an issue. See original summary.

MegaChriz’s picture

It looks like a compatibility issue between Feeds and Feeds Tamper, but it seems to only affect the UI. I think this is caused by the changes from #2542416: Allow sources and targets to be defined but hidden..

I tested if temporary targets still work this way:

  1. Used HTTP fetcher, Common syndication parser and Node processor.
  2. Mapped "Title" to "Title", "Item GUID" to temporary target 1, "Item URL" to temporary target 2 and a blank source to "Body".
  3. Added a rewrite tamper plugin to temporary target 1: GUID: [guid].
  4. Added a rewrite tamper plugin to temporary target 2: URL: [url].
  5. Added a rewrite tamper plugin to "Body": [guid]\n[url].
  6. Run an import.

The body field of all created nodes contained "GUID: " and "URL: ", which were added by the rewrite tamper plugins from the temporary targets.

NWOM’s picture

Component: Code » User interface

Thanks for testing. I can confirm after testing yesterday as well that it works as expected. So, I agree that it is probably just a UI issue.

MegaChriz’s picture

The attached two patches - one for Feeds and one for Feeds Tamper - should fix the issue.

Basically what happens is that building the list of available sources and targets is moved from the theme function to the form builder function, so that Feeds Tamper can add extra targets via a form alter.

MegaChriz’s picture

Also created an issue for Feeds Tamper: #2852921: 2nd Temporary Target shows as "Missing".

geru’s picture

I have applied these two patches and confirm that it fixed the problem for me. Thank you.

geru’s picture

Status: Needs review » Needs work
FileSize
98.56 KB
5.77 KB
10.38 KB

Actually, upon further inspection, it mostly fixed the problem.

In the uploaded screenshot, you can see that 'blank source 4', which maps to a non-temporary target is shown associated with "missing" instead of its real target, which, in this case, is called 'bc_type'

I've attached screenshot and exports of the feeds importer and feeds tamper definitions.

I'm also not sure if this is the same issue, or a new one.

MegaChriz’s picture

@geru
Thanks for testing! Can you show an export of your other configuration as well (fields, entity types) in the form of a feature module?
I have no idea what 'bc_type' is and it will show up as missing as well when the property or field is not defined on my local system.

geru’s picture

Status: Needs work » Needs review

My bad. The bc_type really is missing. I feel silly. Works great. Thank you.

MegaChriz’s picture

No need to feel silly! I'm already glad that you took the time to test the patch.

  • MegaChriz committed 0085541 on 7.x-2.x
    Issue #2752661 by MegaChriz, geru: build the list of available sources...
MegaChriz’s picture

Status: Needs review » Fixed

Patch for Feeds is committed! Now, Feeds Tamper still need to be fixed. But that only can be done after a new release of Feeds is made.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.