Commit Graph

15254 Commits

Author SHA1 Message Date
Jan Jakes
f7888480b4 Make API endpoint a simple single-action class
[MAILPOET-4207]
2022-04-20 15:30:50 +02:00
Jan Jakes
506b6e82fc Add post workflows tests
[MAILPOET-4207]
2022-04-20 15:30:50 +02:00
Jan Jakes
a6cdffbfea Add get workflows tests
[MAILPOET-4207]
2022-04-20 15:30:50 +02:00
Jan Jakes
db7b5162d2 Add test parent for automation REST tests
[MAILPOET-4207]
2022-04-20 15:30:50 +02:00
Jan Jakes
e79b0e6b25 Activate automation for integration tests
[MAILPOET-4207]
2022-04-20 15:30:50 +02:00
Jan Jakes
54010fe7e4 Add abstract class for REST API integration tests
[MAILPOET-4207]
2022-04-20 15:30:50 +02:00
Jan Jakes
47a234c18e Reset features controller cache in integration tests
[MAILPOET-4207]
2022-04-20 15:30:50 +02:00
Pavel Dohnal
8a604e3743 Add a changelog for release 3.87.2 2022-04-20 11:18:21 +02:00
Sam Najian
5c9bfcaaff Allow default export for mailpoet module public entry
[MAILPOET-4202]
2022-04-20 08:34:01 +02:00
Sam Najian
d116ff360b Remove default exports from affected files
[MAILPOET-4202]
2022-04-20 08:34:01 +02:00
Sam Najian
6f4bbe4a80 Adjust config to warn for default exports, exclude stories
[MAILPOET-4202]
2022-04-20 08:34:01 +02:00
dependabot[bot]
c76faf2033 Bump moment from 2.29.1 to 2.29.2 in /mailpoet
Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-19 14:02:13 +02:00
Pavel Dohnal
6e3ffa8a5a Release 3.87.2 2022-04-19 13:53:43 +02:00
Sam Najian
fd1833a8ad Fix failing tests of AutomatedLatestContent::getPosts in MU
Switch to running the tests on blog_id=1

[[MAILPOET-4082]]
2022-04-18 23:46:10 +02:00
John Oleksowicz
95857d74b9 Check for uniqueness when updating name
[MAILPOET-4199]
2022-04-18 20:03:42 +02:00
Jan Lysý
6ee1955f53 Improve not_equals condition for custom fields
[MAILPOET-4157]
2022-04-18 14:11:52 +02:00
Sam Najian
53fedbc38a Fix failing test in MU installs
[MAILPOET-4082]
2022-04-18 11:43:47 +02:00
Sam
f92b6a2e1e Revert "Revert "Fix a failing test with too much dependecy on db state""
This reverts commit 8aa2565e17.
2022-04-18 11:43:47 +02:00
Sam
fd4379af4a Revert "Revert "Add tests to check output of API methods querying posts""
This reverts commit 2c5e1ab184.
2022-04-18 11:43:47 +02:00
Sam
bcae8ade3f Revert "Revert "Restrict dynamic blocks to public post status only""
This reverts commit 79991ae462.
2022-04-18 11:43:47 +02:00
Sam
c32dc0a372 Revert "Revert "Define BlockPostQuery for nicer args processing for quering""
This reverts commit 62e393a76d.
2022-04-18 11:43:47 +02:00
Sam
319017f09d Revert "Revert "Correctly process sortBy argument when fetching posts""
This reverts commit 6c00969e83.
2022-04-18 11:43:47 +02:00
Sam
fc7313d44b Revert "Revert "Fix failing tests because of un-registered product post type""
This reverts commit fbcfa6db82.
2022-04-18 11:43:47 +02:00
Sam
7631042f3d Revert "Revert "Check post-types validity for requests""
This reverts commit fdb4663ca1.
2022-04-18 11:43:47 +02:00
John Oleksowicz
52855b06d8 Fix indentation
[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
6ee13b87df Fix copy/paste mistake
[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
f032bedffe Move private method after public methods
[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
ff8a2926a8 Avoid unnecessary duplicate call
[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
250dd441b4 Add step based validations
[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
da144a3778 Include all possibilities for validation
Although not required at the moment, validation could certainly involve
the current step as well as the workflow itself.

[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
7ec1bcccc4 Alphabetize dependencies
[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
78352d410d Keep subject entities private
[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
cbabaf9e4e Idiomatic way of specifying mixed return type
[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
c5065c0d8d Remove unnecessary abstract class
[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
253a32413c Add exception messages
I'm leaving these strings untranslated for now because I'm not sure that
 we'll want all of them as-is, and I don't want to have our translators
 translate strings we might not even need.

[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
5227481a42 Revert to a simpler approach
Having separate objects for validation results is unnecessary and overly
 complicated at this point, and we should wait to introduce that kind of
  complexity only when/if it's clearly needed.

[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
d6895ebbc2 More efficient method for checking segment status
[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
1f697cea47 Separate instances for objects with state
Segment and Subscriber subjects can be stateful, with specific segments
and subscribers loaded into them, so we should probably get separate
instances of them instead of sharing that state and potentially getting
unexpected behavior.

[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
954b23d151 State-independent validation
We need to be able to validate an action in a workflow in the UI,
outside the context of a specific workflow run, so the validation can't
check things like the specific entities loaded in a subject.

[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
2cce9bf7ad An idea for splitting validation and running
[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
70911d2424 Make factory consistent with application code
This makes the subscriber factory match
\MailPoet\Subscribers\SubscriberSegmentRepository::createOrUpdate. Prior
 to this change, calling $subscriber->getSegments() after using this
 factory would always return an empty collection, even after using the
 withSegments method.

[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
d31671f6ea Basic tests for welcome email action
[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
66564d3b7d Refactor action to use subjects directly
[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
b2f2f2665c Add getValue method to Field
[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
69b523171f Initial stab at a welcome email action
[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
John Oleksowicz
9e4303e6f6 Fix updatedAt assignment
[MAILPOET-4191]
2022-04-18 09:10:23 +02:00
dependabot[bot]
31828a1cce Bump minimist from 1.2.5 to 1.2.6 in /eslint-config
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-18 08:54:15 +02:00
Rostislav Wolny
2bf3386f45 Alter multisite registration test to check tracking cookie after login
The cookie is not set on wp-activate.php page because on the page
plugins are not loaded (or are loaded only when the plugin is
network active).
See https://core.trac.wordpress.org/ticket/23197

[MAILPOET-4249]
2022-04-15 09:02:18 +02:00
Rostislav Wolny
53eb08f91f Fix SubscriberCookieCest test
I found that container used for WordPress site in acceptance test environment
is not configured to send emails to MailHog and that caused that WP transactional emails were not caught by MailHog.

In this commit I switched sending transaction emails via MailPoet plugin as a workaround.
[MAILPOET-4249]
2022-04-15 09:02:18 +02:00
Jan Jakes
0a1cb0f169 Release 3.87.1 2022-04-14 12:37:17 +02:00