Skip to content

19404 fixed newsletter issue #19416

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

Merged
merged 4 commits into from
Dec 6, 2018
Merged

19404 fixed newsletter issue #19416

merged 4 commits into from
Dec 6, 2018

Conversation

Dharmeshvaja91
Copy link
Contributor

@Dharmeshvaja91 Dharmeshvaja91 commented Nov 27, 2018

Description (*)

Fixed Issues (if relevant)

  1. When subscribing to newsletter, if email already exists, don't throw exception, but just warn without exception #19404: When subscribing to newsletter, if email already exists, don't throw exception, but just warn without exception

Manual testing scenarios (*)

  1. Subscribe for the news latter with already register emial

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 @Dharmeshvaja91. 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 2.3-develop instance - deploy vanilla Magento instance

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

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 your contribution. Please see the review notes. Also, please note that this issue is already fixed in #19406

$e,
__('There was a problem with the subscription: %1', $e->getMessage())
);
$this->messageManager->addErrorMessage(__('This email address is already subscribed.'));
Copy link
Member

Choose a reason for hiding this comment

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

I think the throw exception on line 146 should be replaced with this messageManager call. Here several different exceptions are possible (i.e. validateEmailFormat also throws LocalizedException)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@sivaschenko yes you are right, I will change this too.

@sivaschenko sivaschenko self-assigned this Nov 27, 2018
@Dharmeshvaja91 Dharmeshvaja91 removed the request for review from ihor-sviziev November 27, 2018 08:34
@sivaschenko
Copy link
Member

sivaschenko commented Nov 27, 2018

@Dharmeshvaja91 thanks for the contribution. Unfortunately, I have to ask you to close this pull request as it is a duplicate. The issue is already fixed in #19406

@Dharmeshvaja91
Copy link
Contributor Author

Dharmeshvaja91 commented Nov 27, 2018

@Dharmeshvaja91 thanks for the contribution. Unfortunately, I have to ask you to close this pull request as it is a duplicate. The issue is already fixed in #19406

@sivaschenko thank you for your comments on this i have just checked solution as per this pull request #19406 but still i m getting the same issue.

As per you instruction i have updated my code as well
please update me that should i continue work on this ?.

@sivaschenko
Copy link
Member

Your solution (after the fix) looks better, however, the #19406 was created earlier. I propose you to help with #19406 finalization (i.e. comment that you still able to reproduce the issue and link this pull request as an example of fix). We will not be able to merge both pull requests

@Dharmeshvaja91
Copy link
Contributor Author

@sivaschenko He have closed his pull request, so please accept my pull request.

@magento-engcom-team magento-engcom-team added this to the Release: 2.3.1 milestone Nov 27, 2018
@magento-engcom-team
Copy link
Contributor

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

@magento-engcom-team
Copy link
Contributor

@Dharmeshvaja91 thank you for contributing. Please accept Community Contributors team invitation here to gain extended permissions for this repository.

@magento-engcom-team
Copy link
Contributor

Hi @Dharmeshvaja91. 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.

3 participants