Value mapping plugin is breaking numeric keys

Created on 19 July 2025, 3 months ago

Problem/Motivation

I'm working on a drupal.org integration to include info about referenced modules and issues in blog posts.

I'd like to use the value mapping plugin to convert entity IDs to known labels and store them as taxonomy terms.

The problem is that when I save the mapped values, it seems to be changing any numeric keys.

IE mapping one=two works, but 3=4 will ignore 3 as a key and instead give it a sequential ID.

Here is the api info on ID values and their corresponding labels: https://www.drupal.org/drupalorg/docs/apis/rest-and-other-apis#s-filteri... β†’

Steps to reproduce

Currently using the Drupal.org REST API as configured in the submodule.

Edit the configuration and try to add the mapping from the link.

Proposed resolution

Debug form save.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mortona2k Seattle

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024