magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.39k stars 9.29k forks source link

Extension attribute of boolean type case issues for UI implementation in Admin Panel #22067

Open swnsma opened 5 years ago

swnsma commented 5 years ago

Summary

Ui Data provider do not support boolean values for extension attributes. To make it properly working on frontend, you need to manually cast boolean to corresponding integer in string. For not-extension attributes it works fine. Reference where convertation take a place for not-extension attributes https://github.com/magento/magento2/blob/2bca2aa1a6c1828c379bb9c75db2810a92cd3d37/app/code/Magento/Ui/DataProvider/SearchResultFactory.php#L98

Examples (*)

There issue was faced in PRs:

Proposed solution

Check if we can add convertation for nested attributes in https://github.com/magento/magento2/blob/2bca2aa1a6c1828c379bb9c75db2810a92cd3d37/app/code/Magento/Ui/DataProvider/SearchResultFactory.php#L98

m2-assistant[bot] commented 5 years ago

Hi @swnsma. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento-engcom-team give me 2.3-develop instance - upcoming 2.3.x release

For more details, please, review the Magento Contributor Assistant documentation.

@swnsma do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?

m2-assistant[bot] commented 5 years ago

Hi @engcom-backlog-nazar. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

magento-engcom-team commented 5 years ago

:white_check_mark: Confirmed by @engcom-backlog-nazar Thank you for verifying the issue. Based on the provided information internal tickets MAGETWO-99069 were created

Issue Available: @engcom-backlog-nazar, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

evgeniykapelko commented 4 years ago

@magento I'm working on it

m2-assistant[bot] commented 4 years ago

Hi @jenya1444! :wave: Thank you for joining. Please accept team invitation :point_right: here :point_left: and self-assign the issue.

m2-assistant[bot] commented 4 years ago

Hi @jenya1444. Thank you for working on this issue. Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction: