-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Magento2 attribute option does not validate for existing records before insert 16852 #21424
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 @novikor. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
@swnsma , please review. I will cover this logic by integration tests later. |
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 @novikor,
Please check my notices.
Please add unit and integration tests.
@swnsma , please review: requested changes have been applied and integration tests provided. |
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.
Generally good, but some changes is required.
dev/tests/integration/testsuite/Magento/Eav/Setup/AddOptionToAttributeTest.php
Outdated
Show resolved
Hide resolved
dev/tests/integration/testsuite/Magento/Eav/Setup/AddOptionToAttributeTest.php
Outdated
Show resolved
Hide resolved
dev/tests/integration/testsuite/Magento/Eav/Setup/AddOptionToAttributeTest.php
Outdated
Show resolved
Hide resolved
dev/tests/integration/testsuite/Magento/Eav/Setup/AddOptionToAttributeTest.php
Outdated
Show resolved
Hide resolved
c1603a2
to
448f3e9
Compare
complete solution is not implemented here
I have doubts regarding
Such behavior may lead to position update not noticed by merchant. Much cleaner approach is to show a validation error instead so that merchant may decide what to do. |
5473e41
to
57a09bd
Compare
app/code/Magento/Eav/Test/Unit/Setup/AddAttributeOptionTest.php
Outdated
Show resolved
Hide resolved
@novikor create a new branch out of |
f49606a
to
e910a3b
Compare
@akaplya can you please approve the SVC build failure ( |
Hi @akaplya, |
@magento run all tests |
@sivaschenko, it is look like re-run of tests fixed the problem :) |
Hi @swnsma, thank you for the review.
|
… records before insert 16852 #21424
Hi @novikor, thank you for your contribution! |
Description (*)
See #16852 for the problem details.
New logic implemented:
Fixed Issues (if relevant)
Manual testing scenarios (*)
Contribution checklist (*)