Commit Graph

71 Commits

Author SHA1 Message Date
Rostislav Wolny
d3e2bcdf34 Refactor daemon trigger and daemon run actions to extra classes
[MAILPOET-4274]
2022-08-03 10:36:57 +02:00
Rostislav Wolny
476ee1ede9 Refactor triggering new action scheduler executor into extra service
[MAILPOET-4274]
2022-08-03 10:36:57 +02:00
Rostislav Wolny
f59945d483 Add wrapper class for action scheduler in cron
The class add GROUP ID so that all MailPoet cron tasks are stored under the same group.
[MAILPOET-4274]
2022-08-03 10:36:57 +02:00
Rostislav Wolny
ccfdd229ec Add action scheduler daemon runner
This commit adds a class that handles continuous processing of MailPoet cron daemon
using Action Scheduler's recurring actions.
[MAILPOET-4274]
2022-08-03 10:36:57 +02:00
Sam Najian
6b12255bb8 Move PersonalDataExporters to DI
[MAILPOET-4348]
2022-08-01 14:18:59 +02:00
Jan Lysý
155445b313 Remove old model from SendingQueue Migration
[MAILPOET-4358]
2022-08-01 13:09:20 +02:00
Jan Lysý
1eef663ca3 Add new dynamic filter for tags
[PREMIUM-196]
2022-07-25 09:32:02 +02:00
Rodrigo Primo
7f055aef06 Replace Paris models with Doctrine in SubscriberPersonalDataEraser
[MAILPOET-4349]
2022-07-20 15:05:19 +02:00
Jan Lysý
1a9845c916 Move getting segments to the new class
[MAILPOET-4292]
2022-07-14 11:29:09 +02:00
Jan Jakes
d447702941 Convert welcome email action to a generic send email action
[MAILPOET-4465]
2022-07-12 13:36:58 +02:00
Jan Jakes
971da8a943 Add automation email scheduler service
[MAILPOET-4465]
2022-07-12 13:36:58 +02:00
Jan Jakes
aaf8cb5d51 Rename "wait" action to "delay"
[MAILPOET-4465]
2022-07-12 13:36:58 +02:00
Jan Lysý
79b27e005d Add SubscriberTagRepository
[MAILPOET-4440]
2022-07-12 13:35:00 +02:00
Jan Lysý
a289972a82 Add repository for tags
[MAILPOET-4440]
2022-07-12 13:35:00 +02:00
Jan Jakes
b733e7b770 Add subjects to registry, implement subject loader service
[MAILPOET-4454]
2022-07-04 14:09:00 +02:00
Jan Jakes
d6633efef2 Add workflows PUT endpoint for workflow updating
[MAILPOET-4454]
2022-07-04 14:09:00 +02:00
Jan Jakes
bb90ae97d0 Add basic workflow update controller with status change caps
[MAILPOET-4454]
2022-07-04 14:09:00 +02:00
alex-mailpoet
c583d3aa12 Move CreateWorkflowController to Premium
[PREMIUM-180]
2022-06-09 13:30:54 +02:00
alex-mailpoet
98b01f46e0 Move workflow creation POST endpoint to Premium
[PREMIUM-180]
2022-06-09 13:30:54 +02:00
David Remer
9f3476e4cb Fix CdnAssetUrl instantiation
[MAILPOET-3985]
2022-06-08 15:25:41 +02:00
John Oleksowicz
455e463916 Better naming
MAILPOET-4264
2022-06-08 13:14:11 +02:00
John Oleksowicz
25b9f3a876 Create a workflow from a PHP template
MAILPOET-4264
2022-06-08 13:14:11 +02:00
Jan Jakes
2c18b851e4 Add automation editor page
[MAILPOET-4287]
2022-05-19 10:09:05 +02:00
John Oleksowicz
9bfe2b2ca1 Newsletter validation updates
- Rename validator to newsletterValidator for clarity
- Add validation for ALC content
- Refactor tests to use data factory for consistency and to avoid
validation issues
- Add separate tests for NewsletterValidator service
- Add test helper for retrieving service with private properties
overridden by name

