Rostislav Wolny
9e03e3164e
Fix populator integration test
...
The transient needs to be initially reset. Test fail when run multiple times.
[MAILPOET-3890]
2021-12-13 09:36:43 +01:00
Rostislav Wolny
305477ccf4
Remove forgotten codecept_debug
...
[MAILPOET-3890]
2021-12-13 09:36:43 +01:00
Rostislav Wolny
ff60e6daa3
Fix doctrine connection factory test
...
SELECT 1 returns integer in PHP8.1 and string in PHP8.0 and below.
[MAILPOET-3980]
2021-12-13 09:36:43 +01:00
Rostislav Wolny
b3795eab1a
Ensure BC for data types in url data
...
Due to a bugfix in PHP8.1(https://bugs.php.net/bug.php?id=80808 )
PDO now returns correctly integers where it used to return string.
In this commit ensures that data passed to URL will be passed as strings
in order to maintain backward compatibility.
[MAILPOET-3980]
2021-12-13 09:36:43 +01:00
Rostislav Wolny
cf58051ea8
Fix $GLOBALS serialization issue in integration tests
...
[MAILPOET-3890]
2021-12-13 09:36:43 +01:00
Rostislav Wolny
2340da94fe
Replace deprecated strftime
...
[MAILPOET-3980]
2021-12-13 09:36:43 +01:00
Rostislav Wolny
2b4f8de61a
Fix segment selections
...
PHP8.1 fixed a PDO bug (https://bugs.php.net/bug.php?id=80808 ) that was causing
that integer columns were fetched as strings.
[MAILPOET-3980]
2021-12-13 09:36:43 +01:00
Rostislav Wolny
fc4a11a6a7
Move extension for test stats to tests/_support
...
Package redcomponent/teststatistics was last updated 6 years ago.
In this commit I move it from vendor to tests/_support a fix deprecation
warnings that caused failures in unit and integration tests.
[MAILPOET-3890]
2021-12-13 09:36:43 +01:00
Rostislav Wolny
8c5abd4f86
Update doctrine/dbal and doctrine/orm
...
[MAILPOT-3980]
2021-12-13 09:36:43 +01:00
Rostislav Wolny
df6a955f0c
Fix deprecation warnings coming from pQuery library
...
[MAILPOET-3980]
2021-12-13 09:36:43 +01:00
Rostislav Wolny
539f518f64
Move pquery to 3rd party libs
...
The project is abandoned so the easiest way for patching it is adding it to the lib-3rd-party.
[MAILPOE-3980]
2021-12-13 09:36:43 +01:00
Rostislav Wolny
a96fc01c56
Fix deprecation warnings in idiorm
...
Some interfaces require return type hints in PHP 8.1 and Serializable interface is deprecated.
This commit fixes the problems based on the advices from the deprecation warnings.
[MAILPOET-3980]
2021-12-13 09:36:43 +01:00
Rostislav Wolny
5049aa3a24
Fix flaky TimestampListenerTest
...
The problem was that the listener was replaced in the EntityManager only
in the firs test case. For other test cases replaceListeners didn't replaced
anything because the original listener was not set.
This commit fixes the issue by setting the original listener back in the _after method.
[MALPOET-3983]
2021-12-09 15:17:16 +01:00
Jan Jakes
f4656f5d89
Make pot file name configurable
2021-12-07 14:32:05 +01:00
Jan Jakes
f6e1c0c101
Use early return in makepot.js
2021-12-07 14:32:05 +01:00
Jan Lysý
a144ec4d39
Release 3.74.3
2021-12-07 14:07:37 +01:00
Rostislav Wolny
1bc968e55f
Fix WooCommerce block's checkout error when opt-in is disabled
...
When opt-in is disabled it fails to validate checkout data, because it expects
mailpoet.optin to present. This PRs skips extending checkout data schema in case
the opt-in is disabled.
[MAILPOET-4004]
2021-12-07 09:27:24 +01:00
Rostislav Wolny
93cfc4d251
Add loading settings to JS also on Welcome Wizard page
...
Settings are needed in the WooCommerce setup step where we
have a logic for setting tracking level.
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
3896975ef3
Update settings data migration db version check
...
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
26fc7ba2f0
Update tracking check for re-engagement emails
...
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
5b0aebdba3
Improve typography in new tracking settings descriptions
...
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
274e197a49
Use new tracking config also in JS apps
...
This commit replaces window.mailpoet_tracking_enabled variable with
tracking config object that carries the level and configuration for
all tracking options (emailsTrackingEnabled, cookieTrackingEnabled).
The window.mailpoet_tracking_enabled is confusing since it is not obvious what type of tracking is enabled.
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
a77f82e0cf
Adjust WooCommerce wizard step to set proper tracking settings
...
We want to allow users to adjust tracking settings also on the WooCommerce setup Wizard.
In case they choose to disable cookie tracking we set the lowest from current_value and 'partial'.
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
4d7ff36211
Add mailpoet_ prefix to global settings variable
...
We pass some data to MailPoet module using global JS variables.
It is safer to always use prefix.
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
2549bc6645
Remove open and clicks and woo cookie settings
...
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
57c30cbb72
Fix inactive subscribers toggle off logic in settings
...
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
7b69efea13
Show notice when migration affects tracking settings
...
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
432b2e6ff5
Add tracking settings migration for older installs
...
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
ca10fedf3b
Add tracking level setting to analytic report
...
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
699266c920
Use TrackingConfig and new tracking settings property in PHP
...
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
fbe933eb12
Change default settings for tracking
...
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
4bc7f3c2bc
Add service for distributing tracking configuration in the plugin
...
We introduced new settings that enable set different levels (basic, partial, full) of user tracking.
Each level enables different tracking options. This service should encapsulate the logic that determines
what should be tracked on each level of the setting.
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Rostislav Wolny
590652c471
Add engagement tracking settings to advanced tab
...
[MAILPOET-3185]
2021-12-06 17:03:28 +01:00
Oluwaseun Olorunsola
5ee3622067
Fixed sending hashed MSS API key
...
[MAILPOET-4003]
2021-12-06 16:57:05 +01:00
Oluwaseun Olorunsola
ccd3eee2cb
Package json dependencies update
...
[MAILPOET-3979]
2021-12-06 14:56:43 +01:00
Jan Lysý
5ebf99d49d
Improve message for scheduling WC segment
...
[MAILPOET-3954]
2021-12-06 14:52:34 +01:00
Jan Lysý
a3cd53e9c2
Use lower batchSize and move constant
...
[MAILPOET-3954]
2021-12-06 14:52:34 +01:00
Jan Lysý
14731a46fa
Refactor inserting from orders
...
[MAILPOET-3954]
2021-12-06 14:52:34 +01:00
Jan Lysý
1ef0d22ebb
Use loop and add enforce execution limit
...
[MAILPOET-3954]
2021-12-06 14:52:34 +01:00
Jan Lysý
565abbf897
Ensure collation is set
...
[MAILPOET-3954]
2021-12-06 14:52:34 +01:00
Jan Lysý
9bd6cb159c
Sync subscribers sequentially from orders
...
[MAILPOET-3954]
2021-12-06 14:52:34 +01:00
Jan Lysý
00f4913739
Remove the column is_woocommerce_synced
...
[MAILPOET-3954]
2021-12-06 14:52:34 +01:00
Jan Lysý
a78e97d349
Remove the old model usage
...
[MAILPOET-3753]
2021-12-06 14:52:34 +01:00
Jan Lysý
c0c7e23b0e
Remove the rest of the old model usage
...
[MAILPOET-3753]
2021-12-06 14:52:34 +01:00
Jan Lysý
a30d25e32f
Add new dependencies to integration test
...
[MAILPOET-3753]
2021-12-06 14:52:34 +01:00
Jan Lysý
ebf4ef3914
Run cron again when all customers aren't synced
...
[MAILPOET-3753]
2021-12-06 14:52:34 +01:00
Jan Lysý
2ada3c8b75
Change behavior to update names in batch
...
[MAILPOET-3753]
2021-12-06 14:52:34 +01:00
Jan Lysý
e0fd783303
Add new columns for subscribers
...
[MAILPOET-3753]
2021-12-06 14:52:34 +01:00
Jan Jakes
527224f755
Remove specific file exclusions from PHP_CodeSniffer config
2021-12-06 12:56:48 +01:00
Jan Jakes
b535594bc1
Set PHP_CodeSniffer ruleset paths relative to its install
...
This allows running the ruleset from different directories than the free plugin.
See: https://github.com/squizlabs/PHP_CodeSniffer/issues/2764#issuecomment-856677915
2021-12-06 12:56:48 +01:00