- First commit to issue fork.
- Merge request !100Issue #2830058: entity_lookup plugin fails if is empty β (Open) created by joegraduate
- πΊπΈUnited States joegraduate Arizona, USA
Created MR from patch #10 to trigger GitLab CI checks, etc.
I am using entity_lookup plugin at the end of a pipeline. Some of my entries do not have a value.
What I'm finding is that even if I use skip_on_empty or any other process plugins NONE of them even bother to run because the error is tripped during the construct phase, before the pipeline has even had a chance to run.
So essentially this plugin tries to set itself up before it even knows if it will be needed or not.
I found the problem is triggerd in the query method. Fortunately I know if the value is empty at the start of the query so I can simply not build the query object in that case. So I am starting the query method in entity_lookup with the following:
if (empty($value)) {
return NULL;
}
...and now everything in the pipeline works as expected.
Earlier in my debugging process I found that if I did not run parent::__construct that would get me further along, but the above code seems to be a much better for now in my case.
Needs review
6.0
Plugins
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Created MR from patch #10 to trigger GitLab CI checks, etc.