Allow additional conditions in entity_lookup

Created on 11 November 2022, over 1 year ago
Updated 17 July 2023, 11 months ago

Problem/Motivation

The entity_lookup plugin implements a query to search for entities. However, when the source data includes multiple entities with the same name there is no way to provide additional query conditions to distinguish them.

Steps to reproduce

Assume a migration of courses where each course has a node 'Contact'. The source database will have a multitude of nodes titled 'Contact' linked by a field_course_id

Proposed resolution

Allow passing additional conditions in the entity_lookup plugin.

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

None.

API changes

The entity_lookup allows additional query conditions.

Data model changes

The entity_lookup has a new configuration key 'conditions'

✨ Feature request
Status

Closed: works as designed

Version

6.0

Component

Plugins

Created by

πŸ‡³πŸ‡±Netherlands idebr

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡«πŸ‡·France xavier.masson Haute-Normandie

    Thanks for the patch, i can confirm it works !

  • Status changed to Closed: works as designed 11 months ago
  • heddn Nicaragua

    The entity lookup process plugin was written to be extended. Adding a custom process plugin is relatively easy. While this is a pretty well tested and easy feature to add to the module, I want to resist adding any new functionality to entity lookup.

Production build 0.69.0 2024