Skip to content

Conversation

@yogeshsuhagiya
Copy link
Member

@yogeshsuhagiya yogeshsuhagiya commented Aug 15, 2018

Original Pull Request

#17527

Description

Created a new JS component with the callback function.
Replaced <script/> tag with <script type="text/x-magento-init" />

Fixed Issues (if relevant)

  1. N/A

Manual testing scenarios

  1. N/A

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)

@magento-engcom-team
Copy link
Contributor

Hi @yogeshks. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me {$VERSION} instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

});
<script type="text/x-magento-init">
{
'#edit_form': {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single quotes are not allowed in JSON configuration

{
'#edit_form': {
"Magento_Ui/catalog/product/edit/attribute": {
validationUrl: '<?= /* @escapeNotVerified */ $block->getValidationUrl() ?>'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single quotes are not allowed in JSON configuration

{
"#attributes-edit-form": {
"Magento_Ui/catalog/product/edit/attribute": {
validationUrl: '<?= /* @escapeNotVerified */ $block->getValidationUrl() ?>'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single quotes are not allowed in JSON configuration

<script type="text/x-magento-init">
{
'#edit_form': {
"Magento_Ui/catalog/product/edit/attribute": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File catalog/product/edit/attribute.js located in Magento_Catalog module instead of Magento_Ui

<script type="text/x-magento-init">
{
"#attributes-edit-form": {
"Magento_Ui/catalog/product/edit/attribute": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

File catalog/product/edit/attribute.js located in Magento_Catalog module instead of Magento_Ui

[Forwardport] Translated validation error messages
@ihor-sviziev
Copy link
Contributor

ihor-sviziev commented Aug 15, 2018

@yogeshks just add following commit: 01ed836

@VladimirZaets VladimirZaets self-assigned this Aug 19, 2018
@sidolov
Copy link
Contributor

sidolov commented Aug 30, 2018

Hi @yogeshks , I am closing this PR now due to inactivity.
Please reopen and update if you wish to continue.
Thank you for the collaboration!

@sidolov sidolov closed this Aug 30, 2018
@ishakhsuvarov ishakhsuvarov reopened this Sep 12, 2018
@magento-engcom-team
Copy link
Contributor

Hi @yogeshks. Thank you for your contribution.
We will aim to release these changes as part of 2.3.0.
Please check the release notes for final confirmation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants