Commit Graph

16919 Commits

Author SHA1 Message Date
Rostislav Wolny
146a55b921 Improve stability of SchedulerTest by adding 1s delta to time comparisons
[MAILPOET-4780]
2022-11-07 19:15:43 +01:00
Oluwaseun Olorunsola
7e883d3e5b Rename method from checkForNullOrUndefined to isNullOrUndefined
MAILPOET-4681
2022-11-07 14:17:50 +01:00
Oluwaseun Olorunsola
7896efcd6c Enforce user selection for welcome wizard privacy and data sharing
We are making the two buttons mandatory. Users have to select either yes or no before they can proceed with the welcome wizard

MAILPOET-4681
2022-11-07 14:17:50 +01:00
Oluwaseun Olorunsola
a1ef87ef78 Remove later phrase from options
MAILPOET-4658
2022-11-07 12:42:58 +01:00
Oluwaseun Olorunsola
d058f1741f Add after text for immediately option on the post notification create screen.
MAILPOET-4658
2022-11-07 12:42:58 +01:00
Oluwaseun Olorunsola
ff0852fa39 Update after delay text
MAILPOET-4658
2022-11-07 12:42:58 +01:00
Oluwaseun Olorunsola
5f07b68b07 Update post notification emails
Remove select frequency subheader and add "after publishing a post" to immediately text

MAILPOET-4658
2022-11-07 12:42:58 +01:00
Oluwaseun Olorunsola
0c2934a556 Update Post notifications email setup
Add "When to send this post notification email" text to the page

MAILPOET-4658
2022-11-07 12:42:58 +01:00
Oluwaseun Olorunsola
885b51a6cf Update PurchasedInCategory and PurchasedProduct
Add "after purchase" text to the page

MAILPOET-4658
2022-11-07 12:42:58 +01:00
Oluwaseun Olorunsola
6cb5ceca21 Update First purchase automatic emails
Add "When to send this email" and "after first purchase" texts to the page

MAILPOET-4658
2022-11-07 12:42:58 +01:00
David Remer
9a14ddb57c Fire mailpoet_segment_subscribed only when subscriber status changed
[MAILPOET-4773]
2022-11-07 04:41:47 -06:00
David Remer
5c6f32488a Remove old hook
[MAILPOET-4773]
2022-11-07 04:41:47 -06:00
David Remer
4ec8f27d36 Delete schema if necessary
[MAILPOET-4773]
2022-11-07 04:41:47 -06:00
David Remer
9554727370 Fire mailpoet_segment_subscribed when user registers and is subscribed
When no confirmation mail gets send, the user is subscribed immediately. In this case
we need to fire the mailpoet_segment_subscribed action, so the trigger can listen to this
event.

[MAILPOET-4773]
2022-11-07 04:41:47 -06:00
David Remer
394f9abd67 Make sure, we have a fresh subscriber from the database
[MAILPOET-4773]
2022-11-07 04:41:47 -06:00
David Remer
6ee45f0f54 Add method to retrieve subsccriber
[MAILPOET-4773]
2022-11-07 04:41:47 -06:00
David Remer
2e9ae1ed0b Add info about subscribe in registration from setting
[MAILPOET-4772]
2022-11-07 04:41:47 -06:00
David Remer
74b12bd2d9 Change trigger to mailpoet_segment_subscribed
We should listen to mailpoet_segment_subscribed to start the trigger.
This means the subscriber is confirmed. And it removes the fatal error
which was produced by not finding the $segment during signup.

[MAILPOET-4772]
[MAILPOET-4773]
2022-11-07 04:41:47 -06:00
David Remer
279adcfbcf Test user registration triggers automation
[MAILPOET-4773]
2022-11-07 04:41:47 -06:00
Rodrigo Primo
64d655857b Explicitly declare compatibility with Woo High Performance Order Tables
This was done following the instructions published by the WooCommerce
team: pcShBQ-oY-p2

