Commit Graph

19650 Commits

Author SHA1 Message Date
Rostislav Wolny
6c2cda36b0 Run custom field data through sanitizer when saving via API
[MAILPOET-5241]
2023-04-24 13:26:31 +02:00
Jan Jakes
bc950d0616 Remove no longer needed index.php file
[MAILPOET-5236]
2023-04-24 12:45:17 +02:00
Jan Jakes
bdee356bb8 Check for existence of both index.php and Index.php
[MAILPOET-5236]
2023-04-24 12:45:17 +02:00
Jan Jakes
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
Jan Jakes
8a228ed854 Add feature flag for displaying trigger filters
[MAILPOET-5257]
2023-04-24 10:42:28 +02:00
Jan Jakes
f75620a7c1 Add IDs for filter groups and filter definitions
[MAILPOET-5257]
2023-04-24 10:42:28 +02:00
Jan Jakes
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
Jan Jakes
a6fcc60de3 Add "of" preposition to matches any/all/none
[MAILPOET-5257]
2023-04-24 10:42:28 +02:00
Jan Jakes
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
Jan Jakes
69f21814e3 Rename "transactional" email type to "automation_transactional"
[MAILPOET-5258]
2023-04-24 09:54:08 +03:00
dependabot[bot]
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
Rostislav Wolny
ddf323aa3b Release 4.12.2 2023-04-21 13:01:54 +02:00
Brezo Cordero
2b83c8c69f Fix previously sanitized link
[MAILPOET-5254]
2023-04-21 11:14:25 +02:00
Rostislav Wolny
f6b752e807 Revert email links sanitization on save
[MAILPOET-5254]
2023-04-21 11:14:25 +02:00
Jan Jakes
d00efbeb54 Fix filter handler may change query builder as a side effect
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
51c22c7044 Add integration test for trigger filters
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
963dd083b6 Add subscriber segments field, comment out other fields for now
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
f6a59647d5 Implement filter args validation
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
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
Jan Jakes
ffaa140289 Implement finding all static and dynamic segments for a subscriber
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
0157feb508 Remove no longer used exception
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
abe44ca9f8 Implement filter handler to apply filters on field values during automation run
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
9d99872ef7 Implement field value loading logic
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
7d6cfd911e Pass subject payload to field factories
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
7f9faf1d99 Use automation WP helpers
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
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
Jan Jakes
54f5addca9 Extract subject loading before automation processing loop
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
70dbfc28b7 Early return when no active automation matches given trigger
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
d99a7bca90 Render filter conditions
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
9f856b5b01 Add filter value rendering
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
925e8722e7 Add filter delete placeholder
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
8a3a068e6a Add rendering of the list of existing filters
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
447b0e496c Add filters to UI registry
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
4ff9306826 Add filter management into automation registry
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
56b551dc16 Implement enum array filter
[MAILPOET-4946]
[MAILPOET-5002]
2023-04-20 16:32:32 +02:00
Jan Jakes
370f3082de Implement string filter
[MAILPOET-4946]
[MAILPOET-4419]
2023-04-20 16:32:32 +02:00
Jan Jakes
52be5ca3f9 Add interface for filter definition
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
eaa1a4aa69 Save automation filters to the database
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
014db1e695 Add step filters schema
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
3ed038479a Add subject data to automation editor registry
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
0bf9e75dd0 Automatically register fields exposed from subjects
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
209ede594e Add fields management to automation registry
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
97e40955ab Add fields to subject interface
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
3da51a0cf9 Add filters section with premium upsell to triggers
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
3af9701683 Expose FormTokenField from @wordpress/components
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
ad319393b7 Expose Button from @wordpress/components
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
28c4f5e3d0 Fix missing key prop
[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Jan Jakes
6f0307be95 Flush database changes before invoking "mailpoet_segment_subscribed" hook
This is to ensure the hook consumers can read up-to-date data from the database.

[MAILPOET-4946]
2023-04-20 16:32:32 +02:00
Rodrigo Primo
c3656829a7 Remove the code coverage command documentation from the README.md file
This command doesn't exist anymore

[MAILPOET-2440]
2023-04-20 16:21:34 +02:00
Rodrigo Primo
a3cf1daeae Remove code coverage code as it is not used anymore
[MAILPOET-2440]
2023-04-20 16:21:34 +02:00