Closed (fixed)
Project:
Feeds Tamper
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2018 at 03:43 UTC
Updated:
22 Mar 2018 at 11:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ericgsmith commentedThis logic is basically a copy paste from your test in ChainedTamperTest.
The only change is that I've added an explicit check for an array instead of assuming at first it will be scalar. My assumption for this is that if the copy plugin can work as it currently can, we could have an array as a source value.
Comment #3
megachrizHere is an automated test. I took ideas from MigrateExecutableTest. Assumes #2948543: Make all plugins configurable and #2937719: Multiple value handling to be committed. I added throwing an exception to the process. That one still needs work: it needs to be a more specific exception, it should not stop manipulating the rest of the items and Feeds should somehow report an error for that item. If that becomes too much to handle in this issue, throwing an exception could be handled in a follow-up.
Maybe a part of the test should be handled in an other issue first to make this one less complex and less dependent. Maybe I will do so tomorrow.
Comment #5
ericgsmith commentedJust a thought there is also pending tickets to throw the skip exception classes in tammper, would it be easier to handle all exceptions in a new issue?#
Comment #6
megachrizThanks for committing #2937719: Multiple value handling!
Yes, I think exception handling would better to do in a follow-up.
I've created a spin-off issue for basic test coverage for the FeedsSubscriber class: #2950522: Add basic test coverage for FeedsSubscriber. Since it passed tests and I verified that the class works on runtime, I committed my patch there.
So here is a new patch, excluding the exception bit.
Comment #8
megachrizCommitted #6.
Comment #9
megachrizI've opened a follow-up: #2951116: Throw an exception if a Tamper plugin doesn't return an array when it should.