Display Imported Entity Items in Processor Language on feed/{id}/list

Created on 23 October 2023, over 1 year ago

Problem/Motivation

The current behavior of the `feed/{id}/list` endpoint in the Feed module displays imported entity items in the default language, even when the processor language is different. This can be confusing and less user-friendly, especially for multilingual sites where content may be imported in various languages.

Steps to reproduce

  1. Create a feed processor with a specific language (e.g., Spanish).
  2. Import nodes in that language using the processor.
  3. Visit the `feed/{id}/list` endpoint to view imported items.

Expected result:

- Imported items should be displayed in the same language as the processor (Spanish).

Actual result:

- Imported items appear in the default language (e.g., English) and not in the processor's language (Spanish).

Proposed resolution

To address this issue, we propose updating the `listItems` method in the `ItemListController` to consider the processor's feed language when loading the entity items. This would ensure that imported items are listed in the correct language, matching the processor's language configuration.

Remaining tasks

- Add appropriate tests to ensure the feature works as expected.
- Update documentation to reflect the new behavior.

User interface changes

This feature does not introduce direct user interface changes, but it improves the consistency of the `feed/{id}/list` endpoint by displaying imported items in the correct language.

API changes

This feature may require changes to the Feed module's API to support loading items in the processor's language.

Data model changes

This feature may not introduce data model changes, but it may require adjustments to the way entity items are loaded and displayed in the context of the processor's language.

If you have any alternative or more effective methods to address this feature request, kindly share them.
Your insights are highly valued.

Feature request
Status

Active

Component

Code

Created by

🇯🇴Jordan mohammad-fayoumi Amman

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

Comments & Activities

Production build 0.71.5 2024