Automators: The Joiner field setting is not considering the #default_value

Created on 5 February 2025, 17 days ago

Problem/Motivation

I have observed that the Joiner plugin config #default_value is resetting back to "Don't Join" irrespective of the value being saved for the field config.

The field config has the new changes when exported but this issue only about the default_value

Steps to reproduce

- Add AI Automator for a formatted text field (body) in the manage fields section .
- Edit the field and set the "Enable AI Automator" to true
- Set the AI automator setings and go to advanced section
- Joiner select list will appear , change the value to any valid option
- save the config and the field settings
- Re check the Joiner setting the default value reset back to Dont join.

Proposed resolution

I could be wrong but the field seiing is not stored as a Third party setting but instead its stored in the AiAutomator enity and should be retrieved from the entity.

Current :
$fieldDefinition->getConfig($entity->bundle())->getThirdPartySetting('ai_automator', "{$id}_joiner", $defaultJoiner)

Proposed:

if ($get_field_plugin_config instanceof AiAutomatorInterface) {
        $plugin_config = $get_field_plugin_config->get('plugin_config');
      }

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.1

Component

AI Automators

Created by

🇮🇳India vakulrai

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