Commit Graph

130 Commits

Author SHA1 Message Date
Rostislav Wolny
4a76827a77 Fix fetching count of segments with multiple filters
We needed to get number of rows which meet the condition.
I couldn't use DQL since it doesn't allow a subquery in FROM
so I rewrote the query using DBAL level query builder.
[MAILPOET-3922]
2021-11-08 11:34:56 +01:00
Rostislav Wolny
b8d72522a2 Replace deprecated doctrine methods in tests directory
[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
Pavel Dohnal
f1101f22dd Delete duplicities in the code
The old model did update already created data
But doctrine tried to create a new row but it failed
because of duplicity. We create a subscriber row
using a hook.

[MAILPOET-3821]
2021-10-28 15:19:27 +02:00
Jan Lysý
6e6ba3e7a1 Use new signature of the dynamicSegmentFilterData constructor
[MAILPOET-3427]
2021-10-27 15:45:17 +02:00
Jan Lysý
cc05b945b4 Use new properties in repository
[MAILPOET-3427]
2021-10-27 15:45:17 +02:00
Jan Lysý
8d2eed4f71 Add integration test
[MAILPOET-3427]
2021-10-27 15:45:17 +02:00
Brezo Cordero
00e901cbea Add back check on tests
[MAILPOET-3598]
2021-10-18 13:12:14 +02:00
Brezo Cordero
cea0e98422 Add back check on tests
[MAILPOET-3598]
2021-10-18 13:12:14 +02:00
Brezo Cordero
ff372667c2 Do not subscribe on synchronizeGuestCustomer
[MAILPOET-3598]
2021-10-18 13:12:14 +02:00
Brezo Cordero
910e8fb3a7 Add optin option to test synchronize guest
[MAILPOET-3598]
2021-10-18 13:12:14 +02:00
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