Fetching customer entity through API will not return 'is_subscribed' extension attribute #13252
Labels
Fixed in 2.4.x
The issue has been fixed in 2.4-develop branch
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
Reproduced on 2.1.x
The issue has been reproduced on latest 2.1 release
Reproduced on 2.2.x
The issue has been reproduced on latest 2.2 release
Reproduced on 2.3.x
The issue has been reproduced on latest 2.3 release
In the Magento_Newsletter module an extension attribute 'is_subscribed' is defined for the \Magento\Customer\Api\Data\CustomerInterface. However when fetching the customer through api, the extension attribute is not present in the data.
Preconditions
Steps to reproduce
Expected result
Actual result
I did some basic digging into the core and noticed there is no actual place in the Magento_Newsletter module that sets the extension attribute 'is_subscribed' after the customer is fetched.
I compared this with the Magento_GiftMessage module where in the Magento\GiftMessage\Model\Plugin folder there are several classes which contain logic to add extension attributes to the orders when fetching and saving.
Seems like somebody dropped the ball when programming the Magento_Newsletter module.
#magentomagic
The text was updated successfully, but these errors were encountered: