Commit Graph

17035 Commits

Author SHA1 Message Date
Rodrigo Primo
6a06b81dca Add option to set date_created when creating test Woo orders
[MAILPOET-4570]
2022-10-03 15:10:36 +02:00
David Remer
4ba1d3a5b5 segment_ids should not be a required argument
[MAILPOET-4689]
2022-10-03 11:22:34 +02:00
David Remer
617f256e8d roles argument should not be required
[MAILPOET-4689]
2022-10-03 11:22:34 +02:00
Jan Lysý
37d9bc5d0c Replace styles fixing with styles checking
[MAILPOET-4550]
2022-10-03 11:16:21 +02:00
Rodrigo Primo
83319949ef Use WooCommerce code instead of direct query to get highest order ID
[MAILPOET-4570]
2022-10-03 09:30:42 +02:00
Rodrigo Primo
7472a0a815 Change WooCommerceSyncTest to test also getHighestOrderId()
[MAILPOET-4570]
2022-10-03 09:30:42 +02:00
Rodrigo Primo
b6bdce3535 Change insertSubscriberFromOrder() to use WooCommerce methods
This commit changes
\MailPoet\Segments\WooCommerce::insertSubscriberFromOrder() to use
WooCommerce method instead of querying the database directly. This is
needed as WooCommerce is moving away from WP tables and creating its own
tables.

[MAILPOET-4570]
2022-10-03 09:30:42 +02:00
Rodrigo Primo
8e88a86f02 Refactor Segments\WooCommerce tests to stop using a WC_Order mock
We want to use real WooCommerce code instead of mocks for the tests that
are part of the woo test group and this change is necessary for a
subsequent commit that will modify
\MailPoet\Segments\WooCommerce::insertSubscriberFromOrder().

[MAILPOET-4570]
2022-10-03 09:30:42 +02:00
David Remer
64a8c3700c Fix loading of WpUserSegment
[MAILPOET-4690]
2022-09-30 15:28:03 +02:00
Brezo Cordero
051309cd32 Release 3.99.1 2022-09-30 09:38:15 +02:00
Jan Jakes
1640ca37dc Add migration for notification history records that are stuck in sending status
[MAILPOET-4685]
2022-09-29 15:19:09 -03:00
Jan Lysý
f9b521a42d Add check that newsletter history record is not deleted
[MAILPOET-4685]
2022-09-29 15:19:09 -03:00
Jan Lysý
4deb137063 Rename method in repository
[MAILPOET-4685]
2022-09-29 15:19:09 -03:00
Jan Lysý
58d32a68fb Use processedAt from the correct model
[MAILPOET-4685]
2022-09-29 15:19:09 -03:00
Jan Lysý
0551d02815 Add refreshing sending queue
Because we are still working with old model on some places, it's necessary to refresh both sides of the relation.
[MAILPOET-4685]
2022-09-29 15:19:09 -03:00
Jan Lysý
e73d936d91 Add test case for adding tags
[MAILPOET-4557]
2022-09-28 11:42:51 +02:00
Jan Lysý
88f427290b Add tagging subscribers subscribed via form
[MAILPOET-4557]
2022-09-28 11:42:51 +02:00
Jan Lysý
7e6f708df8 Create tags when do not exist
[MAILPOET-4557]
2022-09-28 11:42:51 +02:00
Jan Lysý
7644ce9833 Add token field input into tags panel
[MAILPOET-4557]
2022-09-28 11:42:51 +02:00
Jan Lysý
4b03ba6e40 Add tags to the MailPoet object
[MAILPOET-4557]
2022-09-28 11:42:51 +02:00
Jan Lysý
19c121a187 Add a new tags panel
[MAILPOET-4557]
2022-09-28 11:42:51 +02:00
Rodrigo Primo
3320d1687e Remove messages showing each truncated table
This commit removes the messages that were displayed during the initial
stages of the integration tests execution showing the tables that were
truncated (one line per table).

We decided to do this to make the output of the tests execution cleaner
and to make it easier to find the actual results of the tests without
having to scroll down quite a bit.

We still show a message marking the stage where the tables are truncated:
`Cleaning up database...`.