[MAILPOET-4236]
2022-05-16 11:17:29 +02:00
John Oleksowicz
fdaf22d46b Extract newsletter validation to a service
[MAILPOET-4236]
2022-05-16 11:17:29 +02:00
David Remer
33e5e15e98 Remove MailPoet Trigger
[MAILPOET-4271]
2022-05-09 13:06:28 +02:00
David Remer
ca3f8bdc43 Make Scheduler non-static
[MAILPOET-4252]
2022-04-25 12:08:18 +02:00
Jan Jakes
679f2200bd Rename endpoint "factory" to a more exact "container"
[MAILPOET-4207]
2022-04-20 15:30:50 +02:00
Jan Jakes
6b1c6929d1 Migrate existing endpoints to the new structure
[MAILPOET-4207]
2022-04-20 15:30:50 +02:00
Sam
7631042f3d Revert "Revert "Check post-types validity for requests""
This reverts commit fdb4663ca1.
2022-04-18 11:43:47 +02:00
John Oleksowicz
52855b06d8 Fix indentation
[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
5227481a42 Revert to a simpler approach
Having separate objects for validation results is unnecessary and overly
 complicated at this point, and we should wait to introduce that kind of
  complexity only when/if it's clearly needed.

[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
1f697cea47 Separate instances for objects with state
Segment and Subscriber subjects can be stateful, with specific segments
and subscribers loaded into them, so we should probably get separate
instances of them instead of sharing that state and potentially getting
unexpected behavior.

[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
69b523171f Initial stab at a welcome email action
[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
Rodrigo Primo
fdb4663ca1 Revert "Check post-types validity for requests"
This reverts commit b800cf189f.
2022-04-11 16:30:59 -03:00
Sam Najian
b800cf189f Check post-types validity for requests
[MAILPOET-4082]
2022-04-11 14:54:56 -03:00
Rostislav Wolny
d4a8315933 Use mailerFactory in SendingQueue Mailer task
[MAILPOET-4115]
2022-04-11 16:54:38 +02:00
Rostislav Wolny
68cb5c4f79 Inject MailerFactory instead of mailer
We can't create mailer directly in DI container using the factory because it may fail in case
the plugin is not configured properly and prevent plugin from start.

The Mailer was previously injected because it contains lazy initialization.
The lazy initialization in the singleton Mailer service was dangerous,
because when used with some custom parameters it could cause that all services
that inject the Mailer from DI would use the custom config instead the default.
[MAILPOET-4115]
2022-04-11 16:54:38 +02:00
Rostislav Wolny
51e0426e81 Add MailerFactory service
In this commit I copied and slightly modified functionality used
for creating Mailer instance based on config from the Mailer to an extra class.

The functionality still remains also in Mailer and will be removed later.
I also created test based on the original test for Mailer and added test case
testing it creates specific MailerMethods.
[MAILPOET-4115]
2022-04-11 16:54:38 +02:00
Brezo Cordero
ba1da229a8 Add SimpleWorker to calculate Subscriber email_counts
[MAILPOET-4177]
2022-04-07 10:17:38 +02:00
Rostislav Wolny
86164fd32e Use scheduled task subscriber listing repository in API endpoint
[MAILPOET-4006]
2022-04-04 15:33:52 +02:00
Rostislav Wolny
4f471d26bc Add listing repository for scheduler task subscribers
[MAILPOET-4006]
2022-04-04 15:33:52 +02:00
Jan Jakes
6293809b1e Add strict validator service (wrapping WP REST validator)
[MAILPOET-4195]
2022-03-30 11:29:58 +02:00
Jan Jakes
fc16bacadc Add "core" automation integration & implement wait action
The "core" integration will provide triggers, actions, and subjects
that are not specific to any 3rd party integration.

[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
0e32a215f3 Add MailPoet subscriber subject
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
832ad3a898 Add MailPoet segment subject
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
87a8538912 Add basic MailPoet automation integration with segment subscribed trigger
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
ac04ade359 Implement action step runner
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
0c8c86c0a8 Add basic workflow step runner service
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00
Jan Jakes
6d040571aa Add simple Action Scheduler wrapper service
[MAILPOET-4136]
2022-03-14 09:36:21 +01:00