Commit Graph

21722 Commits

Author SHA1 Message Date
Veljko
3f95c1f2fb Update tests 2024-02-18 09:27:48 +01:00
Veljko
42f484742a Finalize performance tests and update helper 2024-02-18 09:27:48 +01:00
Veljko
cb12c45135 Add new performance test automation welcome email 2024-02-18 09:27:48 +01:00
veljko
e1fbb8b996 Add performance test for custom automation 2024-02-18 09:27:48 +01:00
Veljko
627212f8a9 Save the existing test structure 2024-02-18 09:27:48 +01:00
Jan Jakes
dab719454a Fix invalid email address causing failed validation on subsequent flush
[MAILPOET-5910]
2024-02-16 12:24:35 -06:00
Jan Lysý
d1899090bc Create DomDocumentHelper to work with DOMDocument
[MAILPOET-5831]
2024-02-16 14:18:47 +01:00
Jan Lysý
9ab347080b Create customers to avoid failing tests
[MAILPOET-5909]
2024-02-16 08:29:27 +01:00
Pavel Dohnal
13e065fb70 Remove pull request stats
https://mailpoetdev.wordpress.com/2023/10/23/haiku-bi-weekly-meeting-october-10-2022/
2024-02-15 14:38:11 +01:00
Rostislav Wolny
3e3b50a037 Fix emoji encoding fallback for MySQL 8.0.28+
As of MySQL 8.0.28, there is no longer charset utf8, which was an alias for utf8mb3.
It is show as utf8mb3 so we need to check for both utf8 for older versions and utf8mb3 to cover newer versions.
See https://dev.mysql.com/doc/refman/8.0/en/charset-unicode-utf8.html
[MAILPOET-5888]
2024-02-15 13:45:35 +01:00
Jan Jakes
7d6e0c2ad5 Run nightly acceptance and integration latest test on MySQL 8
[MAILPOET-5888]
2024-02-15 13:45:35 +01:00
Pavel Dohnal
9cf2eef721 Register send status
[MAILPOET-5851]
2024-02-15 10:43:46 +01:00
Pavel Dohnal
e9d8610cda Remove unused method
[MAILPOET-5851]
2024-02-15 10:43:46 +01:00
Pavel Dohnal
31cb9e10c8 Use type property instead of comment
[MAILPOET-5851]
2024-02-15 10:43:46 +01:00
Pavel Dohnal
35d7dfc150 Use warning instead of error
[MAILPOET-5851]
2024-02-15 10:43:46 +01:00
Pavel Dohnal
063e87499e Display a notice when opening a sent email
[MAILPOET-5851]
2024-02-15 10:43:46 +01:00
Pavel Dohnal
05a7f1c9dd Disable send button if the email was sent
[MAILPOET-5851]
2024-02-15 10:43:46 +01:00
Pavel Dohnal
7a0cad8abf Update post status when email is sent
[MAILPOET-5851]
2024-02-15 10:43:46 +01:00
Brezo Cordero
ad6199d915 Update composer.phar
[MAILPOET-5902]
2024-02-14 15:53:39 +01:00
Jan Lysý
851a9626c9 Enable typography appearance
[MAILPOET-5840]
2024-02-14 14:43:10 +01:00
Jan Jakes
c35fbdf70a Create transactional emails with order created/completed/cancelled triggers in the UI
[MAILPOET-5725]
2024-02-14 14:36:22 +01:00
Jan Jakes
a17fc5e963 Identify all triggers with "woocommerce:" key prefix as WooCommerce triggers
[MAILPOET-5725]
2024-02-14 14:36:22 +01:00
Jan Jakes
d5d20d5219 Send transactional emails with order created/completed/cancelled triggers
[MAILPOET-5725]
2024-02-14 14:36:22 +01:00
Jan Jakes
738c35891a Simplify getSinglePayloadByClass, remove wrong check
[MAILPOET-5720]
2024-02-14 14:36:22 +01:00
Jan Jakes
8b40553d0b Do not check subscriber against segment when sending transactional email
[MAILPOET-5720]
2024-02-14 14:36:22 +01:00
dependabot[bot]
d9d3dd41c7 Bump composer/composer from 2.2.22 to 2.2.23 in /mailpoet
Bumps [composer/composer](https://github.com/composer/composer) from 2.2.22 to 2.2.23.
- [Release notes](https://github.com/composer/composer/releases)
- [Changelog](https://github.com/composer/composer/blob/main/CHANGELOG.md)
- [Commits](https://github.com/composer/composer/compare/2.2.22...2.2.23)

---
updated-dependencies:
- dependency-name: composer/composer
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-13 10:01:04 -06:00
Brezo Cordero
33fc16a04f Release 4.43.1 2024-02-13 08:40:51 -06:00
Jan Jakes
51a14a45d3 Use refreshAll() for updates, refresh subscribers/subscriber custom fields conditionally
[MAILPOET-5752]
2024-02-12 15:33:28 +01:00
alex-mpoet
014b8249bb Replace entityManager->clear with a helper, add cleanup to WP user sync
[MAILPOET-5752]
2024-02-12 15:33:28 +01:00
Rodrigo Primo
857ed69c61 Update integration test after change in \MailPoet\Segments\WP
In a previous commit, \MailPoet\Segments\WP was refactored to use
Doctrine instead of Paris. Paris would always convert subscriber emails
to lowercase. We don't do this with the Subscriber entity so it was
necessary to update this test after the refactor.

[MAILPOET-5752]
2024-02-12 15:33:28 +01:00
Rodrigo Primo
f0434d74e7 Ensure Doctrine entity cache is cleared after changing the database
ImportExportRepository::updateMultiple() changes subscribers by running
MySQL queries directly. Now that \MailPoet\Segments\WP uses Doctrine as
well this was causing a bug caught by our integration tests.

```
MailPoet\Subscribers\ImportExport\Import\ImportTest::testItSynchronizesWpUsers
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'mary'
+'Mary'

/wp-core/wp-content/plugins/mailpoet/tests/integration/Subscribers/ImportExport/Import/ImportTest.php:719
```

https://app.circleci.com/pipelines/github/mailpoet/mailpoet/16386/workflows/c3fa0cf4-a77d-41ab-a5cc-78d4b37d9228/jobs/278066/tests#failed-test-0

This test was failing because the Doctrine entities were not updated
after the import process ran and modified the subscribers directly in
the database. Running EntityManager::clear() after importing the
subscribers, forces Doctrine to query the database again to update the
entities and prevents this bug.

[MAILPOET-5752]
2024-02-12 15:33:28 +01:00
Rodrigo Primo
8318246e1e Improve the way WP users are deleted when running the tests
Doing this to be able to write tests that use any username or email as
it was done in the previous commit. Before the users needed to match the
pattern used inside WPTest::insertUser().

[MAILPOET-5752]
2024-02-12 15:33:28 +01:00
Rodrigo Primo
6f98634b94 Replace Subscriber and SubscriberSegment models with Doctrine in \MailPoet\Segments\WP
[MAILPOET-5752]
2024-02-12 15:33:28 +01:00
Rodrigo Primo
01cafdf719 Replace Idiomr\ORM with Doctrine in WPTest
[MAILPOET-5752]
2024-02-12 15:33:28 +01:00
Rodrigo Primo
374fbe6867 Replace Segment model with Doctrine in \MailPoet\Segments\WP
[MAILPOET-5752]
2024-02-12 15:33:28 +01:00
Rodrigo Primo
b63834b02b Change return type as the method always returns a segment
[MAILPOET-5752]
2024-02-12 15:33:28 +01:00
John Oleksowicz
0229eb76ef Only show tutorial icon on the editor
MAILPOET-5735
2024-02-12 13:16:11 +01:00
Jan Lysý
f8d99b34bf Check table exists before altering it
[MAILPOET-5896]
2024-02-12 11:50:48 +01:00
Jan Lysý
9f24247285 Add check if meta option is array
[MAILPOET-5891]
2024-02-12 11:15:36 +01:00
Jan Jakes
db2e61e987 Use "MAX(subscriber_id)" when fething "updated_at" to leverage DB indexes
[MAILPOET-5887]
2024-02-12 08:52:30 +02:00
Jan Jakes
60f1234b71 Check newsletter stats "sentAt" agains correct date (from subsriber task)
[MAILPOET-5887]
2024-02-12 08:52:30 +02:00
Jan Jakes
9db41a5210 Use scheduled task subsriber date for backfilling "sentAt" values
[MAILPOET-5887]
2024-02-12 08:52:30 +02:00
Jan Jakes
7814dda708 Backfill newsletter stats with processed subscribers even with failed status
[MAILPOET-5887]
2024-02-12 08:52:30 +02:00
Jan Jakes
0d71d96cfa Backfill missing sentAt from https://github.com/mailpoet/mailpoet/pull/5416
[MAILPOET-5887]
2024-02-12 08:52:30 +02:00
Jan Jakes
a5d44ba9b6 Backfill missing newsletter statistics from https://github.com/mailpoet/mailpoet/pull/5416
[MAILPOET-5887]
2024-02-12 08:52:30 +02:00
Jan Jakes
78732f8a5d Update also sending queue counts when marking stuck newsletters as sent
[MAILPOET-5887]
2024-02-12 08:52:30 +02:00
Jan Jakes
2804125827 Update also "sent_at" when marking stuck newsletters as sent
[MAILPOET-5887]
2024-02-12 08:52:30 +02:00
Jan Jakes
74f95b972f Split migration code into private methods
[MAILPOET-5887]
2024-02-12 08:52:30 +02:00
Jan Jakes
e3214e441b Add migration to fix sending tasks stuck in "invalid" state
[MAILPOET-5887]
2024-02-12 08:52:30 +02:00
John Oleksowicz
bbe471e653 Use standard formatting for env.sample
MAILPOET-4237
2024-02-08 11:13:35 -06:00