Commit Graph

16368 Commits

Author SHA1 Message Date
Pavel Dohnal
6dbcdd5638 Release 3.101.0 3.101.0 2022-10-17 14:57:59 +02:00
Sam Najian
0f45727ddc Add a new test case when verifying creator key with API
[MAILPOET-4464]
2022-10-17 12:15:07 +02:00
Sam Najian
cdb5b0d3cd Extend the test verifying correct storing of MSS key states
[MAILPOET-4464]
2022-10-17 12:15:07 +02:00
Sam Najian
9e42555acf Remove ts type casting
[MAILPOET-4464]
2022-10-17 12:15:07 +02:00
Sam Najian
0a9b7cec7d Fix the issue causing acceptance to fail
When normalizing js data, the ajax response code was omitted

[MAILPOET-4464]
2022-10-17 12:15:07 +02:00
Sam Najian
d7849a2a54 Assign a better name to the message component when MSS is active
[MAILPOET-4464]
2022-10-17 12:15:07 +02:00
Sam Najian
ff7913952b Update bridge tests for 403 error code
[MAILPOET-4464]
2022-10-17 12:15:07 +02:00
Sam Najian
5f4a8b80e8 Aknowledge receiving error 403 on frontend and hide MSS active
When receiving error 403, the frontend should not show
that MSS is active

[MAILPOET-4464]
2022-10-17 12:15:07 +02:00
Sam Najian
db94ec52e6 Acknowledge error code 403 with a different message
When recieving error code 403 from the Bridge, it's treated
as success but with with different message

