-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Customer Attributes Options with option group fixed #30421
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
Customer Attributes Options with option group fixed #30421
Conversation
Hi @nitishcs6. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento create issue |
#dmcdindia2020 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @nitishcs6.Thank you for your contribution. According to the definition of done all changes should be covered by autotests. Could I ask you to cover your changes with an integration test, please?
Thank you!
@magento run all tests |
Hi @nitishcs6 could you please cover your changes by integration tests? |
@engcom-Charlie can you suggest any sample integration test case for this pr? |
@nitishcs6 @milindsingh unfortunately there is no integration test for |
Hi, @nitishcs6 please cover your changes by integration tests. Otherwise, we can't proceed with your PR. |
@engcom-Charlie I will add the test cases this weekend. |
@nitishcs6 @milindsingh do you have any updates about test coverage? |
@nitishcs6 @milindsingh please cover your changes by integration test. Otherwise, we can't proceed with your PR. |
@nitishcs6 @milindsingh I will take care of automated tests. |
Hi @sidolov, thank you for the review. |
✔️ QA Passed Preconditions: (for example) Main Website:
Manual testing scenario:
Before: ✖️ the method doesn't return correct options $test = {array} [12]
attribute_code = "store_id"
frontend_input = "select"
frontend_label = "Create In"
backend_type = "static"
options = {array} [3]
0 = {array} [3]
label = "Main Website"
value = null
__disableTmpl = true
1 = {array} [3]
label = " Main Website Store"
value = null
__disableTmpl = true
2 = {array} [3]
label = " Second Store"
value = null
__disableTmpl = true
is_used_in_grid = false
is_visible_in_grid = false
is_filterable_in_grid = false
is_searchable_in_grid = false
validation_rules = {array} [0]
required = true
entity_type_code = "customer" After: ✔️ the method returns correct options $test = {array} [12]
attribute_code = "store_id"
frontend_input = "select"
frontend_label = "Create In"
backend_type = "static"
options = {array} [3]
0 = {array} [3]
label = "Main Website"
value = {array} [0]
__disableTmpl = true
1 = {array} [3]
label = " Main Website Store"
value = {array} [3]
0 = {array} [3]
label = " Default Store View"
value = "1"
__disableTmpl = true
1 = {array} [3]
label = " Second Store View"
value = "2"
__disableTmpl = true
2 = {array} [3]
label = " Third Store View"
value = "3"
__disableTmpl = true
__disableTmpl = true
2 = {array} [3]
label = " Second Store"
value = {array} [2]
0 = {array} [3]
label = " English Store View"
value = "4"
__disableTmpl = true
1 = {array} [3]
label = " French Store View"
value = "5"
__disableTmpl = true
__disableTmpl = true
is_used_in_grid = false
is_visible_in_grid = false
is_filterable_in_grid = false
is_searchable_in_grid = false
validation_rules = {array} [0]
required = true
entity_type_code = "customer" |
Hi @nitishcs6, thank you for your contribution! |
\Magento\Customer\Ui\Component\Listing\AttributeRepository::getOptionArray method fails to return correct options for attribute with option groupsi.e store_id (Create In).
Description (*)
\Magento\Customer\Ui\Component\Listing\AttributeRepository::getOptionArray method fails to return correct options for attribute with option groupsi.e store_id (Create In).
It fails for all attributes with option group in "options" index.
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
$this->attributeRepository->getMetadataByCode($code)
Before
After
Questions or comments
Contribution checklist (*)
Resolved issues: