-
Notifications
You must be signed in to change notification settings - Fork 9.4k
#36748 minor refactoring handling new errores based in apiLayer #36941
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
base: 2.4-develop
Are you sure you want to change the base?
#36748 minor refactoring handling new errores based in apiLayer #36941
Conversation
Hi @amarroni. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento run all tests |
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. |
@magento run all tests |
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. |
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.
Hi @amarroni Thanks for you PR.
Please review my comments
}elseif (isset($response['message'])) | ||
{ | ||
$message = $response['message']; | ||
$this->messages[] = __($message); |
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.
I believe that don't make sense to translate externally received message
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.
Got it. I'll send exactly same message.
}elseif (isset($response['message'])) | ||
{ |
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 use same code style format as most of Magento code.
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.
Just to be on the same page. Can you reference an example on some other page??? In the meantime I'll check the style you mention.
Description (*)
Fixer.io changed there url endpoints moved to apiLayer. This commit help to handle to validate the response as the same way origin code did.
Changed errores codes to a new message response.
Related Pull Requests
Fixed Issues (if relevant)
#36748 #36010
Contribution checklist (*)