[MAILPOET-4726]
2022-11-07 10:42:38 +01:00
Rodrigo Primo
b2b5f3c22a Add Woo tags "WC requires at least" and "WC tested up to"
As discussed in this P2 post (pcNwfB-1lW-p2), we will start using the
Woo tags "WC requires at least" and "WC tested up to". The "WC tested up
to" tag is required by WooCommerce for extensions to explicitly declare
compatibility with Woo High Performance Order Tables (pcShBQ-oY-p2). The
"WC requires at least" is not currently used by WooCommerce, but it
helps us make more explicit which versions of Woo MailPoet currently
supports.

[MAILPOET-4726]
2022-11-07 10:42:38 +01:00
Jan Jakes
588f3a9feb Use "reply to" from settings only when they are different than "from" settings
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
Jan Jakes
8c676b773d Fix hook type
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
Jan Jakes
c76a0adb5e Move validation rules for active workflows below structural rules
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
Jan Jakes
848fc51070 Run full workflow validation for all non-draft statuses
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
Jan Jakes
af1e09f46f Remove "inactive" status for now, use "draft" instead
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
Jan Jakes
f1abfe557a Use undefined for no value in GA campaign field
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
Jan Jakes
aa52ca804e Expose send email create step filter
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
Jan Jakes
273551fa36 Add type for a step creation callback
[MAILPOET-4757]x
2022-11-07 11:17:36 +02:00
Jan Jakes
17898b243a Use default reply to values when no previous values are set
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
Jan Jakes
81ed12d454 Use previous reply to values when toggled off and on
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
Jan Jakes
2f78c99381 Fix reply-to panel empty value handling
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
Jan Jakes
480c7d25e0 Delete step args when they are set to "undefined"
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
Jan Jakes
c1a6c5a215 Force sidebar remount to avoid different steps mixing their data
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
Jan Jakes
8fadc87036 Enable delay in minutes
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
Jan Jakes
5176566882 Remove debug info from step panel
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
Jan Jakes
b52b9990da Improve workflow name rendering in listing
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
Jan Jakes
8796599d89 Automatically open sidebar panels when their fields contain errors
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
Jan Jakes
9808245d30 Set errors object also for non-step errors to propagate correct state
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
Jan Jakes
12f2d1730f Do not enforce workflow content for non-active workflows
[MAILPOET-4757]
2022-11-07 11:17:36 +02:00
Rostislav Wolny
dac8c1e2f3 Improve assertEqualDateTimes helper interface
Make sure that both dates parameters have to be passed into the method.
[MAILPOET-4723]
2022-11-07 10:10:17 +01:00
Rostislav Wolny
a3e1f8d8c6 Fix flaky AbandonedCartTest
Fix the flaky DateTime comparisons test by allowing 1 second delta
[MAILPOET-4723]
2022-11-07 10:10:17 +01:00
Rostislav Wolny
2c28449b58 Add helper method for comparing DateTimeInterface objects
This commit adds a method to the integration tester that allows
comparing two DateTimeInterface objects and specify tolerated delta.
It also allows passing null and assert the DateTimeInterface internally.
This is because often our entities have return type DateTimeInterface|null
So with the internal checks we don't have to make those instance of checks
each time we pass date from entity into the method.
Note: I was not able to use $this->assertInstanceOf because PHPStan was not accepting that
and still complained.
[MAILPOET-4723]
2022-11-07 10:10:17 +01:00
Jan Jakes
43197bf859 Use 24-hour format in migration timestamps
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
bd34c4e7ec Ignore index.php in migrations directory
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
511b8ad7ff Retry timed out and failed migrations
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
a60562254c Temporarily fix reinstall test wiping out automation tables
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
96368cbd3f Move one-time migrations from populator to the new initial migration
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
e384e7dea3 Merge inactive subscribers frequency test into the new initial migration test
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
86fbcd3a57 Annotate types for PHPStan rather than using baseline files
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00