[MAILPOET-4682]
2022-09-27 12:30:13 -05:00
Jan Jakes
3d317e0772 Add missing site info variables
[MAILPOET-4665]
2022-09-27 16:10:33 +02:00
Jan Jakes
669d367082 Fix using undefined "window.is_woocommerce_active" variable
[MAILPOET-4665]
2022-09-27 16:10:33 +02:00
Jan Jakes
f2e5f7b1a9 Fix using undefined "window.subscribers_count" variable
[MAILPOET-4665]
2022-09-27 16:10:33 +02:00
David Remer
cfd83dd6b9 Improve error message.
[MAILPOET-2525]
2022-09-27 13:42:59 +02:00
Jan Jakes
5ad6c0be19 Release 3.99.0 2022-09-27 13:40:43 +02:00
 Ján Mikláš
a1c9be337f Update Black Friday content
- added timezone to sale duration
- changed date format
- link to annual billing period
- added tracking
- switch dates in "shouldDisplay" condition, so it reads as "from to" rather than "to from"
- capitalized button

[MAILPOET-4670]
2022-09-27 11:05:34 +02:00
Rostislav Wolny
b2e6cccc3a Update Black Friday notice for the current year campaign
[MAILPOET-4670]
2022-09-27 11:05:34 +02:00
Rostislav Wolny
d665688810 Update Circle CI machine to ubuntu-2204:2022.07.1
The newer machine contains newer versions of docker etc.
I might improve tests stability.
2022-09-27 10:09:51 +02:00
Rodrigo Primo
8faa33643c Remove old Segment model from Config\Populator
[MAILPOET-4306]
2022-09-26 14:18:01 +02:00
Rodrigo Primo
154a812776 Make SegmentsRepository::getWPUsersSegment() behave like Segment::getWPSegment()
This commit changes SegmentsRepository::getWPUsersSegment() so that it
behaves like Models\Segment::getWPSegment() and creates a WP segment
when none is found. This is needed to replace the latter with the former
in a subsequent commit.

[MAILPOET-4306]
2022-09-26 14:18:01 +02:00
Rodrigo Primo
ef66a21096 Remove old ScheduledTask model from Config\Populator
[MAILPOET-4306]
2022-09-26 14:18:01 +02:00
Rodrigo Primo
bc1ee3caa2 Remove old Subscriber model from Config\Populator
[MAILPOET-4306]
2022-09-26 14:18:01 +02:00
Rodrigo Primo
b15a6723cf Remove old SendingQueue model from Config\Populator
[MAILPOET-4306]
2022-09-26 14:18:01 +02:00
Rodrigo Primo
8d4a1140a9 Remove old Newsletter model from Config\Populator
[MAILPOET-4306]
2022-09-26 14:18:01 +02:00
Jan Lysý
2cf3f37f5c Fix creation notification history records
[MAILPOET-4679]
2022-09-26 13:23:28 +02:00
Oluwaseun Olorunsola
d50aee988e Extract logic to get email domain to Helpers class
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
a006701d78 PR feedback: add type hints, create new methods and save on extra api request
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
32a58301b0 Update test cases in ServicesTest
support sending congratulatory email when sender domain is verified but
no authorized email address

MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
9e19e157c8 Update test cases in AuthorizedEmailsControllerTest
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
392f06cab0 Refactor AuthorizedEmailsControllerTest to use custom mocks
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
31732dbf3b Update tests, update dependencies
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
5bcb80d2a0 Allow Congratulatory Mss Email with any email from verified domains
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
ff4852fdc2 Allow user resume sending when using email from verified domains
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
bd7da6b28c Allow user send with any email address from verified domain
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
bb42da6a87 Allow any email address from verified domain in Newsletter send field
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
d45aaa9157 Allow saving any email address from verified domain in settings
MAILPOET-4601
2022-09-26 11:13:40 +02:00
Oluwaseun Olorunsola
fed8099227 Do not throw an error for checkAuthorizedEmailAddresses
Allow sending from any email address in a verified domain

MAILPOET-4601
2022-09-26 11:13:40 +02:00
Rostislav Wolny
45257b7b99 Simplify subscribers last engagement migration by ignoring Woo data
[MAILPOET-4578]
2022-09-26 10:20:32 +02:00