Commit Graph

20858 Commits

Author SHA1 Message Date
Jan Jakes
2db1157c63 Increase performance tests mysql start timeouts for data import
[MAILPOET-4950]
2023-04-05 11:32:08 +02:00
Jan Jakes
6141e4a57a Download and import data for performance tests
[MAILPOET-4950]
2023-04-05 11:32:08 +02:00
Rodrigo Primo
7680e879d0 Add brand templates feature flag to JS
[MAILPOET-5192]
2023-04-05 11:19:20 +02:00
Rodrigo Primo
22aa07093c Add brand templates feature flag
[MAILPOET-5192]
2023-04-05 11:19:20 +02:00
Rostislav Wolny
b47fc02ca4 Use underprivileged key for stats reporting also when saving settings
[MAILPOET-5165]
2023-04-04 18:45:41 +02:00
Rostislav Wolny
910eb812c0 Improve variable name in WordPress cron trigger check
[MAILPOET-5165]
2023-04-04 18:45:41 +02:00
Rostislav Wolny
cbd5c443f2 Ensure that subscriber stats are sent even for valid underprivileged keys
[MAILPOET-5165]
2023-04-04 18:45:41 +02:00
Jan Jakes
4af1b970e3 Release 4.11.0 2023-04-04 13:57:23 +02:00
Jan Jakes
66259fc9b6 Reintroduce AWS SES sending error test with actual SES response
[MAILPOET-5190]
2023-04-04 06:47:26 +02:00
John Oleksowicz
72c18782cc Simplify and move test to more appropriate spot
MAILPOET-5190
2023-04-04 06:47:26 +02:00
Rodrigo Primo
13e79082a0 Restore subject and preview text tooltips
We used to display a tooltip next to the fields subject and preview text
in the email editor. Those tooltips were accidentally in 4367f44. The
referenced commit changed the code and tried to get the elements used to
display the tooltip before they were present in the browser.

This commit fixes this problem by making sure that the code tries to get
those elements after StartApp._appView.showChildView() runs and the
elements are present.

[MAILPOET-5151]
2023-04-03 14:31:14 +02:00
Rodrigo Primo
332408f4f4 Make sure newsletter segment entities are deleted when list is deleted
This commit adds code to delete corresponding newsletter segment
entities when a given list is deleted. This is necessary to fix an error
when duplicating a newsletter that was sent with a list that was
deleted.

Without this change users see the following SQL error:

```
An exception occurred while executing ‘UPDATE wp_mailpoet_newsletter_segment SET segment_id = ?, updated_at = ? WHERE id = ?’ with params [null, “2023-03-23 09:07:52”, 66]: SQLSTATE[23000]: Integrity constraint violation: 1048 Column ‘segment_id’ cannot be null
```

[MAILPOET-5153]
2023-04-03 14:15:17 +02:00
Oluwaseun Olorunsola
feba707c76 Use dependency injection (DI) for process shortcodes
MAILPOET-5110
2023-04-03 13:36:04 +02:00
Oluwaseun Olorunsola
c75dc63cc5 Process Shortcodes in WooCommerce custom template
MAILPOET-5110
2023-04-03 13:36:04 +02:00
Brezo Cordero
685af267cb Use constant, improve test and naming
[MAILPOET-5131]
2023-04-03 12:57:31 +02:00
Brezo Cordero
fb93c73a34 Add premium key verification
[MAILPOET-5131]
2023-04-03 12:57:31 +02:00
Brezo Cordero
c0eed5b919 Integration tests for provisioning
[MAILPOET-5131]
2023-04-03 12:57:31 +02:00
Brezo Cordero
fc8837e03c Filter for license provisioning
This commit adds a filter that will provision the API key. It only runs on WP.com sites with plugins.

[MAILPOET-5131]
2023-04-03 12:57:31 +02:00
Sam Najian
397232e932 Set status of scheduled_task to invalid if it has not subs
[MAILPOET-5134]
2023-04-03 11:53:49 +02:00
Sam Najian
cb786ee57f Write acceptance test to replicate the bug
[MAILPOET-5134]
2023-04-03 11:53:49 +02:00
Rodrigo Primo
47bbba4898 Remove mailpoet/.nvmrc
This file is not needed anymore, as in
7c373a85ba we added a .nvmrc file to the
root directory of this repository.

[MAILPOET-5186]
2023-04-03 11:02:42 +02:00
John Oleksowicz
1d87c4377e Ensure purchase date fields are properly validated
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
4eaaa51bce Fix type issue
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
0c109ea34c Fix rebase issue
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
df3b790c0b Prettier fix
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
03da98e5df Avoid simple text replacements in SQL if possible
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
1cab4a944a Use standard joins where possible
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
509a79fd1a Proper method naming
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
68902a206d Extract more to helpers
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
26ec430942 Refactor to use DI instead of inheritance
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
fa43495d81 Minor refactoring
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
c747b71829 Simplify subquery
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
d505bffcfd Refactor to use shared date functionality
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
caba21b8af Fix relative date calculation
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
d52113d104 Extract shared date filter functionality
MAILPOET-4986
2023-04-03 10:20:02 +02:00
John Oleksowicz
37226202bc Implement purchase date dynamic filter
MAILPOET-4986
2023-04-03 10:20:02 +02:00
Sam Najian
398f8ffddd Accomadate the translations placement change in WP6.2
- Compatible WPCLI is installed
- Translation folder is make writable

[MAILPOET-5073]
2023-03-30 15:58:49 +02:00
Sam Najian
8ea409cb22 Verify language switch was successful
[MAILPOET-5073]
2023-03-30 15:58:49 +02:00
Sam Najian
8c13b726f3 Be more specific whens electing Checkout block
[MAILPOET-5073]
2023-03-30 15:58:49 +02:00
Sam Najian
be41b1e896 Update closeDialog method to use the new aria-label
In new version, arial-label has changed from Close dialog
to Close

[MAILPOET-5073]
2023-03-30 15:58:49 +02:00
Veljko
9c99fe733b Refactor k6 to use chai.js
[MAILPOET-5156
2023-03-30 14:43:31 +02:00
Veljko
7b90dff4b6 First attempt to try and make checks failing 2023-03-30 14:43:31 +02:00
David Remer
5c2b150d63 Hide WooCommerce integration until transactional emails are ready
[MAILPOET-4935]
2023-03-30 13:17:30 +02:00
David Remer
a3ebd0695b Introduce Order to Segment transformer
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
9738bd3ecd Introduce general step error
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
a74c5993a0 Prevent error when no field is specified
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
8ba694e30d Use plural for subject transformers in test
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
328b5b1475 Remove private getSubjectKeysForSingleKey method
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
e2777aebc3 Use plural for array of subject transformers
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
19b5abc171 Use array_keys $all to get the keys
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00