Commit Graph

65 Commits

Author SHA1 Message Date
wxa
0779372c49 Update tests
[MAILPOET-3929]
2021-12-23 09:53:03 +01:00
wxa
c86443a08c Update tests
[MAILPOET-4007]
2021-12-23 08:48:36 +01:00
John Oleksowicz
df119d18a0 Refactor duplicate segment name checks
This creates a single method we can rely on to check for the uniqueness
of a segment name and refactors places where we had duplicate code to
use the new method.

[MAILPOET-3998]
2021-12-22 09:36:56 +01:00
Pavel Dohnal
65ef9b6572 More comparison options for custom field segment
[MAILPOET-4008]
2021-12-20 12:40:25 +01:00
Pavel Dohnal
c13727a02b Process multiple newsletters with operator NONE
[MAILPOET-3950]
2021-12-20 09:48:56 +01:00
Pavel Dohnal
57560bddaf Process multiple newsletters with operator ALL
[MAILPOET-3950]
2021-12-20 09:48:56 +01:00
Pavel Dohnal
b47842c461 Process multiple newsletters with operator ANY
[MAILPOET-3950]
2021-12-20 09:48:56 +01:00
Pavel Dohnal
00ed9ca920 Pass an array instead of multiple optional arguments
[MAILPOET-3950]
2021-12-20 09:48:56 +01:00
Pavel Dohnal
fc472396e0 Use a better assert function
[MAILPOET-3950]
2021-12-20 09:48:56 +01:00
Pavel Dohnal
9fc2b6fe08 Add more testing data
[MAILPOET-3950]
2021-12-20 09:48:56 +01:00
Pavel Dohnal
0b4614be1e Move clicked any link to a new class
[MAILPOET-3950]
2021-12-20 09:48:56 +01:00
Brezo Cordero
87a540b883 Move WC lookup tables schema to Database helper
[MAILPOET-3952]
2021-12-20 09:29:41 +01:00
Brezo Cordero
de2b04b26e Add instanceof check on test
[MAILPOET-3952]
2021-12-20 09:29:41 +01:00
Brezo Cordero
67036f5d74 Add Any and None conditions to "is in country" segment
[MAILPOET-3952]
2021-12-20 09:29:41 +01:00
Brezo Cordero
06a4be4214 Use WC lookup tables for improved performance
This commit is part of a task to allow multiple values in "is in country" segment. This commit replaces the queries with the more performant ones written by @lysyjan. It also creates the lookup tables on the integration database and updates the test.

[MAILPOET-3952]
2021-12-20 09:29:41 +01:00
Brezo Cordero
b04cb41921 Make country always array
This commit is part of a task to allow multiple values in "is in country" segment. This commit first changes the string value $country to Array, adding a check for backwards compatibility and an integration test.

[MAILPOET-3952]
2021-12-20 09:29:41 +01:00
Pavel Dohnal
c1f4e0bf32 Make sure the user roles is always array
[MAILPOET-3955]
2021-12-16 14:46:16 +01:00
Pavel Dohnal
c5d994dbf0 Make the segment work with ALL condition
[MAILPOET-3955]
2021-12-16 14:46:16 +01:00
Pavel Dohnal
d541edc865 Make the segment work with NONE condition
[MAILPOET-3955]
2021-12-16 14:46:16 +01:00
Pavel Dohnal
d43905e77e Use a better assert
[MAILPOET-3955]
2021-12-16 14:46:16 +01:00
Pavel Dohnal
6d5d5ccfda Make the segment work with ANY condition
[MAILPOET-3955]
2021-12-16 14:46:16 +01:00
Pavel Dohnal
c2e841fd3d Make role always array
[MAILPOET-3955]
2021-12-16 14:46:16 +01:00
Pavel Dohnal
5fc8d51720 Add a filter for lists dynamic segment
[MAILPOET-3502]
2021-11-30 12:33:38 +01:00
wxa
28061a8c8b Add tests
[MAILPOET-3607]
2021-11-29 13:02:49 +01: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
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
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
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