Commit Graph

277 Commits

Author SHA1 Message Date
Brezo Cordero
b2857cbf40 Refactor code that checks for list deletion with form
Move segment deletion to new function doTrash to avoid calling methods twice on individual segment deletion. Refactor acceptance test.

[MAILPOET-3661]
2021-08-16 09:42:08 +02:00
Brezo Cordero
d9186e4230 Prevent deleting a list if attached to a form
[MAILPOET-3661]
2021-08-16 09:42:08 +02:00
Rostislav Wolny
47ef8944f8 Do not set status in sync of registered customer
Subscriber status is already handled when the user is added to
WordPress Users list.
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Rostislav Wolny
12c9019939 Mark customers without optin as unsubscribed
[MAILPOET-3657]
2021-08-09 16:51:27 +02:00
Rodrigo Primo
e59992cc16 Fix checkGenericClassInNonGenericObjectType PHPStan errors
This commit removes the checkGenericClassInNonGenericObjectType flag
from PHPStan configuration files and fixes all associated errors in our
code base.

[MAILPOET-3236]
2021-08-09 12:58:56 +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ý
ef1a3072c7 Return zero when sum is null
[MAILPOET-3646]
2021-07-12 11:51:39 +02:00
Jan Lysý
a6dc552cdc Use new controller with subscribers counts
[MAILPOET-3646]
2021-07-12 11:51:39 +02:00
Jan Lysý
036f110953 Unify stats queries
[MAILPOET-3646]
2021-07-12 11:51:39 +02:00
Jan Lysý
40a511c641 Use transient cache for count of subscribers in lists
[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ý
3a1e057e67 Move the aggregate function count to the having clause
[MAILPOET-3668]
2021-06-22 11:58:45 +02:00
Jan Lysý
62d6881966 Fix name of getter in SegmentEntity
[MAILPOET-3469]
2021-06-21 14:02:04 +02:00
Jan Lysý
38d643a9fd Remove irrelevant comment from SegmentsRepository
[MAILPOET-3469]
2021-06-21 14:02:04 +02:00
Jan Lysý
3fdbb050cd Add getter for connect operand to SegmentEntity
[MAILPOET-3469]
2021-06-21 14:02:04 +02:00
Jan Lysý
61fc1f1b5e Fix removing redundant filters
[MAILPOET-3469]
2021-06-21 14:02:04 +02:00
Jan Lysý
7332fdcd6e Use random string as suffix when filter id is null
[MAILPOET-3469]
2021-06-21 14:02:04 +02:00
Jan Lysý
ddcf35eeff Add constant with type for segment of type UserRole
[MAILPOET-3469]
2021-06-21 14:02:04 +02:00
Jan Lysý
2490396a9e Allow saving more than one dynamic filter per segment
[MAILPOET-3469]
2021-06-21 14:02:04 +02:00
Jan Lysý
f4c2e4880a Add dynamic filter connect type to response
[MAILPOET-3469]
2021-06-21 14:02:04 +02:00
Rostislav Wolny
a3b420d65c Fix SQL query for subscribers without list
[MAILPOET-3647]
2021-06-07 14:36:13 +02:00
Jan Lysý
050688e155 Schedule segments recalculation every day
[MAILPOET-3633]
2021-05-24 09:56:38 +02:00
Pavel Dohnal
33ced0d9a1 Fix checkbox field
[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
0a1fc128b7 Add a code comment
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
42ada2df95 Add an acceptance test
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
251bb872f6 Fix connecting query
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
cb8d88c0c3 Fix passing data
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
1e65c88035 Add field for date
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
a5f3a06110 Add backend mapping and validation
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
7e477a4c9c Register filter service in filter handler
[MAILPOET-3220]
2021-05-19 10:07:25 +02:00
Pavel Dohnal
e3bd23a2ee Refactor filter factory into multiple functions
[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ý
673436bc3f Fix calculating email opens for dynamic segments
[MAILPOET-3612]
2021-05-17 10:22:41 +02:00
Jan Lysý
6d0486cfc5 Add calculation segment score
[MAILPOET-3533]
2021-05-12 14:42:22 +02:00
Jan Lysý
f4ce284e5c Add engagement score into segment list
[MAILPOET-3533]
2021-05-12 14:42:22 +02:00
Rostislav Wolny
d4fbe95aef Refactor SQL for segment in country to use join instead subselect
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
Rostislav Wolny
a3935d3e04 Add strict_types check to WooCommerce country filter class
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
Rostislav Wolny
47eb085d2a Add backend mapping and validation for customer country segment
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
Rostislav Wolny
b54eb9af41 Register country filter service in filter handler
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
Rostislav Wolny
846f51c5d6 Refactor filter selection from filter handler to factory class
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00
Rostislav Wolny
b177330856 Add customer country segment filter service
[MAILPOET-3226]
2021-05-11 14:25:16 +02:00