-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Create or update customer don't validate customer group id #28903
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
Create or update customer don't validate customer group id #28903
Conversation
Hi @engcom-Charlie. 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. |
@magento run all tests |
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 @engcom-Charlie, thank you for the fix.
Could you please check my comment and also slightly adjust the save
method to fix the failing static tests?
Thank you.
dev/tests/api-functional/testsuite/Magento/Customer/Api/CustomerRepositoryTest.php
Outdated
Show resolved
Hide resolved
@magento run all tests |
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.
Could you please check the below comment?
app/code/Magento/Customer/Model/ResourceModel/CustomerRepository.php
Outdated
Show resolved
Hide resolved
@magento run all tests |
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.
Thank you @engcom-Charlie for adjusting it 👍.
Don't think that the failed test is somehow related with these changes.
Hi @eduard13, thank you for the review. |
✔️ QA Passed Case 1. POST requestManual testing scenario:
Before: ✖️ The customer was successfully created with invalid group_id ✖️ The customer can't see products or add products to the quote After: ✔️ throws an Exception informing that the group_id is not found Case 2. PUT request
Before: ✖️ The customer was successfully updated with invalid group_id After: ✔️ throws an Exception informing that the group_id is not found |
@magento run Functional Tests B2B |
@magento Functional Tests CE |
@magento Functional Tests CE |
@magento run Functional Tests CE |
Hi @engcom-Charlie, thank you for your contribution! |
Description (*)
Added customer group id validation to create/update, covered by tests
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
See #28064
Questions or comments
Contribution checklist (*)