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ý
dc1ba7ede4
Add type casting for counts in groups of segments
...
[MAILPOET-3372]
2021-02-05 14:25:47 +01:00
Jan Lysý
9e53afb1c1
Use Carbon from MailPoetVendor namespace in SegmentsRepository
...
[MAILPOET-3400]
2021-02-02 12:45:34 +01:00
Jan Lysý
6299d2736e
Forbid restore and trash action for WP list in bulk action
...
[MAILPOET-3169]
2021-02-01 15:39:35 +01:00
Jan Lysý
b03f301a5a
Use Doctrine model in trash, restore and delete
...
[MAILPOET-3169]
2021-02-01 15:39:35 +01:00
Jan Lysý
aff7de4659
Use Doctrine in bulk actions for Segments
...
[MAILPOET-3169]
2021-02-01 15:39:35 +01:00
Jan Lysý
b9474700b8
Use a query for duplication of segment subscribers
...
[MAILPOET-3170]
2021-01-26 17:03:48 +01:00
Jan Lysý
c579a35980
Use DB transaction when duplicating Segment
...
[MAILPOET-3170]
2021-01-26 17:03:48 +01:00
Jan Lysý
544abf5b22
Fix status of new subscribers in duplicated Segment
...
[MAILPOET-3170]
2021-01-26 17:03:48 +01:00
Jan Lysý
e08e19902b
Use Doctrine for Segment duplication
...
[MAILPOET-3170]
2021-01-26 17:03:48 +01:00
Rostislav Wolny
b7914a3ff6
Fix subscribers without segments count in subscribers filter
...
[MAILPOET-3164]
2021-01-25 09:17:17 +01:00
Rostislav Wolny
8456581695
Refactor segment lists fetching methods to separate repository
...
[MAILPOET-3164]
2021-01-25 09:17:17 +01:00
Rostislav Wolny
cd578e6475
Refactor fetching list of subscribers for export
...
[MAILPOET-3146]
2021-01-25 09:17:17 +01:00
Rostislav Wolny
6c7000430d
Refactor getting count of subscribers without segment to repository
...
[MAILPOET-3164]
2021-01-25 09:17:17 +01:00
Rostislav Wolny
ade48fc359
Load list of segments on form editor page using doctrine
...
[MAILPOET-3164]
2021-01-25 09:17:17 +01:00
Rostislav Wolny
28acdd629e
Add method for fetching list of segments with subscribers count
...
[MAILPOET-3164]
2021-01-25 09:17:17 +01:00
Pavel Dohnal
15528d84e0
Fix displaying woocommerce static segment in dynamic segments
...
[MAILPOET-3361]
2021-01-11 13:24:12 +01:00
Pavel Dohnal
822550f3c0
Refactor dynamic segments listings to doctrine
...
[MAILPOET-3361]
2021-01-11 13:24:12 +01:00
Pavel Dohnal
1d6cf56fd9
Refactor subscriber statistics to doctrine
...
[MAILPOET-3168]
2021-01-08 10:37:50 +01:00
Pavel Dohnal
de6e0e5adb
Move groups definitions
...
[MAILPOET-3168]
2021-01-08 10:37:50 +01:00
Pavel Dohnal
d93b168116
Refactor segments listings to doctrine
...
[MAILPOET-3168]
2021-01-08 10:37:50 +01:00
Jan Lysý
b67c216e31
Fix update segment when the name is the same
...
[MAILPOET-3343]
2020-12-21 10:03:08 +01:00
Jan Lysý
79abec8f13
Move method for create or update Segment to repository
...
[MAILPOET-3167]
2020-12-07 14:48:58 +01:00
Jan Lysý
a75575baf9
Use SegmentEntity in endpoint Segment::save()
...
[MAILPOET-3167]
2020-12-07 14:48:58 +01:00
Rostislav Wolny
d684dc0543
Remove unnecessary new user caching from WP segment
...
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Rostislav Wolny
48ba20602e
Handle batch sync of new users for disabled WP users segment
...
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Rostislav Wolny
6fcb485e61
Forbid scheduling of welcome email form trashed segment or subscriber
...
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Rostislav Wolny
65ca040a20
Always inject welcome emails scheduler
...
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Rostislav Wolny
3dcb939432
Handle adding new WP users to disabled WP segment
...
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Rostislav Wolny
f960f7f928
Add ability to distinguish new subscriber in WP user sync
...
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Rostislav Wolny
645f888186
Refactor WP Users segment controller to injectable service
...
[MAILPOET-3141]
2020-11-09 12:56:17 +01:00
Jan Lysý
b8d66c8cd8
Disable restore trashed WooCommerce subscribers
...
[MAILPOET-3138]
2020-10-20 17:22:06 +02:00
Jan Lysý
d5abc80346
Disable restore trashed WP subscribers
...
[MAILPOET-3138]
2020-10-20 17:22:06 +02:00
Pavel Dohnal
9e8ccd2c17
Use native array_column
...
[MAILPOET-3173]
2020-10-12 10:10:03 +02:00
Rostislav Wolny
946a17ed93
Fix subscribers in segment count query
...
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
Rostislav Wolny
b37d1f8c03
Allow all subscription statuses in WC segments
...
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
Rostislav Wolny
cd295c7aec
Allow fetching count of subscribers with status
...
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
Rostislav Wolny
694d1fae10
Refactor SubscribersFinder to be always injected by container
...
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
Rostislav Wolny
c952ef9542
Use only Listing repository in subscribers listing API
...
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
Rostislav Wolny
5aa4e880e6
Refactor static/dynamic condition to match old behavior
...
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
Rostislav Wolny
0437236cf1
Refactor subscriber finder to use new repository
...
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
Rostislav Wolny
231b7eb2a9
Add SegmentSubscriberRepository with basic methods
...
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
Rostislav Wolny
a1b3677223
Implement WooCommerce category purchase segment filter in Doctrine
...
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
Rostislav Wolny
750014716e
Implement WooCommerce product segment filter using Doctrine
...
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
Rostislav Wolny
00db901d94
Implement email actions filter in Doctrine
...
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
Rostislav Wolny
cf76480ab3
Implement userRole filter using Doctrine
...
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
Rostislav Wolny
d2e46c17ed
Add dummy dynamic segments filters
...
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
Rostislav Wolny
bf053edbfb
Refactor mailpoet_subscribers_in_segment_apply_bulk_action_handlers to direct calls
...
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
Rostislav Wolny
1a56b2534e
Refactor mailpoet_get_subscribers_listings_in_segment_handlers to direct calls
...
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00
Rostislav Wolny
dd7390ec73
Refactor mailpoet_get_subscribers_in_segment_finders hook to direct calls
...
[MAILPOET-3077]
2020-09-28 14:26:53 +02:00