-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Removed the customer logged in condition from reorder method #39601
base: 2.4-develop
Are you sure you want to change the base?
Removed the customer logged in condition from reorder method #39601
Conversation
Hi @Mohamed-Asar. Thank you for your contribution!
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 |
@Mohamed-Asar, Could you please explain why you rejected the way how it was suggested to fix and decided to fix it in another way? |
@ihor-sviziev In the frontend, since the customer is logged in, the method returns the expected result. However, the same method is also used in the admin panel, where the customer is not logged in, causing it to always return true. I don't see any valid reason to check whether the customer is logged in to determine reorder eligibility. That's why I removed this logic. |
@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.
Hello @Mohamed-Asar,
Thanks for the contribution!
The code changes seem fine to us. However, please fix the static test failures. The other failed tests appear to be flaky.
Thanks
…med-Asar/magento2 into bug/issue-39568-reorder-bug
@magento run all tests |
I fixed the static test case failures, please review |
@magento run all tests |
@magento run Integration Tests |
@magento run all tests |
Hi @Mohamed-Asar, Thanks for the collaboration & contribution! ✔️ QA PassedPreconditions:
Steps to reproduce
Before: ✖️ ![]() After: ✔️ ![]() Builds are failed. Hence, moving this PR to Extended Testing. Thanks. |
@magento run Functional Tests CE, Functional Tests EE |
Two of the Functional EE test failure are inconsistent in the last two builds. They neither part of PR nor failing because of the PR changes, seems to be flaky. The other one is a known issue. Hence moving it to Merge In Progress. ![]() Run 2: Known Issue: |
Description (*)
Removed the customer login check, verify only the re-order eligibility for the particular order
Fixed Issues (if relevant)
Manual testing scenarios (*)
Contribution checklist (*)