-
Notifications
You must be signed in to change notification settings - Fork 9.4k
fix undefined method isAllowedForRuleCondition #30479
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
base: 2.4-develop
Are you sure you want to change the base?
Conversation
Hi @yaroslav-zenin. 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 |
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 @yaroslav-zenin. Thank you for your collaboration. I believe there might be some cases when AbstractEntity
gets non-catalog EAV attributes. So this change makes sense. Could I ask you to cover this case with a simple unit test? You may extend the existing test for this purpose.
Hi @yaroslav-zenin. Could you please cover your changes with a unit test? |
@magento run all tests |
@yaroslav-zenin I will take care of test coverage. |
@magento run all tests |
Hi @rogyar, thank you for the review. |
QA not applicable. Moving this PR to the Extended Testing column |
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, Static Tests |
@magento run all tests |
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, Integration Tests |
One of the Functional B2B failure in recent 2 build is not consistent, seems to be flaky and the rest 3 are known issues. ![]() Run 2: Known Issues:
|
The Functional CE failure in recent 2 build is a known issue and not failing because of the PR changes. ![]() ![]() Known Issue:
|
One of the Functional EE failure in recent 2 build is not consistent, seems to be flaky and the rest 3 are known issues. ![]() Run 2: Known Issues:
|
Description (*)
sometimes in method
\Magento\SalesRule\Model\Rule\Condition\Product::loadAttributeOptions
we got\Magento\Catalog\Model\ResourceModel\Eav\Attribute
model instead of\Magento\Catalog\Model\ResourceModel\Eav\Attribute
. This is not a permanent issue just happen sometimes and very difficult to reproduce.This pull request just change condition order but this is enough to check if method present in resource model, so regular model will be skipped.
Related Pull Requests
Fixed Issues (if relevant)
could be relevant to #12176
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)