-
Notifications
You must be signed in to change notification settings - Fork 9.4k
magento/magento2#23386: Copy Service does not work properly for Entities which extends Data Object and implements ExtensibleDataInterface. #23387
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
magento/magento2#23386: Copy Service does not work properly for Entities which extends Data Object and implements ExtensibleDataInterface. #23387
Conversation
…ds Data Object and implements ExtensibleDataInterface. Provide fallback to copy Extension Attributes for classes which extends Data Object.
Hi @swnsma. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
…for-Entities-which-extends-Data-Object-and-implements-ExtensibleDataInterface
afd1aed
to
d70edfc
Compare
Hi @aleron75, thank you for the review.
|
@swnsma do you think that the unit test related to the updated class should be updated to reflect the change in fallback logic or is it already ok? |
Not sure if changes require coverage by auto-tests
Hi @aleron75, I think the best is to cover this behavior with Integration Tests. But I can try if you can share an example of how test can looks like. E.G. |
Hello @swnsma, I asked because I see there is already a unit test covering the class, it' |
…ds Data Object and implements ExtensibleDataInterface. Add unit tests coverage.
Hi @aleron75, |
…ds Data Object and implements ExtensibleDataInterface. Reformat code.
Hi @aleron75, thank you for the review. |
…Entities which extends Data Object and implements ExtensibleDataInterface. magento#23387
Hi @swnsma, thank you for your contribution! |
Provide fallback to copy Extension Attributes for classes which extends Data Object.
Fixed Issues
Manual testing scenarios
See in issue.