Commit Graph

18419 Commits

Author SHA1 Message Date
85d112bb82 Add access_restriction for both keys to Settings store
[MAILPOET-5103]
2023-04-26 10:57:40 +02:00
bee18084c3 Introduce underprivileged key status also for premium key
In MAILPOET-4464 we introduced the new state "valid_underprivileged".
During implementation we introduced the state for MSS key validation,
but we forgot about the premium key.

This commit adds support for the state also for premium key validation.
When the key is underprivileged we don't display any error.

We will add specific error for underprivileged keys with specific
access restrictions in follow-up commits.

[MAILPOET-5103]
2023-04-26 10:57:40 +02:00
37d6d612c4 Detect and save api key access restriction reason during key check
[MAILPOET-5103]
2023-04-26 10:57:40 +02:00
1f287e7af0 Use common private method for checking keys in Bridge API
The two public methods for checking MSS and Premium keys were almost
exact copies.
To avoid doing the same changes in two places I decided to refactor them to
internally use a common private method.
[MAILPOET-5103]
2023-04-26 10:57:40 +02:00
8501b1ba80 Hide brand styles settings when not available
[MAILPOET-5194]
2023-04-26 10:57:23 +02:00
8b482136d0 Convert utils.js file to ts
[MAILPOET-5194]
2023-04-26 10:57:23 +02:00
4137c12bca Define brand styles setting on window object if available
[MAILPOET-5194]
2023-04-26 10:57:23 +02:00
ef7f2ebade Define method to disable theme templates settings
[MAILPOET-5194]
2023-04-26 10:57:23 +02:00
f7212e583a Update Semgrep rules cloning
[MAILPOET-5230]
2023-04-26 10:01:51 +02:00
1603378d7d Skip upgrader->install() as false positve
[MAILPOET-5230]
2023-04-26 10:01:51 +02:00
930ff18785 Skip add_query_arg() finding as false positive
[MAILPOET-5230]
2023-04-26 10:01:51 +02:00
f12bb8e680 Run Semgrep check on build
[MAILPOET-5230]
2023-04-26 10:01:51 +02:00
b91d96deab Fix doctype to reflect the array key can be an integer
[MAILPOET-5267]
2023-04-26 09:56:08 +02:00
6a6d158785 Cast steps array key to string
[MAILPOET-5267]
2023-04-26 09:56:08 +02:00
d6545a01f6 Update Docker image for oldest acceptance tests to use WP 6.0
The new image uses PHP 7.4 instead of PHP 7.3 as there is not a WP base
image available for 6.0 using PHP 7.3.

[MAILPOET-5075]
2023-04-25 14:24:11 -03:00
4e3f540bc1 Use WP 6.2 when running the acceptance tests
Just bumping the WP version used in the acceptance tests to the latest
version.

[MAILPOET-5075]
2023-04-25 14:24:11 -03:00
aac6eff525 Release 4.13.0 2023-04-25 09:19:01 -05:00
25a2b8eceb Improve closing settings panel
Because closing panel causes flakiness we can try it multiple times.
[MAILPOET-5240]
2023-04-24 15:22:22 -03:00
9240603063 Escape checkbox label on render
[MAILPOET-5241]
2023-04-24 13:26:31 +02:00
6c2cda36b0 Run custom field data through sanitizer when saving via API
[MAILPOET-5241]
2023-04-24 13:26:31 +02:00
bc950d0616 Remove no longer needed index.php file
[MAILPOET-5236]
2023-04-24 12:45:17 +02:00
bdee356bb8 Check for existence of both index.php and Index.php
[MAILPOET-5236]
2023-04-24 12:45:17 +02:00
7b07667e76 Make sure generated empty index files contain PHP open tag
This error was detected by a rule "Internal.NoCodeFound" with the following message:

No PHP code was found in this file and short open tags are not allowed by this install of PHP.
This file may be using short open tags but PHP does not allow them.

[MAILPOET-5236]
2023-04-24 12:45:17 +02:00
8a228ed854 Add feature flag for displaying trigger filters
[MAILPOET-5257]
2023-04-24 10:42:28 +02:00
f75620a7c1 Add IDs for filter groups and filter definitions
[MAILPOET-5257]
2023-04-24 10:42:28 +02:00
34ca96d007 Introduce filters data type and filter groups to enable saving and/or filter combinations
[MAILPOET-5257]
2023-04-24 10:42:28 +02:00
a6fcc60de3 Add "of" preposition to matches any/all/none
[MAILPOET-5257]
2023-04-24 10:42:28 +02:00
761c28ef01 Add migration from "transactional" email type to "automation_transactional"
We also need to extend the column max. size.

[MAILPOET-5258]
2023-04-24 09:54:08 +03:00
69f21814e3 Rename "transactional" email type to "automation_transactional"
[MAILPOET-5258]
2023-04-24 09:54:08 +03:00
05d48811eb Bump guzzlehttp/psr7 from 1.9.0 to 1.9.1 in /mailpoet
Bumps [guzzlehttp/psr7](https://github.com/guzzle/psr7) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/guzzle/psr7/releases)
- [Changelog](https://github.com/guzzle/psr7/blob/1.9.1/CHANGELOG.md)
- [Commits](https://github.com/guzzle/psr7/compare/1.9.0...1.9.1)

---
updated-dependencies:
- dependency-name: guzzlehttp/psr7
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-21 15:38:35 +02:00
ddf323aa3b Release 4.12.2 2023-04-21 13:01:54 +02:00
2b83c8c69f Fix previously sanitized link
[MAILPOET-5254]
2023-04-21 11:14:25 +02:00
f6b752e807 Revert email links sanitization on save
[MAILPOET-5254]
2023-04-21 11:14:25 +02:00
d00efbeb54 Fix filter handler may change query builder as a side effect
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
51c22c7044 Add integration test for trigger filters
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
963dd083b6 Add subscriber segments field, comment out other fields for now
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
f6a59647d5 Implement filter args validation
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
0bf7e5e77f Add a fix for PHPStan issue causing polyfills not being loaded
We can remove this fix when the issue is resolved:
https://github.com/phpstan/phpstan/issues/7732

[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
ffaa140289 Implement finding all static and dynamic segments for a subscriber
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
0157feb508 Remove no longer used exception
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
abe44ca9f8 Implement filter handler to apply filters on field values during automation run
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
9d99872ef7 Implement field value loading logic
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
7d6cfd911e Pass subject payload to field factories
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
7f9faf1d99 Use automation WP helpers
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
ae828b9ac4 Do not load all possible subjects eagerly
With subject transformers the amount of possible subjects will grow,
and preloading even those that won't be used may result in performance
issues, and unnecessary errors (e.g., caused by 3rd party transformers).

[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
54f5addca9 Extract subject loading before automation processing loop
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
70dbfc28b7 Early return when no active automation matches given trigger
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
d99a7bca90 Render filter conditions
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
9f856b5b01 Add filter value rendering
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
925e8722e7 Add filter delete placeholder
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00