magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Fix admin got auto logged out when displaying large number of product reviews

Open imran9935 opened this issue 3 months ago • 19 comments

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 (*)

  1. Add products reviews with more than 28,000 reviews
  2. Log in to the magento admin panel and navigate to Marketing > User Content > All Reviews.
  3. Try to navigate or refresh the All Reviews page.
  4. 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)

imran9935 avatar Oct 14 '25 10:10 imran9935

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:
  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests
  13. 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.

m2-assistant[bot] avatar Oct 14 '25 10:10 m2-assistant[bot]

@magento run all tests

lbajsarowicz avatar Oct 21 '25 19:10 lbajsarowicz

@magento run all tests

engcom-Hotel avatar Oct 27 '25 11:10 engcom-Hotel

Hello @imran9935,

Gentle reminder for this PR — please let us know when it’s ready for review.

Thank you

engcom-Hotel avatar Nov 11 '25 06:11 engcom-Hotel

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

imran9935 avatar Nov 20 '25 13:11 imran9935

@magento run all tests

imran9935 avatar Nov 21 '25 06:11 imran9935

@engcom-Hotel I have added methods to maintain backward compatibility

imran9935 avatar Nov 24 '25 07:11 imran9935

@magento run all tests

engcom-Hotel avatar Nov 24 '25 10:11 engcom-Hotel

@magento run all tests

imran9935 avatar Nov 24 '25 12:11 imran9935

@magento run all tests

engcom-Hotel avatar Nov 25 '25 06:11 engcom-Hotel

@magento run all tests

imran9935 avatar Nov 25 '25 10:11 imran9935

@magento run all tests

imran9935 avatar Nov 28 '25 07:11 imran9935

@magento run all tests

engcom-Hotel avatar Dec 01 '25 06:12 engcom-Hotel

@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, Integration Tests, Semantic Version Checker, Static Tests, Unit Tests

engcom-Hotel avatar Dec 01 '25 09:12 engcom-Hotel

@magento run all tests

engcom-Bravo avatar Dec 02 '25 13:12 engcom-Bravo

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 avatar Dec 03 '25 10:12 engcom-Bravo

@engcom-Bravo Please take a look at this issue, https://github.com/magento/magento2/issues/38198, You can also test it using larger dataset.

imran9935 avatar Dec 04 '25 06:12 imran9935

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.

engcom-Bravo avatar Dec 05 '25 10:12 engcom-Bravo

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.

engcom-Bravo avatar Dec 12 '25 06:12 engcom-Bravo