magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.56k stars 9.32k forks source link

Related/up-sells/cross-sells products are not being added and product edit page gets break #38582

Open imran9935 opened 7 months ago

imran9935 commented 7 months ago

Preconditions (*)

Tested in this versions:

  1. Magento 2.4.6-p4
  2. Magento Developer branch

Description (*)

When navigating to the related, up-sells, or cross-sells products section, and trying to add multiple related/up-sells/cross-sells products by de-selecting some products, from filtered selected products list, then product edit page gets break, and products are not being add.

Screenshot 1:
image

Screenshot 2: image

Screenshot 3: image

Steps to reproduce (*)

  1. Access magento admin panel.
  2. Add 4000+ products and edit one product ( Add products by using profiler, setup/performance-toolkit/profiles/ce/medium.xml).
  3. Navigate to the "Related Products, Up-Sells, and Cross-Sells" section and click Add Related Products.
  4. Click On the “Filters” and filter 60+ products.
  5. Click on “Select All” and select all filtered products screenshot-1.
  6. De-select some products from selected products list screenshot-2.
  7. Click on “Add Selected Products” button and then observe, product edit page gets break and products are not being loaded

Expected result (*)

Related/up-sells/cross-sells product should be add, while de-selecting some products from filtered selected products list

Actual result (*)

Product edit page gets stuck while trying to add products by de-selecting some products from filtered selected products list.

Additional information(*)

The issue occurs when there are 4000+ products, and trying to add products by deselecting some products from the filtered selected products list. As, related, upsell, and cross-sell products are being added properly, when we add all filtered selected products without de-selecting any products, and also products are being add propery while increasing page limit screenshot-4.

Screenshot 4: image

m2-assistant[bot] commented 7 months ago

Hi @imran9935. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

m2-assistant[bot] commented 7 months ago

Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

engcom-Bravo commented 7 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 7 months ago

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 7 months ago

Hi @engcom-Bravo, here is your Magento Instance: https://c2172eb60a225b7ffb8e3710294abb55.instances-prod.magento-community.engineering Admin access: https://c2172eb60a225b7ffb8e3710294abb55.instances-prod.magento-community.engineering/admin_cd77 Login: 0aeabd48 Password: ceb3ad0b9a0d

engcom-Bravo commented 7 months ago

Hi @imran9935,

Thank you for reporting and collaboration.

Verified the issue on Magento 2.4-develop instance and the issue is reproducible.Kindly refer the attached video.

Steps to reproduce

Screenshot 2024-04-08 at 12 24 47

https://github.com/magento/magento2/assets/51680745/131b9fd7-ebaa-4420-b5af-29f0ac9650b2

Products are not getting added and page is still loading.

Hence Confirming the issue.

Thanks.

github-jira-sync-bot commented 7 months ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-11751 is successfully created for this GitHub issue.

m2-assistant[bot] commented 7 months ago

:white_check_mark: Confirmed by @engcom-Bravo. Thank you for verifying the issue.
Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.