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

Configuable product: duplicate get attribute options #38000

Open rogerdz opened 1 year ago

rogerdz commented 1 year ago

Preconditions and environment

Steps to reproduce

  1. add code in function getAttributeOptions (Magento\ConfigurableProduct\Model\AttributeOptionProvider) var_dump($superAttribute->getAttributeId(). '-'. $productId . '-'. $scope->getId());

image

  1. Clean cache
  2. Go to random 1 configuable product

Expected result

no duplicate call function getAttributeOptions with same superAttribute and productId

Actual result

duplicate call function getAttributeOptions with same superAttribute and productId image

Additional information

No response

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 year ago

Hi @rogerdz. 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 1 year ago

Hi @engcom-Delta. 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-Delta commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

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

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Delta, here is your Magento Instance: https://ac8fe476331222e709db31d49319002f.instances-prod.magento-community.engineering Admin access: https://ac8fe476331222e709db31d49319002f.instances-prod.magento-community.engineering/admin_e77f Login: aadf63a8 Password: 94c662c7657f

engcom-Delta commented 1 year ago

Hi @rogerdz,

We have tried to replicate this issue and it is reproducible.

Below are the steps followed.

  1. Add code in function getAttributeOptions (Magento\ConfigurableProduct\Model\AttributeOptionProvider) var_dump($superAttribute->getAttributeId(). '-'. $productId . '-'. $scope->getId());
  2. Clean cache
  3. Go to random 1 configurable product.
Screenshot 2023-09-21 at 2 23 00 PM

Hence confirming this issue.

Thanks,

github-jira-sync-bot commented 1 year ago

Unfortunately, not enough information was provided to create a Jira ticket. Please make sure you added the following label(s): Reproduced on 2.4.x, ^Area:.*

Once all required labels are present, please add Issue: Confirmed label again.

github-jira-sync-bot commented 1 year ago

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

m2-assistant[bot] commented 1 year ago

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