-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Refactor quote address do validate method #38219
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
Refactor quote address do validate method #38219
Conversation
Hi @SerhiiMandrykin. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
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.
✔ Approved.
Failing tests look not related to changes from this PR.
@magento create issue |
Since this is a code refactor, manual testing is not applicable. Refactored code looks good, hence moving this to Extended Testing. |
@magento run all tests |
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, Integration Tests, Unit Tests |
All the builds are green, hence moving it to Merge in progress |
@magento run all tests |
@magento run all tests |
@magento run Functional Tests B2B |
Test failures for Functional B2B are inconsistent and seems to be flaky. They neither part of PR nor failing because of the PR changes. Build 1: Allure Report - B2B Build 2: Allure Report - B2B Hence moving this PR in Merge In Progress |
4d8d6b9
into
magento:2.4-develop
Description (*)
While debugging address validation I noticed that
\Magento\Quote\Model\QuoteAddressValidator::doValidate
needs to be refactored and optimized.My PR includes readability improvements to the
doValidate
methodRelated Pull Requests
Manual testing scenarios (*)
Questions or comments
I think that the exceptions thrown are not relevant in this case and the messages like
Invalid customer address id %1
are not clear. I think we need to change it as well.Contribution checklist (*)
Resolved issues: