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
Jan Lysý
e828546fa9
Fix getting segment count with multiple filters for empty table
...
Method getSingleScalarResult throws an exception when a query returns no rows.
I used the method getOneOrNullResult instead.
[MAILPOET-3902]
2021-11-02 09:07:42 +01:00
Rostislav Wolny
73a9bed483
Replace deprecated doctrine methods in lib directory
...
[MAILPOET-3889]
2021-10-28 15:44:18 +02:00
Jan Lysý
8f7ef3aa51
Rename method for getting count of segments with more filters
...
[MAILPOET-3427]
2021-10-27 15:45:17 +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ý
0af5f111be
Add new function for getting count of segments with more filters
...
[MAILPOET-3427]
2021-10-27 15:45:17 +02:00
Jan Lysý
02ad7c9c8e
Add repository for DynamicSegmentFilters
...
[MAILPOET-3427]
2021-10-27 15:45:17 +02:00
Brezo Cordero
ff372667c2
Do not subscribe on synchronizeGuestCustomer
...
[MAILPOET-3598]
2021-10-18 13:12:14 +02:00
Brezo Cordero
683c5fa01f
Fix subscribe on Order Pay form
...
[MAILPOET-3598]
2021-10-18 13:12:14 +02:00
wxa
08364b81e1
Fix collation detection for subscriber engagement calculation
...
[MAILPOET-3851]
2021-10-18 12:42:18 +02:00
Pavel Dohnal
21839fc30b
Fix indentation of multiline function declarations
...
[MAILPOET-3732]
2021-09-17 12:17:36 +02:00
Pavel Dohnal
cdda3480ca
Make all constructor signatures multiline
...
[MAILPOET-3732]
2021-09-16 14:19:40 +02:00
Pavel Dohnal
b0b6f1ff35
Remove unnecessary check
...
[MAILPOET-3737]
2021-09-08 14:38:41 +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
aa4312dd3c
Fix incorrect counts in dynamic segments form
...
[MAILPOET-3761]
2021-09-08 12:02:26 +02:00
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