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

@todo for _getFetchUpdatesByHandleSelect #38492

Open Morgy93 opened 8 months ago

Morgy93 commented 8 months ago

Summary

There's a @todo since release in the app/code/Magento/Widget/Model/ResourceModel/Layout/Update.php.

Examples

image

https://github.com/magento/magento2/blob/2.4.6-p4/app/code/Magento/Widget/Model/ResourceModel/Layout/Update.php#L87

//@todo Why it also loads layout updates for store_id=0, isn't it Admin Store View?
//If 0 means 'all stores' why it then refers by foreign key to Admin in `store` and not to something named
// 'All Stores'?

Proposed solution

Research the questions in the comment and update the code accordingly. Remove comment afterwards.

Release note

No response

Triage and priority

m2-assistant[bot] commented 8 months ago

Hi @Morgy93. 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 8 months ago

Hi @engcom-November. 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-November commented 8 months ago

Hello @Morgy93,

Thank you for the report!

As this @todo is still present, confirming this issue.

github-jira-sync-bot commented 8 months ago

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

m2-assistant[bot] commented 8 months ago

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