Fix admin got auto logged out when displaying large number of product reviews
Fixed Issues
Fixes : Admin got auto logged out when product reviews data is more than 28,000 at Marketing > All Reviews
Description (*)
Admin gets automatically logged out when opening the 'All Reviews' section in Marketing. This occurs for products with more than 28,000 reviews, as the system cannot handle such a large volume at once.
Manual testing scenarios (*)
- Add products reviews with more than 28,000 reviews
- Log in to the magento admin panel and navigate to Marketing > User Content > All Reviews.
- Try to navigate or refresh the All Reviews page.
- Observe that the admin is automatically logged out.
Questions or comments
Contribution checklist (*)
- [ ] Pull request has a meaningful description of its purpose
- [ ] All commits are accompanied by meaningful commit messages
- [ ] All new or changed code is covered with unit/integration tests (if applicable)
- [ ] README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
- [ ] All automated tests passed successfully (all builds are green)
Hi @imran9935. Thank you for your contribution! Here are some useful tips on how you can test your changes using Magento test environment. :exclamation: Automated tests can be triggered manually with an appropriate comment:
-
@magento run all tests- run or re-run all required tests against the PR changes -
@magento run <test-build(s)>- run or re-run specific test build(s) For example:@magento run Unit Tests
<test-build(s)> is a comma-separated list of build names.
Allowed build names are:
-
Database Compare -
Functional Tests CE -
Functional Tests EE -
Functional Tests B2B -
Integration Tests -
Magento Health Index -
Sample Data Tests CE -
Sample Data Tests EE -
Sample Data Tests B2B -
Static Tests -
Unit Tests -
WebAPI Tests -
Semantic Version Checker
You can find more information about the builds here :information_source: Run only required test builds during development. Run all test builds before sending your pull request for review.
For more details, review the Code Contributions documentation. Join Magento Community Engineering Slack and ask your questions in #github channel.
@magento run all tests
@magento run all tests
Hello @imran9935,
Gentle reminder for this PR — please let us know when it’s ready for review.
Thank you
Hello @engcom-Hotel, I have made the requested code changes, and also updated the code to resolve the failed static and integration tests.
Thank you
@magento run all tests
@engcom-Hotel I have added methods to maintain backward compatibility
@magento run all tests
@magento run all tests
@magento run all tests
@magento run all tests
@magento run all tests
@magento run all tests
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, Integration Tests, Semantic Version Checker, Static Tests, Unit Tests
@magento run all tests
Hi @imran9935,
Thanks for your Contribution!!
We have tried to reproduce the issue in Latest 2.4-develop instance and we are not able to reproduce the issue.Kindly refer the attached video.
https://github.com/user-attachments/assets/60f3d107-b5ab-47df-877b-5556b45514e8
Please let us know if we are still missing anything.
Thanks.
@engcom-Bravo Please take a look at this issue, https://github.com/magento/magento2/issues/38198, You can also test it using larger dataset.
Hi @imran9935,
Thanks for your Update.
We have tried to reproduce the issue in Latest 2.4-develop instance with 47693 reviews and still we are not able to reproduce the issue.Please refer the attached video.
https://github.com/user-attachments/assets/6dad823c-7416-48da-959e-f1cc3c224f1a
Could your please try to reproduce the issue in Latest 2.4-develop instance and Please let us know if we are still missing anything.
Thanks.
Hi @imran9935,
Thanks for your Contribution!!.
As per this comment https://github.com/magento/magento2/pull/40227#issuecomment-3616229572 we have tried with large dataset but still we are not able to reproduce the issue.Could you please let us know if we are still missing anything till then we are moving to ON HOLD.
Thanks.