Skip to content

[Backport] Add 'const' type support to layout arguments #2

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

Closed
wants to merge 111 commits into from

Conversation

IgorVitol
Copy link
Owner

Original Pull Request

magento#15058

Description

For now in Magento we can not use xsi:type="const" in layout arguments. But it looks like such ability can be very useful. Moreover such code already exists in Magento core, we just need to include/enable it.

Manual testing scenarios

  1. Add argument with "const" type to any block via layout arguments. For example like this:
<referenceBlock name="product.info.sku">
    <arguments>
        <argument name="my_const_value" xsi:type="const">Magento\Catalog\Api\Data\ProductAttributeInterface::ENTITY_TYPE_CODE</argument>
    </arguments>
</referenceBlock>
  1. Verify that it is correctly passed to block constructor. Like here: http://prntscr.com/jf7qa0

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)
  • All automated tests passed successfully (all builds on Travis CI are green)

gwharton and others added 30 commits May 7, 2018 18:30
Add missing commits for \app\code\Magento\Sales\Model\Order\Email\Sender\OrderSender.php
…tered in email_invoice_set_template_vars_before Event magento#15038

 - Merge Pull Request magento#15038 from gwharton/magento2:2.1-develop-10210
 - Merged commits:
   1. 9a95dae
… app:config:import magento#15066

 - Merge Pull Request magento#15066 from rogyar/magento2:2.1-config-import-country-card
 - Merged commits:
   1. a7e8b71
…magento#15091

 - Merge Pull Request magento#15091 from rogyar/magento2:2.1-checkout-loader-fix
 - Merged commits:
   1. 78a2e51
…l Express checkout order magento#15094

 - Merge Pull Request magento#15094 from rogyar/magento2:2.1-paypal-duplicate-email-fix
 - Merged commits:
   1. 0799789
…to#15099

 - Merge Pull Request magento#15099 from sergiy-v/magento2:feature/catalog-inventory-language-file-fix
 - Merged commits:
   1. 21bd884
… array magento#15093

 - Merge Pull Request magento#15093 from rogyar/magento2:2.1-product-list-return-hint-fix
 - Merged commits:
   1. 7104b91
…tomer search magento#15101

 - Merge Pull Request magento#15101 from sergiy-v/magento2:feature/2.1-asterisk-on-grid-search
 - Merged commits:
   1. ceb486d
 - Merge Pull Request magento#15103 from sergiy-v/magento2:feature/2.1-magento-review-view-template-remove-extra-tag
 - Merged commits:
   1. 8823f96
…ty event magento#15104

 - Merge Pull Request magento#15104 from sergiy-v/magento2:feature/2.1-minicart-update-button
 - Merged commits:
   1. 45b8f87
…ad of using template/path magento#15106

 - Merge Pull Request magento#15106 from sergiy-v/magento2:feature/2.1-magento-review-renderer-path
 - Merged commits:
   1. 20993c1


 - Merge Pull Request magento#15108 from sergiy-v/magento2:feature/2.1-buttons-less-typo
 - Merged commits:
   1. 12bf629
 - Merge Pull Request magento#15109 from sergiy-v/magento2:feature/2.1-port-15023
 - Merged commits:
   1. e2f70fe
…represent what it actually does magento#15105

 - Merge Pull Request magento#15105 from sergiy-v/magento2:feature/2.1-block-class-type-config-label
 - Merged commits:
   1. 841b322
magento-engcom-team and others added 28 commits May 16, 2018 01:13
 - Merge Pull Request magento#15240 from Atwix/magento2:remove-unused-namespace-from-ui-export
 - Merged commits:
   1. 3d3f922
…15233

 - Merge Pull Request magento#15233 from VitaliyBoyko/magento2:fix/design-rule-typo
 - Merged commits:
   1. 9994410
…o#15234

 - Merge Pull Request magento#15234 from VitaliyBoyko/magento2:11440-Add-missing-translations-in-Magento_UI
 - Merged commits:
   1. 0c2e496
 - Merge Pull Request magento#15235 from VitaliyBoyko/magento2:11569-Fixed_double_space_typo
 - Merged commits:
   1. d41e2c5
…nfig is used magento#15238

 - Merge Pull Request magento#15238 from VitaliyBoyko/magento2:Fixed-php-notice-when-invalid-ui_component-config-is-used
 - Merged commits:
   1. 5980670
…agento#15237

 - Merge Pull Request magento#15237 from VitaliyBoyko/magento2:Changed-constructor-typo-in-Javascript-class
 - Merged commits:
   1. 76c4463
Accepted Public Pull Requests:
 - magento#15240: Remove unused namespace from ui export (by @yuriyDne)
 - magento#15203: [Backport 2.1] Fix for displaying a negative price for a custom option (by @dverkade)
 - magento#15176: Fixed format of purchase date in order grid again. (by @hostep)
Accepted Public Pull Requests:
 - magento#15222: [Backport] Fixed datepicker problem when using non en-US locale. (by @rogyar)
 - magento#15221: [Backport] Translate action Label (by @rogyar)
Accepted Public Pull Requests:
 - magento#15159: [Backport] Default schedule config for sitemap_generate job added (by @rogyar)


Fixed GitHub Issues:
 - magento#5768: Magento 2.0.7 XML sitemap is not generated by schedule (reported by @dexterityzx) has been fixed in magento#15159 by @rogyar in 2.1-develop branch
   Related commits:
     1. f4ae0e3
Accepted Public Pull Requests:
 - magento#15237: [Backport] Changed constructor typo in Javascript class (by @VitaliyBoyko)
 - magento#15235: [Backport] Fixed double space typo (by @VitaliyBoyko)
Accepted Public Pull Requests:
 - magento#15238: [Backport] Fixed php notice when invalid ui_component config is used (by @VitaliyBoyko)
 - magento#15234: [Backport] Add missing translations in Magento_UI (by @VitaliyBoyko)
 - magento#15233: [Backport] Fix typo in design rule hint message (by @VitaliyBoyko)
…tered in email_invoice_set_template_vars_before Event magento#15038
Accepted Public Pull Requests:
 - magento#15038: [2.1-develop][Backport] Transport variable can not be altered in email_invoice_set_template_vars_before Event (by @gwharton)


Fixed GitHub Issues:
 - magento#10210: Transport variable can not be altered in email_invoice_set_template_vars_before Event (reported by @diybook) has been fixed in magento#15038 by @gwharton in 2.1-develop branch
   Related commits:
     1. 9a95dae
Fixed issues:
- MAGETWO-91894 Backport Static Test Fixes in CE
@IgorVitol IgorVitol force-pushed the 2.1-develop-PR-port-15058 branch from 63827dc to 3723581 Compare May 20, 2018 10:18
@IgorVitol IgorVitol closed this May 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants