Commit Graph

58 Commits

Author SHA1 Message Date
0b0abea3bb Retype to use the correct type
[MAILPOET-2716]
2020-04-24 11:44:09 +02:00
317257bfc4 Ensure newsletter has state sending when resuming sending
[MAILPOET-2819]
2020-04-02 11:48:51 +02:00
e185121f43 Fix properties with trailing underscore
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
d0292f8624 Convert variable names to camel case in PHPDoc
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
54549ff037 Convert variable names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
wxa
09a1411c81 Fix types with annotations [MAILPOET-2488] 2019-12-30 14:51:22 +01:00
wxa
dec7bc24a5 Fix undefined properties in models [MAILPOET-2488] 2019-12-30 14:51:22 +01:00
43df66d162 Add public keyword to methods
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00
wxa
8fb18e7c2e Extract usage of emoji encoding from the sending queue model [MAILPOET-2460] 2019-10-24 10:57:36 +01:00
ade1cc4d8e Autofix alphabetically sorted use statements
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
1b5b9d89ff Autofix namespace declaration spacing
[MAILPOET-2409]
2019-10-01 14:29:30 +01:00
01a0fe96c4 Remove no longer necessary checks
[MAILPOET-1948]
2019-09-12 13:59:32 +02:00
3d750c5bb8 Move post notification scheduling to service
[MAILPOET-2348]
2019-09-11 19:16:21 +01:00
91dd0aa910 Add Doctrine entities for sending queues and scheduled tasks
[MAILPOET-2216]
2019-08-23 15:31:11 -04:00
5da7110eb6 Use short array syntax
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
d1529a03c3 Disallows assignments in some control structures
[MAILPOET-2090]
2019-05-20 10:18:45 -04:00
wxa
b99096d2df Don't serialize meta fields if they're null [MAILPOET-2073] 2019-05-14 10:06:47 -04:00
ab097d356a Fix PHPStan errors 2019-03-07 08:30:14 -05:00
0a436087e1 Replace all WP function calls 2019-03-07 08:30:14 -05:00
bed80e67f1 Use phpstan level 2
[MAILPOET-1822]
2019-02-21 13:49:52 -05:00
3ee58aea10 Add space between if and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
ebbdec5ebd Add space between foreach and ‘(‘
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
d452cfcae7 Wrap calls in DateTime and Emoji classes 2019-01-31 13:23:32 +01:00
1af4666744 Declare missing properties and methods for PHPStan 2019-01-23 21:30:24 +02:00
32e02cbf52 Adds meta column to sending queues 2018-06-11 13:33:44 -04:00
9b9abf5cde Fix sending task reschedule
The query returned data from the sending queue table
So the next update updated the wrong row in the tasks table

[MAILPOET-1378]
2018-05-17 16:13:51 +01:00
734d1ded1f Check processed subscribers for old and new queues differently [MAILPOET-903] 2018-03-01 21:17:51 +03:00
03015c0bde Fix code review syntax remarks [MAILPOET-903] 2018-02-26 16:30:53 +03:00
be6647d763 Fix unit tests [MAILPOET-903] 2018-02-13 11:39:50 +03:00
c0c57f6b67 Sending queue refactoring WIP [MAILPOET-903] 2018-02-13 11:39:50 +03:00
19c7efc9ef Pauses sending if processed subscribers list can't be updated 2018-01-09 12:25:04 +00:00
a45a7a7616 Fixes newsletter body being incorrectly saved 2018-01-09 12:25:04 +00:00
cb430673f8 Uses json_encode() instead of serialize() to save rendered newsletter
body
2017-12-20 22:13:00 -05:00
b9bdc86fd9 Add emoji support to newsletter body [MAILPOET-1009] 2017-08-28 19:07:17 +03:00
90b93bd76e Merge pull request #1018 from mailpoet/prevent_sending_with_broken_newsletter_body
Prevents sending emails when rendered newsletter is broken [MAILPOET-1020]
2017-07-25 13:13:03 +03:00
9dd326e7db Updates class to use newly added validate() method on the model
Validates existing queue's rendered newsletter body
Cleans code formatting
2017-07-24 12:49:39 -04:00
4c898b76b2 Uses ValidModel to validate rendered newsletter body
Removes previous validation method
Does not serialize null values
2017-07-24 11:15:00 -04:00
1a522794d6 Adds method to validate rendered newsletter body on sending queue
Prevents sending queue worker from sending when sending queue's rendered
newsletter body is invalid
2017-07-23 11:50:35 -04:00
b42d8e68d9 Rename removeSubscribers() method and encapsulate task completion logic [MAILPOET-987] 2017-07-20 11:22:47 +03:00
709f45941a - Allows returning of text or html rendered body from the sending queue
model
2016-12-18 23:08:07 -05:00
f77e24105d Merge pull request #709 from mailpoet/sending_restart
Sending retry/pause/restart [MAILPOET-653]
2016-11-29 13:51:53 +01:00
c49d96d63a - Adds piority constants
- Sets medmium priority as default when none is specified
2016-11-28 12:03:09 -05:00
72f696e834 - Removes unused logic to deal with "failed" subscribers
- Updates sending queue worker to handle new mailer response format
2016-11-28 09:50:32 -05:00
2fa5e5ead2 - Moves logic of the Subscribers task to the Sending Queue model 2016-09-19 21:53:13 -04:00
379dfb5f6e - Removes leftover private variable 2016-09-19 20:51:08 -04:00
8360377992 - Replaces custom method to get newsletter with ORM's native one-to-one model
relationship
2016-09-19 20:47:49 -04:00
0dfae97b32 - Updates model to serialize rendered newsletter body on save 2016-09-19 20:09:44 -04:00
f88dabffe8 - Updates cron's sending queue worker to use model objects
- Adds new method to render newsletter to the newsletter model
- Adds new transient object to newsletter model that will hold temporary
  values (i.e., rendered body) when working with the model
2016-09-18 23:14:17 -04:00
e48d55f0b1 - Adds new model methods 2016-08-22 09:26:25 -04:00
67661e3aad Remove useless constructors 2016-06-30 18:50:48 +03:00