Commit Graph

120 Commits

Author SHA1 Message Date
Pavel Dohnal
d1b2458227 Add # of machine opens segment
[MAILPOET-3737]
2021-09-08 14:38:41 +02:00
Pavel Dohnal
2ab5f04f46 Add segment for machine opens
[MAILPOET-3737]
2021-09-08 14:38:41 +02:00
Pavel Dohnal
cdd3ff5178 Use only non-machine opens for segment # open
[MAILPOET-3737]
2021-09-08 14:38:41 +02:00
Pavel Dohnal
49c9dd5f79 Use only non-machine opens for segment open
[MAILPOET-3737]
2021-09-08 14:38:41 +02:00
Rostislav Wolny
12c9019939 Mark customers without optin as unsubscribed
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Rostislav Wolny
c182e953ef Prevent trashing customer users when WP segment is inactive
[MAILPOET-3695]
2021-08-09 12:36:29 +02:00
Jan Lysý
9f9706e319 Clear cache in failing integration tests
[MAILPOET-3646]
2021-07-12 11:51:39 +02:00
Rostislav Wolny
65b834a9ff Update renamed NotCamelCaps rule
[MAILPOET-3658]
2021-07-06 13:29:00 +02:00
Jan Lysý
acf76e2905 Remove changing WP users as unconfirmed
This commit should revert functionality from the ticket MAILPOET-2134

[MAILPOET-3515]
2021-06-22 16:23:05 +02:00
Jan Lysý
fcfe7f5bea Fix integration test for FilterHandler
[MAILPOET-3469]
2021-06-21 14:02:04 +02:00
Jan Lysý
746de18605 Add test cases for SegmentSaveController
[MAILPOET-3469]
2021-06-21 14:02:04 +02:00
Jan Lysý
471ed5cc18 Update integration test for SegmentSaveController
[MAILPOET-3469]
2021-06-21 14:02:04 +02:00
Pavel Dohnal
9c29bd945d Make the data in test stable
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
ede9f3d995 Use snake case for data that are transfered on server
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
4fff3ff56c Add filter for year month day date
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
8881e1d96c Add filter for year month date
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
09167e1440 Unify saving values with custom fields table
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
67c2289f4b Add filter for year date
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
28013b2987 Add filter for month date
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
f1934b3753 Add filter for checkbox custom fields
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
246d323174 Add filter for radio custom fields
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
ce6348cb71 Add filter for text custom fields
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Jan Lysý
5789dd4455 Update integration test for email opens filter
[MAILPOET-3612]
2021-05-17 10:22:41 +02:00
Pavel Dohnal
fb4f851cd4 Add filter for segment
[MAILPOET-3222]
2021-05-03 14:31:23 +02:00
Jan Lysý
f2e39083a5 Update tests for the new default WP subscriber status
[MAILPOET-3483]
2021-05-03 10:24:25 +02:00
Rostislav Wolny
a6dcd7a22c Exclude non-content related clicks from segment clicked any
[MAILPOET-3223]
2021-04-29 16:33:05 +02:00
Rostislav Wolny
4bfbfada6e Add support for clicked any to email type segment filter
[MAILPOET-3223]
2021-04-29 16:33:05 +02:00
Jan Lysý
36c88c40c9 Add integration test on the total spent filter
[MAILPOET-3227]
2021-04-26 11:29:48 +02:00
Rodrigo Primo
a983679566 Replace generic assertions with more specific ones in WooCommerceNumberOfOrdersTest
[MAILPOET-3228]
2021-04-20 08:42:21 +02:00
Rodrigo Primo
637a32ef77 Add integration tests for the WooCommerce number of orders segment
[MAILPOET-3228]
2021-04-20 08:42:21 +02:00
Pavel Dohnal
8903b04203 Improve test checks
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Pavel Dohnal
c1a51d8be4 Add filter class
[MAILPOET-3224]
2021-04-19 16:57:50 +02:00
Rostislav Wolny
53cb51b5dd Update customer names on checkout using order/user data
This change replaces slow SQL queries used for updating customer names
with modification of those names using loaded data and subscriber model.
[MAILPOET-3565]
2021-04-19 09:37:26 +02:00
Jan Lysý
966d6f36ff Add integration test for SegmentDependencyValidator
[MAILPOET-3477]
2021-04-12 11:11:25 +02:00
wxa
42adfa784a Remove old dynamic segments code
[MAILPOET-3484]
2021-03-29 14:31:44 +02:00
Rostislav Wolny
51e5206ed8 Fix trashing check to check also welcome and automatic emails
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Rostislav Wolny
a264951904 Skip used segments when bulk trashing segments
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Rostislav Wolny
63a3c9b785 Add test for bulk trashing in segments repository
[MAILPOET-3463]
2021-03-29 12:42:21 +02:00
Jan Lysý
9ffc3372e6 Add test on count of subscribers by ids
[MAILPOET-3425]
2021-03-29 12:10:05 +02:00
wxa
791c3f7a53 Remove unused currentFilter argument
[MAILPOET-3499]
2021-03-24 09:58:25 +01:00
wxa
872ff71f17 Fix first and last name sync on WooCommerce checkout
[MAILPOET-3499]
2021-03-24 09:58:25 +01:00
Pavel Dohnal
ce48153b12 Fix code using the combined segments
[MAILPOET-3212]
2021-03-23 15:58:34 +01:00
Pavel Dohnal
5b45bdac1e Enable joining segments using and/or
[MAILPOET-3212]
2021-03-23 15:58:34 +01:00
Pavel Dohnal
ceae8e17aa Make parameters unique
[MAILPOET-3212]

We need to be able to connect the same segments:
users who are editor or administrator
2021-03-23 15:58:34 +01:00
Pavel Dohnal
7a98abdead Connect dynamic segments filters using UNION select
[MAILPOET-3212]
2021-03-23 15:58:34 +01:00
Rostislav Wolny
9fdebdb4d7 Refactor api for creating/updating dynamic segments
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rostislav Wolny
40c9f047be Refactor segment filter data to embedded object
[MAILPOET-3177]
2021-03-10 15:20:32 +01:00
Rodrigo Primo
844ea3f6d8 Truncate first and last names before adding to wp_mailpoet_subscribers
MailPoet syncs users from wp_users to wp_mailpoet_subscribers. The
problem is that WP stores first and last names in a longtext field and
MP uses a varchar(255) field. This was causing a fatal error when
synchronizing names over 255 characters. This commit fixes this problem
by using SUBSTRING() to make sure that the 255 characters limit is
enforced when adding values to the columns first_name and last_name of
the wp_mailpoet_subscribers table. This should get rid of the fatal
error and it shouldn't be a problem to most users as it is unlikely that
a real user has a first or last name that is longer than 255 characters.

[MAILPOET-3246]
2021-03-02 16:09:47 +01:00
Jan Lysý
f5987359c7 Add integration test on SegmentSaveController
[MAILPOET-3170]
2021-01-26 17:03:48 +01:00
Jan Lysý
180a238b40 Use timestamp for DateTime compare in Segments WPTest
[MAILPOET-3367]
2021-01-25 11:52:25 +01:00