-
Notifications
You must be signed in to change notification settings - Fork 9.4k
#31764: Improve check on field prefix #31765
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
Conversation
Hi @DavaGordon. 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 run all tests |
@magento run all tests |
@magento give me test instance |
Hi @danielrussob. Thank you for your request. I'm working on Magento instance for you. |
@magento give me 2.4-develop instance |
Hi @danielrussob. Thank you for your request. I'm working on Magento instance for you. |
As linked from @gabrieldagama List of tests failing: |
Hi @danielrussob, here is your Magento Instance: https://3681f7909fe034650307a7310c28ffc0.instances.magento-community.engineering |
Hi @danielrussob, here is your Magento Instance: https://3681f7909fe034650307a7310c28ffc0-2-4-develop.instances.magento-community.engineering |
@magento give me new instance with edition b2b |
Hi @danielrussob. Thank you for your request. I'm working on Magento instance for you. |
@magento give me test instance with edition b2b |
Hi @danielrussob. Thank you for your request. I'm working on Magento instance for you. |
Hi @danielrussob, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later. |
Hi @danielrussob, here is your Magento Instance: https://3681f7909fe034650307a7310c28ffc0.instances.magento-community.engineering |
Hello @DavaGordon DavaGordon, Thank you for your contribution the edit button under "Action" column (in the grid) is missing and accessing directly to INSTANCEURL/customer/index/edit/id/1/ just tab Customer View is present and other tabs are missing this instance go to 503 rhythmically, I don't know if it was a problem with Magento Cloud (error on s:d:c or similar) or with your PR I will test it again later |
@magento give me test instance |
Hi @danielrussob. Thank you for your request. I'm working on Magento instance for you. |
Hi @danielrussob, here is your Magento Instance: https://3681f7909fe034650307a7310c28ffc0.instances.magento-community.engineering |
@danielrussob the issues you raised i have tested locally and was unable to replicate on a magento-cloud docker instance. If you have any questions please feel free to drop me a message. |
@magento give me test instance |
Hi @danielrussob. Thank you for your request. I'm working on Magento instance for you. |
@magento give me 2.4-develop instance with edition b2b |
Hi @danielrussob. Thank you for your request. I'm working on Magento instance for you. |
Hi @danielrussob, here is your Magento Instance: https://3681f7909fe034650307a7310c28ffc0.instances.magento-community.engineering |
Hi @danielrussob, here is your Magento Instance: https://3681f7909fe034650307a7310c28ffc0-2-4-develop.instances.magento-community.engineering |
We (@DavaGordon and Me) have tested the issue on Magento 2.4-develop vanilla with b2b and we are not able to reproduce the issue @sdzhepa We are chatting about the option to replace in any case app/code/Magento/Customer/Model/ResourceModel/Grid/Collection.php:84 , beacuse this new change could be a better solution in long term, can we discuss about quality? |
As per our conversation in regards to the code quality at this moment in time to code has no checks in place to see if the field exists within the main_table (customer_grid_flat). My recommendation is to check the index to see if the column exists if it does prepend main_table. on the front of it as the records exists.
Result
Prior to this fix we were getting the following error
After implementation it was able to check that the column was not present in customer_grid_flat and was able to get the data date from the correct source in this case the company table previously left joined Tested |
@magento give me 2.4-develop instance with edition b2b |
Hi @gabrieldagama. Thank you for your request. I'm working on Magento instance for you. |
Hi @gabrieldagama, here is your Magento Instance: https://3681f7909fe034650307a7310c28ffc0-2-4-develop.instances.magento-community.engineering |
After further investigation and collaboration with @gabrieldagama we found the cause for the issue could possibly be when a new collection with an add a join from a field from the custom table to the customer grid collection, and try to filter the collection with that field. |
@magento run Functional Tests CE |
@magento run Functional Tests B2B |
@magento run Functional Tests CE |
Closing this for now as tests had been red for a long time with no updates. Please feel free to reopen if you still want to continue working on this. |
Description (*)
This change prevents magento throwing exception when filtering customer admin grids due to a column not having a the prefix of main_table.
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)