Synonyms processor saving configuration to incorrect location

Created on 26 August 2023, over 1 year ago
Updated 1 September 2023, over 1 year ago

Problem/Motivation

The synonyms plugin stores the configuration of synonyms to the module's global configuration.

src/Plugin/search_api/processor/Synonyms.php Line 228

$config = $this->configFactory->getEditable('search_api_meilisearch.settings');
$savedSynonyms = $config->get('meilisearch_synonyms');
$savedSynonyms[$indexName] = $form_state->getValue('synonyms');
$config->set('meilisearch_synonyms', $savedSynonyms)->save();

This is incorrect as processors have their own config storage that can be used.

Proposed resolution

Store synonym processor configuration in it's own configuration storage.

Remaining tasks

User interface changes

None.

API changes

None.

Data model changes

Synonyms configuration moved from module to processor.

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇸🇮Slovenia bcizej

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

Comments & Activities

Production build 0.71.5 2024