[MAILPOET-4464]
2022-10-17 12:15:07 +02:00
dependabot[bot]
bbe9e82f2e Bump twig/twig from 3.3.10 to 3.4.3 in /mailpoet/prefixer
Bumps [twig/twig](https://github.com/twigphp/Twig) from 3.3.10 to 3.4.3.
- [Release notes](https://github.com/twigphp/Twig/releases)
- [Changelog](https://github.com/twigphp/Twig/blob/3.x/CHANGELOG)
- [Commits](https://github.com/twigphp/Twig/compare/v3.3.10...v3.4.3)

---
updated-dependencies:
- dependency-name: twig/twig
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-17 11:49:35 +02:00
David Remer
524e403a88 escape string for usage in JavaScript
[MAILPOET-4694]
2022-10-17 10:26:38 +02:00
Jan Jakes
1747d9c1c9 Fix wrong import
[MAILPOET-4540]
2022-10-17 11:21:03 +03:00
Damien Alleyne
0c9e445fea Localize plugin description
[MAILPOET-4709]
2022-10-17 09:21:35 +02:00
Jan Lysý
8b1eabb765 Remove duplicated annotation for filter
[MAILPOET-4717]
2022-10-17 09:12:10 +02:00
Jan Lysý
47ee47c372 Add getSubscribersCount documentation
[MAILPOET-4717]
2022-10-17 09:12:10 +02:00
Jan Lysý
8f38dc451e Add test cases for MP API getSubscribersCount
[MAILPOET-4717]
2022-10-17 09:12:10 +02:00
Jan Lysý
375a6f8a4d Add new method getSubscribersCount
[MAILPOET-4717]
2022-10-17 09:12:10 +02:00
Jan Lysý
35fb4979a3 Move building listing definition to private method
[MAILPOET-4717]
2022-10-17 09:12:10 +02:00
Jan Jakes
b696dfd066 Add link from automation editor back to listing
[MAILPOET-4675]
2022-10-14 15:09:14 +03:00
Jan Jakes
506cb8b732 Ensure workflow was trashed before deleting it
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
Jan Jakes
1b20bf45dd Move workflow list response building to workflow mapper
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
Jan Jakes
dd033d2f78 Use workflow mapper on automation editor page
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
Jan Jakes
e40665fc4a Add missing trailing comma
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
Jan Jakes
7b2dc2d172 Add check that workflow hasn't been duplicated when not allowed
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
Jan Jakes
70344b0e84 Add test for workflow delete endpoint
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
Jan Jakes
2a4b126538 Add test for workflow duplicate endpoint
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
Jan Jakes
98a701419a Reuse workflow mapper in create from template endpoint
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
Jan Jakes
b01d050f1d Extract workflow delete logic to a controller
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
Jan Jakes
89c43a5cb9 Extract workflow duplication logic to a controller, fix some issues
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
John Oleksowicz
6158f5a64b Prevent duplicates from having too-long names
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
John Oleksowicz
169b6c4151 Ensure createWorkflow never attempts to use ID
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
John Oleksowicz
4e82c5334b Add ability to permanently delete workflow
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
John Oleksowicz
a4c8caa664 Add basic duplication ability
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
John Oleksowicz
35325bdf06 Remove clip path to allow dropdown visibility
The actions dropdown would be cut off for the bottom most workflows if
we kept this rule, which was a workaround to begin with.

[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
John Oleksowicz
4033bedaf3 Remove rename and statistics actions
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
John Oleksowicz
539969c8d0 Don't display trashed workflows in "All"
[MAILPOET-4540]
2022-10-14 12:03:53 +03:00
Rostislav Wolny
ff5a41a8ee Update outdated comment about recurring action in Daemon Run action
[MAILPOET-4684]
2022-10-13 14:21:43 +02:00
Rostislav Wolny
18b790f7c6 Uncomment logs table cleanup in tests
I commented it during debugging.
[MAILPOET-4684]
2022-10-13 14:21:43 +02:00
Rostislav Wolny
69ac29d0a7 Allow immediate processing of just prepared tasks in cron worker runner
Preparing simple worker tasks is super fast, because it just switches the state to null.
But the processing of just prepared tasks required the second worker run and also second cron run.
This change optimize the behavior and in case there is still time left it immediately starts processing the tasks.
[MAILPOET-4684]
2022-10-13 14:21:43 +02:00
Rostislav Wolny
05b441378d Add logging of suspiciously terminated cron runs
[MAILPOET-4684]
2022-10-13 14:21:43 +02:00
Rostislav Wolny
9c0ce5ed7a Refactor DaemonRun::afterProcess for better readability
[MAILPOET-4684]
2022-10-13 14:21:43 +02:00
Rostislav Wolny
de22257af3 Do not schedule next action scheduler run after suspiciously short run
In case we still have work to do but the previous run ended too early and it still had some execution time left
we will not schedule new action.
This is prevention for creating a run action every one second in case there is e.g. some stuck job.
Next run will be triggered within the trigger action that runs every 2 minutes.
[MAILPOET-4684]
2022-10-13 14:21:43 +02:00
Rostislav Wolny
a03f8f1c30 Use action scheduler's unique single action for daemon run
With the new unique parameter added in the action scheduler 3.5.0 the
as_schedule_single_action that schedules an immediate action
seems to be more convenient for the action scheduler.
We get better control over the scheduling of subsequent runs.
Note: We don't want to use the async action that is also executed immediately,
but it has the highest priority and we don't want to block actions scheduled by other plugins.
[MAILPOET-4684]
2022-10-13 14:21:43 +02:00
Rostislav Wolny
e33539c5ca Prevent triggering cron when sending is waiting for retry
[MAILPOET-4686]
2022-10-13 14:21:43 +02:00
Rostislav Wolny
b96b549f43 Unschedule cron actions before running migrations
We don't want to run any actions during migrations.
This will also clean duplicate trigger actions
that were potentially created because of requests race conditions.
[MAILPOET-4684]
2022-10-13 14:21:43 +02:00
Rostislav Wolny
1711d60871 Schedule recurring actions as unique to prevent duplicate actions
We had some cases of multiple triggers created most probably because of a race conditions.
The unique action functionality added in the action scheduled 3.5.0 should prevent it.
[MAILPOET-4684]
2022-10-13 14:21:43 +02:00
Rostislav Wolny
e22145c00f Update woocommerce/action-scheduler to 3.5.2
[MAILPOET-4684]
2022-10-13 14:21:43 +02:00
Rostislav Wolny
4d7f6f8c75 Use more effective method deactivation
This will cancel all jobs with one query. Instead of cancelling one by one.
In case that some action gets scheduled multiple times e.g. due a race condition
it will remove all jobs.
2022-10-13 14:21:43 +02:00
David Remer
03cfeaac7f Fix test: If activated_at is null the status has to be draft
[MAILPOET-4531]
2022-10-13 13:01:10 +03:00
David Remer
4931ab47cb Use already assigned $this->workflowStorage instead of using di container
[MAILPOET-4531]
2022-10-13 13:01:10 +03:00