Commit Graph

16919 Commits

Author SHA1 Message Date
Jan Jakes
9730fb9272 Move the old dbDelta-based migrator to a migration
This will ensure it runs once and from there, it will continue using the new migrations.

[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
a3f2ee8bbb Implement CLI output logging when running migrations
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
a177b3b8da Add the possibility to use a logger in migrator
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
f369fdfa4a Add ./do migrations:new command to generate migration files
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
80a6e78d48 Allow underscored naming in lib/Migrations
This is to allow readable naming of migration files and classes, such as "Migration_20221023_040819".
2022-11-07 10:05:42 +01:00
Jan Jakes
f65821256c Run migrations on activation
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
dd10389c55 Implement WP CLI command to show migrations info
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
3dd6ef3da7 Implement WP CLI command to run migrations
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
036d0a29ae Implement full migration running logic
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
d199e0b77e Add migrator service with ability to resolve status of all migrations
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
17ab79aa6f Add store method to list all migrations
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
b10cd32449 Add runner to execute a migration and save its status
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
f9001c1826 Add store methods to start, complete, and fail a migration
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
31050394b9 Add a store with a method to create migrations table when it doesn't exist
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
e9970f3cc8 Implement loading existing migration classes from the filesystem
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
516c460ace Add repository with the ability to create new migration classes
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
03d80290e6 Add a migration template that will be used to generate new migrations
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
d65b567858 Add abstract migration class with access to connection, entity manager, and the DI container
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
Jan Jakes
0d10f4b1dd Enable mocking non-object properties in test service overrides
[MAILPOET-4466]
2022-11-07 10:05:42 +01:00
David Remer
610d0204eb Add link to email statistics page
[MAILPOET-4777]
2022-11-07 10:25:21 +02:00
David Remer
545a4adc66 Fix typo
[MAILPOET-4744]
2022-11-07 02:22:21 -06:00
David Remer
38d8a1cd00 Wrap updateingActiveWorkflowNotPossible in useEffect
[MAILPOET-4744]
2022-11-07 02:22:21 -06:00
David Remer
53201c7422 Rename imported select
[MAILPOET4744]
2022-11-07 02:22:21 -06:00
David Remer
6f447e8a93 Show snackbar message on boot when updating not possible
[MAILPOET-4744]
2022-11-07 02:22:21 -06:00
David Remer
368a400fea Allow updating an active workflow when no user is in progress
[MAILPOET-4744]
2022-11-07 02:22:21 -06:00
David Remer
902eeccea1 Block updating workflows with active runs in the backend
[MAILPOET-4744]
2022-11-07 02:22:21 -06:00
David Remer
c8cf00a151 Add delay to tooltips
[MAILPOET-4744]
2022-11-07 02:22:21 -06:00
David Remer
f41423e6a2 Add period at the end of the sentence
[MAILPOET-4744]
2022-11-07 02:22:21 -06:00
David Remer
774485d5f2 Deactivate 'update/activate' buttons when status is active/deactivting
[MAILPOET-4744]
2022-11-07 02:22:21 -06:00
David Remer
8f4d62b080 Hide search on Listing page
[MAILPOET-4779]
2022-11-07 02:14:40 -06:00
David Remer
8003a3e97f Do only trigger when segment is of type default
[MAILPOET-4771]
2022-11-05 07:40:43 +01:00
David Remer
cf572985a7 Add test to ensure WC checkout only triggers one flow
[MAILPOET-4771]
2022-11-05 07:40:43 +01:00
Rostislav Wolny
c4966a9cc1 Prevent flakiness when comparing time in NewsletterTest
When comparing the sentAt and processedAt dates there might be one second difference.
This may happen also in the application, because they are updated by separate queries.

This commit fixes the flakiness by comparing timestamps with delta 1 second instead of comparing date time strings.
[MAILPOET-4710]
2022-11-04 12:14:36 -03:00
Rodrigo Primo
c6e6b13731 Run Woo HPOS tests in all branches
This commit reverts 4256a18b82 so that the
Woo HPOS tests are executed in all branches instead of just trunk and
the Woo HPOS related branches.

[MAILPOET-4648]
2022-11-04 14:17:28 +01:00
Rodrigo Primo
975041d211 Stop allowing Woo HPOS tests to fail
This commit basically reverts all the changes from
5d8ccb96b4 to stop allowing Woo HPOS
related tests to fail on the CircleCI builds now that all the issues
were fixed and all tests should pass.

[MAILPOET-4648]
2022-11-04 14:17:28 +01:00
Rodrigo Primo
ea16472ab1 Use Codeception\TestInterface::getName() instead of Codeception\TestInterface::getMetadata()
This commit changes the code to use $event->getTest()->getName() instead
of $event->getTest()->getMetadata()->getName() to get the name of the
current test. This was necessary because the latter was returning null
for integration tests while the former works both for acceptance and
integration tests. I did not investigate why Codeception behaves this
way due to lack of time, there is a chance that this is a bug in
Codeception.

Since $event->getTest() returns an instance of TestInterface and this
class does not define getName() (but the call works probably due to some
magic method), it was necessary to edit phpstan.neon to skip a PHPStan
error.

[MAILPOET-4765]
2022-11-04 12:43:48 +01:00
Rodrigo Primo
713b0255f7 Add WooCommerce Subscriptions tests to $allowedToSkipList list
We skip those tests in some cenarios because WooCommerce Subscriptions
does not support Woo HPOS yet. When the code to skip them was added, we
forgot to add those tests to the list of tests that are allowed to skip
even in the trunk and release branches. This is done now in this commit.

[MAILPOET-4765]
2022-11-04 12:43:48 +01:00
Rodrigo Primo
2aa63bbb8e Fix typo
[MAILPOET-4765]
2022-11-04 12:43:48 +01:00
Rodrigo Primo
f6708d9526 Change the system that is used to prevent skipped tests
This commit changes the system that is used to prevent skipped tests
when CircleCI executes the integration tests against the trunk
and release branches. After this commit, the integration tests will use
the same system that is used by the acceptance tests. Besides
consolidating everything into a single system, this change is necessary
because we will need to know the name of the tests as we want to allow
some integration tests to be skipped in some circumstances, and this was
not possible with the old system.

[MAILPOET-4765]
2022-11-04 12:43:48 +01:00
Rodrigo Primo
65b56271d4 Update Woo HPOS build in test to the latest version
The latest version is 7.1.0-rc.2. Since this build is available on
WP.org, this commit also removes the custom code that we had to download
builds from GitHub. We can now use \RoboFile::downloadWooCommerceZip()
to download builds to test Woo HPOS.

[MAILPOET-4704]
2022-11-04 10:39:59 +01:00
Jan Jakes
c9c35d591b Update URLs in email templates
[MAILPOET-4758]
2022-11-04 10:51:23 +02:00
Jan Jakes
e9cfcb51ba Add missing strings
[MAILPOET-4758]
2022-11-04 10:51:23 +02:00
Jan Jakes
dc5e5b4f8b Use "automation" instead of "workflow" in user-facing strings
[MAILPOET-4758]
2022-11-04 10:51:23 +02:00
Jan Jakes
ccb5369c57 Use https everywhere for www.mailpoet.com
[MAILPOET-4758]
2022-11-04 10:51:23 +02:00
Jan Jakes
bfe3ff17af Fix translation strings
[MAILPOET-4758]
2022-11-04 10:51:23 +02:00
David Remer
756b0587bc Return an empty string for footer when on automation page
[MAILPOET-4755]
2022-11-04 06:26:21 +02:00
David Remer
af3d08ff36 Add method to detect automation pages
[MAILPOET-4755]
2022-11-04 06:26:21 +02:00
David Remer
a91913e633 Make 'Give feedback' translateable
[MAILPOET-4755]
2022-11-04 06:26:21 +02:00
David Remer
736d8a8b12 Add 'Give feedback' beacon ID to automation pages
[MAILPOET-4755]
2022-11-04 06:26:21 +02:00
alex-mailpoet
9b5bdb2206 Release 3.102.1 2022-11-03 22:49:42 +03:00