Skip to content

Fixed bugs and add improvements for Newsletter Queue #33849

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

Conversation

Usik2203
Copy link
Contributor

@Usik2203 Usik2203 commented Aug 18, 2021

Description

This PR fixes bugs and add improvements for Newsletter Queue functionality

Preconditions

  1. For correct testing you should have more then 20 subscribers in newsletter_subscriber table
  2. Create new Newsletter Templates in Marketing->Newsletter Templates
  3. Create new Newsletter Queue
Screen.Recording.2021-08-18.at.15.56.20.mov

Issue case 1

Actual result

  1. Run bin/magento cron:run --group=default , newsletter_send_all cron job should run Newsletter Queue
  2. You will see that 20 emails were sent but we still have Not Sent status

Screenshot 2021-08-18 at 16 37 28

  1. I don't see any actions except Preview

Screenshot 2021-08-18 at 16 44 20

Result after fix

Was fixed by appliing next changes https://github.com/magento/magento2/pull/33849/files#diff-1d2d0f2340ff4fc3e0907e98b2ccd1a21a35c777c503907bc3c12f0223eaeb8eR254

Correct status was set, i can see Pause, Cancel , Preview actions for queue

Screenshot 2021-08-18 at 16 48 58

Issue case 2

  1. After Issue case 1 was fixed next issue was reproduced

Actual result

All data were removed from Newsletter Queue after clicking Save and Resume button

Screen.Recording.2021-08-18.at.16.53.36.mov

Screenshot 2021-08-18 at 16 59 08

Result after fix

Was fixed by appliing next changes https://github.com/magento/magento2/pull/33849/files#diff-f4e00fe342edaab019fbb62abfa0c2b8f5d7a2f179bd5880e4c217d57bbb7883R232

Data was saved correctly all data present

Screen.Recording.2021-08-18.at.17.12.18.mov

Issue case 3

Actual result

  1. Save and Resume button always display even while creating new Newsletter Queue

Screenshot 2021-08-18 at 17 04 30

Result after fix

Was fixed by appliing next changes https://github.com/magento/magento2/pull/33849/files#diff-d337328a9078b6f37102b714ffa5460b365c7ede7b97ca644bf2f0b8fe15b0dcR138

  1. Save and Resume button displays only if Newsletter Queue has status Pause
Screen.Recording.2021-08-18.at.17.15.38.mov

Resolved issues:

  1. resolves [Issue] Fixed bugs and add improvements for Newsletter Queue #36612: Fixed bugs and add improvements for Newsletter Queue

@m2-assistant
Copy link

m2-assistant bot commented Aug 18, 2021

Hi @Usik2203. Thank you for your contribution
Here are 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 give me test instance - deploy test instance based on PR changes
  • @magento give me 2.4-develop instance - deploy vanilla Magento instance

❗ Automated tests can be triggered manually with an appropriate comment:

  • @magento run all tests - run or re-run all required tests against the PR changes
  • @magento run <test-build(s)> - run or re-run specific test build(s)
    For example: @magento run Unit Tests

<test-build(s)> is a comma-separated list of build names. Allowed build names are:

  1. Database Compare
  2. Functional Tests CE
  3. Functional Tests EE,
  4. Functional Tests B2B
  5. Integration Tests
  6. Magento Health Index
  7. Sample Data Tests CE
  8. Sample Data Tests EE
  9. Sample Data Tests B2B
  10. Static Tests
  11. Unit Tests
  12. WebAPI Tests
  13. Semantic Version Checker

You can find more information about the builds here

ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review.

For more details, please, review the Magento Contributor Guide documentation.

⚠️ According to the Magento Contribution requirements, all Pull Requests must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

🕙 You can find the schedule on the Magento Community Calendar page.

📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.

🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

@magento-engcom-team magento-engcom-team added Component: Newsletter Release Line: 2.4 Partner: Atwix Pull Request is created by partner Atwix partners-contribution Pull Request is created by Magento Partner labels Aug 18, 2021
@Usik2203
Copy link
Contributor Author

@magento run all tests

@magento-automated-testing
Copy link

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.

@Usik2203 Usik2203 changed the title [Draft] Add Newsletter Queue improvements Fixed bugs and add improvements for Newsletter Queue Aug 18, 2021
private function startQueue()
{
$this->setQueueStatus(self::STATUS_SENDING);
$this->save();
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we still use deprecated method in core?

@sidolov sidolov added the Priority: P2 A defect with this priority could have functionality issues which are not to expectations. label Oct 28, 2021
@engcom-Charlie engcom-Charlie self-assigned this Aug 3, 2022
@engcom-Charlie
Copy link
Contributor

@magento give me test instance

@engcom-Charlie
Copy link
Contributor

@magento give me test instance

@magento-deployment-service
Copy link

Hi @engcom-Charlie. Thank you for your request. I'm working on Magento instance for you.

@magento-deployment-service
Copy link

@engcom-Charlie
Copy link
Contributor

@magento run all tests

@magento-automated-testing
Copy link

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.

@Den4ik
Copy link
Contributor

Den4ik commented Aug 5, 2022

@engcom-Charlie Will you help with updating PR?

@engcom-Charlie
Copy link
Contributor

Hi @Den4ik,

Yeah, will work on the review comments and on build failures.

Thank you!

@Den4ik
Copy link
Contributor

Den4ik commented Aug 5, 2022

@engcom-Charlie That's great 👍

@engcom-Lima
Copy link
Contributor

@magento create issue

@engcom-Echo
Copy link
Contributor

@magento run all tests

@magento-automated-testing
Copy link

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.

4 similar comments
@magento-automated-testing
Copy link

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-automated-testing
Copy link

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-automated-testing
Copy link

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-automated-testing
Copy link

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.

@engcom-Echo
Copy link
Contributor

@magento run Functional Tests CE

@magento-automated-testing
Copy link

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.

@engcom-Echo
Copy link
Contributor

Functional Tests B2B, Functional Tests EE,Functional Tests CE Failures are related to Currency Converter API.
Hence Moving to Merge In Progress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Newsletter Partner: Atwix Pull Request is created by partner Atwix partners-contribution Pull Request is created by Magento Partner Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: accept Release Line: 2.4
Projects
Status: Recently Merged
Development

Successfully merging this pull request may close these issues.

[Issue] Fixed bugs and add improvements for Newsletter Queue
9 participants