Commit Graph

18205 Commits

Author SHA1 Message Date
David Remer
ce6c9dfcdb Remove unnecessary check
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
9d9b3f58c4 Use WooCommerce helper to fetch order
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
8cf48d2707 Simplify SubjectTransformer
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
68f09b6bd1 Prevent infinite loop when a subject from the trigger is missing
Given the trigger provides two subjects but only one subject was given via parameter and no
transformer was able to generate the second from the first, this method runs into an
infinite loop. This commit prevents this infinite loop.

[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
b5a846327a Remove SubjectTransformerHandler from StepHandler
All subjects are created and persisted during AutomationRun creation. Therefore, the required
subject must exist when searching for it in the StepHandler. This commit reverses the last
changes and updates the test.

[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
d365be2334 Persist all possible subject on run creation
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
c968b03ca7 Provide all possible subjects for a trigger to the UI
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
6fa85ef879 Test order to subscriber subject transformation
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
301a10b210 Move TestAction to Stubs
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
2bba70125c Add order status change statistic to analytics
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
f1f667c355 Add order status change trigger frontend
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
d0659f638c Add order to subscriber transformer
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
e140dc6d4e Add WooCommerce integration and order status trigger backend
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
e081c554aa Add method to retrieve order statuses
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
David Remer
5328213d85 Introduce subject transformation
[MAILPOET-4935]
2023-03-30 12:21:25 +02:00
Veljko
06874645c7 Add nightly testing and update CircleCI and RoboFile
[MAILPOET-4954
2023-03-30 11:03:28 +02:00
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