Commit Graph

21439 Commits

Author SHA1 Message Date
Veljko
a24c5f5869 Exclude test from scenarios
[MAILPOET-4954
2023-03-30 11:03:28 +02:00
Veljko
568918f1fc Include the test in scenarios
[MAILPOET-4954]
2023-03-30 11:03:28 +02:00
Veljko
c7e01e0cb1 Add new k6 test newsletter statistics
[MAILPOET-4954]
2023-03-30 11:03:28 +02:00
Veljko
5297333d6a Optimize tests and improve existing
[MAILPOET-4958]
2023-03-30 11:03:28 +02:00
Brezo Cordero
eaa2085fba Use replace instead of push
[MAILPOET-5140]
2023-03-30 10:09:04 +02:00
Brezo Cordero
bc43aaaeb7 Remove MSS pitch if key already active
[MAILPOET-5140]
2023-03-30 10:09:04 +02:00
Rodrigo Primo
7570c7ecfe Fix PNPM permission error when setting up the dev env
This commit fixes the following error when running ./do setup to configure the dev env on a new Linux machine:

```
[ExecStack] Running pnpm install --frozen-lockfile --prefer-offline
Internal Error: EACCES: permission denied, mkdir '/.cache'
Error: EACCES: permission denied, mkdir '/.cache'
```

It sets the $XDG_DATA_HOME variable to /tmp/.cache in docker-compose.yml. This will affect other programs that rely on $XDG_DATA_HOME, but it is probably harmless. I was not able to find an env variable that is specific to PNPM, and that would affect only the location of its cache directory (https://pnpm.io/next/npmrc#cache-dir).

[MAILPOET-5177]
2023-03-30 08:25:29 +02:00
Sam Najian
d0c92627e9 Update the host key per GH instruction
https://github.blog/2023-03-23-we-updated-our-rsa-ssh-host-key/

[MAILPOET-5173]
2023-03-29 14:32:36 +03:00
Rodrigo Primo
8e0211913a Add basic integration test for the new single order value WC segment
[MAILPOET-4988]
2023-03-28 15:51:01 +02:00
Rodrigo Primo
68d69cb8bb Add basic acceptance tests for the new single order value WC segment
[MAILPOET-4988]
2023-03-28 15:51:01 +02:00
Rodrigo Primo
b1a940aded Add basic unit test for FilterDataMapper when using WooCommerceSingleOrderValue
[MAILPOET-4988]
2023-03-28 15:51:01 +02:00
Rodrigo Primo
b963d8b988 Add a new WooCommerce segment based on the value of the orders
[MAILPOET-4988]
2023-03-28 15:51:01 +02:00
David Remer
47ca0d926b Exempt <hr> from being stripped when display type is full
[MAILPOET-5114]
2023-03-28 15:20:10 +02:00
alex-mailpoet
3ed92e2de9 Release 4.10.0 2023-03-28 12:09:26 +03:00
Rodrigo Primo
ae28e62b1a Add documentation for the unsubscribe() MP API method
[MAILPOET-5152]
2023-03-27 19:25:49 +02:00
Rodrigo Primo
45f59770fc Add reason for unsubscribing to the admin when using MP API
This commit adds the string about unsubscribing using the MP API to the
subscribers page in the admin. Without this we were showing a generic
message "Unsubscribed for an unknonw reason".

[MAILPOET-5152]
2023-03-27 19:25:49 +02:00
Rodrigo Primo
c507229dd2 Add unsubscribe API method
It can be used by calling:

```
$mailpoet_api = \MailPoet\API\API::MP('v1');
$mailpoet_api->unsubscribe($subscriberId);
```

[MAILPOET-5152]
2023-03-27 19:25:49 +02:00
Rodrigo Primo
d37b961c2b Use getServiceWithOverrides() to create an instance of Subscribers
By using this helper method, we don't need to change the code that
instantiate Subscribers whenever the class signature changes as it is
going to happen in a subsequent commit.

[MAILPOET-5152]
2023-03-27 19:25:49 +02:00
alex-mailpoet
a90a1462f4 Fix translations after conflict resolving
[MAILPOET-4397]
2023-03-27 17:24:03 +02:00
John Oleksowicz
17c206ef8f Ensure confirmation displays for pausing
MAILPOET-4397
2023-03-27 17:24:03 +02:00
John Oleksowicz
644e0f3e0f Confirm in editor if not already confirmed
MAILPOET-4397
2023-03-27 17:24:03 +02:00
John Oleksowicz
b30a9af4ad Display deactivation warning when clicking subjects
MAILPOET-4397
2023-03-27 17:24:03 +02:00
Jan Jakes
62dcee8ae9 Merge newsletter tests config into ES5 config
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
8d311f2d9f Rexpose globals for usage in config overrides
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
263e8f6f4d Remove redundant rule exception (same value as from parent configs)
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
ccbd239009 Remove premium-specific TS config, move free-specific rules to its config
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
7dd5ca91c5 Remove premium-specific ES config, move free-specific rules to its config
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
5d03be50f3 Remove rule definition that's already included in parent configs
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
30f5a48b9d Use the new ESLint config for ./do qa:fix-file
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
f04f7755fd Reexport eslint bin in @mailpoet/eslint-config explicitly
We're using @mailpoet/eslint-config to share eslint itself so it's
correct to reexport the executable that's being used. This also makes
the command work in the premium plugin without need to address the
".bin" paths within "node_modules".

[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
ed8a3344af Rewrite .eslintrc.premium.ts.js to new config format
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
e2d658e5fc Rewrite .eslintrc.premium.js to new config format
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
542ac60626 Increase JS heap size for eslint
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
635a23bd87 Exclude irrelevant files from linting early to save memory
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
3d25b73fc6 Remove no longer used .eslintignore
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
989fd7d1cb Rewrite .eslintrc.tests_newsletter_editor.js to new config format
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
3b321de91e Rewrite .eslintrc.ts.js to new config format
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
afb5456759 Rewrite .eslintrc.es6.js to new config format
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
d37292ff13 Rewrite .eslintrc.es5.js to new config format
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
c7c06d0a21 Install @eslint/eslintrc explicitly
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
2b5826d417 Install globals explicitly
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
1d3722b6d3 Fix errors reported by ESLint
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
a919275c24 Allow passing async function to JSX attributes
The new default seems to be a bit too strict.

[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
d902ec446c Update eslint-plugin-import
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
d1b691f69c Update eslint-plugin-jsx-a11y
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
d2d12e30ec Update eslint-plugin-no-only-tests
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
bd66929731 Update eslint-config-prettier
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
84ef2f1427 Update eslint-config-airbnb-typescript
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
80d5d35e25 Update eslint-plugin-react and eslint-plugin-react-hooks
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00
Jan Jakes
45b473a53f Update @typescript-eslint/parser and @typescript-eslint/eslint-plugin
[MAILPOET-5015]
2023-03-27 15:24:38 +02:00