Skip to content

Conversation

@quisse
Copy link

@quisse quisse commented Jun 15, 2018

Description

Use the new serializer which throws an error when json_encoding fails.

Fixed Issues (if relevant)

  1. Javascript error thrown from uiComponent 'notification_area' if messages are malformed #14937: Javascript error thrown from uiComponent 'notification_area' if messages are malformed
  2. Perhaps more

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-cicd2
Copy link
Contributor

magento-cicd2 commented Jun 15, 2018

CLA assistant check
All committers have signed the CLA.

@magento-engcom-team
Copy link
Contributor

Hi @quisse. 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 Pull Request changes
  • @magento-engcom-team give me new test instance - deploy NEW test instance based on Pull Request changes
  • @magento-engcom-team give me {$VERSION} instance - deploy Vanilla Magento instance for Issue or Pull Request

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

@quisse
Copy link
Author

quisse commented Jun 15, 2018

@magento-engcom-team give me test instance

@magento-engcom-team
Copy link
Contributor

Hi @quisse. Thank you for your request.\nUnfortunately, I can only deploy instances for 2.2-develop and 2.3-develop base branches

@quisse
Copy link
Author

quisse commented Jun 15, 2018

@umarch06 @magento-engcom-team any idea why the test instance can't be created?

@ishakhsuvarov
Copy link
Contributor

@magento-engcom-team give me test instance

@magento-engcom-team
Copy link
Contributor

Hi @ishakhsuvarov. Thank you for your request. I'm working on Magento instance for you

@magento-engcom-team
Copy link
Contributor

Hi @ishakhsuvarov, here is your Magento instance.
Admin access: https://pr-16154.engcom.dev.magento.com/admin
Login: admin Password: 123123q
Please make sure you are PR author or assignee to access the instance.

@quisse
Copy link
Author

quisse commented Jun 18, 2018

Edited

Copy link
Author

@quisse quisse left a comment

Choose a reason for hiding this comment

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

Any idea what to do for bc with the Onepage Block?

@quisse
Copy link
Author

quisse commented Jun 19, 2018

& any idea why travis isn't building anything?

@ihor-sviziev
Copy link
Contributor

@quisse looks like travis built your build, please review failures

@quisse
Copy link
Author

quisse commented Jun 22, 2018

Finally 😄, i'll review asap.

@ihor-sviziev
Copy link
Contributor

Hi @quisse,
your changes looks good. Could you squash them into single commit and force push layout-config-serializer-fix branch?

@ihor-sviziev ihor-sviziev self-assigned this Jun 26, 2018
Copy link
Contributor

@ihor-sviziev ihor-sviziev left a comment

Choose a reason for hiding this comment

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

Your changes looks good. Could you squash them into single commit and force push layout-config-serializer-fix branch?

@quisse quisse force-pushed the layout-config-serializer-fix branch from 0734673 to 3bedbc6 Compare June 26, 2018 08:20
@quisse quisse changed the title Use the new json serializer which throws an error when failing [Forwardport] Use the new json serializer which throws an error when failing Jun 26, 2018
@quisse quisse changed the title [Forwardport] Use the new json serializer which throws an error when failing Use the new json serializer which throws an error when failing Jun 26, 2018
Copy link
Member

@sivaschenko sivaschenko left a comment

Choose a reason for hiding this comment

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

Please see the review notes

@quisse
Copy link
Author

quisse commented Nov 20, 2018

I'll squash when the pr is ready for approval

Copy link
Member

@sivaschenko sivaschenko left a comment

Choose a reason for hiding this comment

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

Thanks for collaboration. Please see the review notes

Copy link
Member

@sivaschenko sivaschenko left a comment

Choose a reason for hiding this comment

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

Thanks for updates, I do not have any comments except adding some comment to empty phpdoc, please add it and squash changes for the delivery.

@quisse quisse force-pushed the layout-config-serializer-fix branch from 9ca1c94 to b7ba2bd Compare November 20, 2018 18:25
@ishakhsuvarov ishakhsuvarov removed their assignment Nov 30, 2018
@magento-engcom-team
Copy link
Contributor

Hi @sivaschenko, thank you for the review.
ENGCOM-3598 has been created to process this Pull Request

code formatting

Backwards compatibility fix

use JSON_HEX_TAG option for not breaking things

use new serializer instead of json_encode

use correct serializer in test

declare return type

use serializer

updated unit testing, now uses serializer

removed space

declare strict type

improved comment

Test new serializer

Test for greater than and lesser than symbol, required by JSON_HEX_TAG option

split comment for readability

Declare strict type on test

Use di to inject

cleanup curly brackets

code cleanup

removed empty phpdoc

Fix BC
@quisse quisse force-pushed the layout-config-serializer-fix branch from b7ba2bd to da7f293 Compare December 3, 2018 16:41
@magento-engcom-team magento-engcom-team merged commit bea49bc into magento:2.3-develop Jan 14, 2019
@ghost
Copy link

ghost commented Jan 14, 2019

Hi @quisse, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@magento-engcom-team
Copy link
Contributor

Hi @quisse. Thank you for your contribution.
We will aim to release these changes as part of 2.3.1.
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.

9 participants