-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Removed leading backslash in xml #26948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed leading backslash in xml #26948
Conversation
Hi @srsathish92. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please test on test instance the cases that fails on functional tests, seems that your changes break functionality somehow. It requires additional debug to explain why
Pull Request state was updated. Re-review required.
@magento give me test instance |
Hi @srsathish92. Thank you for your request. I'm working on Magento instance for you |
Hi @srsathish92, here is your new Magento instance. |
…into cleanup/remove-backslash-in-xmls
Pull Request state was updated. Re-review required.
Waiting approval for SVC failure |
Hi @ihor-sviziev, thank you for the review.
|
@magento run Semantic Version Checker |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
I believe that Failed Semantic Version check could be ignored for ES module |
It seems like SVC failure should be fixed already magento/magento-semver#59 |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@sidolov, are we using latest version of the SVC checker? Feels like the issue should be resolved already |
@ihor-sviziev according to the composer.json - we always use the latest released version of the package |
Oh, I see that that commit wasn't added to release yet :( |
Hi @srsathish92, <type name="Magento\AdvancedSearch\Model\Client\ClientResolver">
<arguments>
<argument name="path" xsi:type="const">Magento\CatalogSearch\Model\ResourceModel\EngineInterface::CONFIG_ENGINE_PATH</argument>
<argument name="scopeType" xsi:type="const">Magento\Store\Model\ScopeInterface::SCOPE_STORE</argument>
</arguments>
</type> and <type name="\Magento\AdvancedSearch\Model\Client\ClientResolver">
<arguments>
<argument name="path" xsi:type="const">Some\Another\Path::CONFIG_ENGINE_PATH</argument>
</arguments>
</type> Will be just merged to something like this (instead of overriding the value): <type name="Magento\AdvancedSearch\Model\Client\ClientResolver">
<arguments>
<argument name="path" xsi:type="const">Magento\CatalogSearch\Model\ResourceModel\EngineInterface::CONFIG_ENGINE_PATH</argument>
<argument name="scopeType" xsi:type="const">Magento\Store\Model\ScopeInterface::SCOPE_STORE</argument>
</arguments>
</type>
<type name="\Magento\AdvancedSearch\Model\Client\ClientResolver">
<arguments>
<argument name="path" xsi:type="const">Some\Another\Path::CONFIG_ENGINE_PATH</argument>
</arguments>
</type> In this case, Magento will use only one of these sections that might lead to unexpected results. It's a limitation of XML, so I think it's better not to touch these lines to prevent breaking backward compatibility rather than do this cleanup. Thank you so much for your contribution! |
Hi @srsathish92, thank you for your contribution! |
@ihor-sviziev Do you mean merge during prepare Magento release or merging of xml files during app execution? |
@ihor-sviziev Did you tried the viceversa? What will be output? - If it is the same behaviour as aforementioned then we need to update the document somewhere. |
@srsathish92, basically the same result. The reason is pretty simple - at the time of XML merge, the nodes aren't getting merged, similar to PHP. After that, Magento trying to retrieve the data, and it's using the only one section Example:
outputs
not the
|
@ihor-sviziev Could you little bit explain when you have time. One place where we have merging is config load. Are you see problems here? |
Description (*)
Removed leading backslash in namespace & class in XML
xsi:type="object">\Magento\... xsi:type="string">\Magento\... xsi:type="const">\Magento\... <type name="\Magento\... type="\Magento\... <virtualType name="\Magento\... for="\Magento\...
is replaced to
xsi:type="object">Magento\.. xsi:type="string">Magento\... xsi:type="const">Magento\... <type name="Magento\... type="Magento\... <virtualType name="Magento\... for="Magento\...
Questions or comments
If any please let me know your feedback's
Contribution checklist (*)
Resolved issues: