Commit Graph

17035 Commits

Author SHA1 Message Date
David Remer
f95824dea0 Add withError() method to exceptions
[MAILPOET-4700]
2022-10-26 12:51:16 +02:00
David Remer
650a8704cd Show saved message when workflow is saved
[MAILPOET-4700]
2022-10-26 12:51:16 +02:00
Sam Najian
cd37f92592 PR feedback: add the default value back
[MAILPOET-4521]
2022-10-26 12:28:22 +02:00
Sam Najian
6bf201b45e Remove propTypes and defaultProps from AuthorizeSenderEmailModal
Removing the defaultProps is safe since the defaulted prop
is mandatory by TS

[MAILPOET-4521]
2022-10-26 12:28:22 +02:00
Sam Najian
e178d6519c Remove propTypes from StylesSettingsPanel
[MAILPOET-4521]
2022-10-26 12:28:22 +02:00
Sam Najian
97d4a8e4f8 Remove propTypes definition for InputStylesSettings
[MAILPOET-4521]
2022-10-26 12:28:22 +02:00
Sam Najian
e5ce252587 Remove propTypes from FormFieldTokenField
[MAILPOET-4521]
2022-10-26 12:28:22 +02:00
Sam Najian
b7cae6dac4 Remove propTypes & defaultProps from authorize_sender_domain_modal
Safe removal of defaultProps since the defauleted prop is
mandatory by TS and always set by users

[MAILPOET-4521]
2022-10-26 12:28:22 +02:00
Sam Najian
07d3b753b8 Remove babel-plugin-typescript-to-proptypes package
[MAILPOET-4521]
2022-10-26 12:28:22 +02:00
Rostislav Wolny
72ef0909f5 Stop executing workers when execution limit is reached
When execution limit is reached it makes no sense to continue and
execute additional workers or log the execution limit exception as an error.
[MAILPOET-4725]
2022-10-26 10:13:05 +02:00
Rostislav Wolny
a5473bf882 Use proper logger name for logging cron errors
[MAILPOET-4725]
2022-10-26 10:13:05 +02:00
David Remer
c4e7ea4c8e Use addFilter instead of addAction
[MAILPOET-4728]
2022-10-25 12:04:44 -05:00
David Remer
ce462f1643 Close correct HTML element type
[MAILPOET-4728]
2022-10-25 12:04:44 -05:00
David Remer
91936aff92 Rename Automation to Automations in Menu
[MAILPOET-4728]
2022-10-25 12:04:44 -05:00
David Remer
57858bbe9a Move Automation menu item between Emails and Forms
[MAILPOET-4728]
2022-10-25 12:04:44 -05:00
David Remer
42d9b1241e Make menu strings translateable and use esc_html__() for menu titles
[MAILPOET-4728]
2022-10-25 12:04:44 -05:00
David Remer
fc4a5315df Add beta badge
[MAILPOET-4728]
2022-10-25 12:04:44 -05:00
Sam Najian
e771bd53da Release 3.101.1 2022-10-25 15:42:37 +02:00
Jan Lysý
291f46d732 Fix spacing in docs 2022-10-25 13:13:47 +01:00
Ziggy Verstrepen
e236d3312c Fix listId typo 2022-10-25 13:15:28 +02:00
Ziggy Verstrepen
794090291a Update getSubscribers filter arguments
Filter arguments 'list_id' and 'min_updated_at' do not work. These arguments currently only work with lowerCamelCase.
2022-10-25 13:15:28 +02:00
David Remer
380eec1ed6 Add prop types for deactivation modals
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
7c283b7fda Use " for quotation marks
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
916080fa5a Reset step runners to not interfer with other tests
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
c10f80457d Use new getCountForWorkflow for performance
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
9773408c8b Add getCountForWorkflow method to return how many runs exist for specific status
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
5ba5426281 truncate entries of WorkflowRunLogStorage
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
098aebfaf9 Add truncate() method to WorkflowRunLogStorage
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
75d79f19cc Add information that deleting a workflow deletes also the workflow runs
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
1b70e6d494 Ensure workflows are active
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
2c57251bae Revert e8cfb2565
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
9bdb32c073 Verify deactivating workflow gets inactive after last workflow run
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
b74890137a Set a deactivating Workflow to inactive once all runs are completed
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
57548b579f Add method to fetch all runs of a workflow
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
7aa1a5f4ba Enable setStatus to handle multiple WorkflowRuns at the same time
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
d60e399a3b Alter buttons depending on workflow state, use DeactivateImmediatelyModal
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
da34614b5c Add new DeactivateImmediatelyModal
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
a0d330fded Deactivate workflow on button click depending on selected status
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
f766661f8c Show Deactivating state in header
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
82ddce42df Use WorkflowStatus enum for valid status values in Workflow type
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
bfe95676c3 Add switch to decide which deactivation state we want to set the workflow to
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
789bb0b396 Use workflow status constants
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
2620ef0b57 Do not handle workflow runs when workflow status is not active/deactivating
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
David Remer
627962570e Add new workflow status 'deactivating'
[MAILPOET-4731]
2022-10-25 12:46:07 +02:00
Rostislav Wolny
bbdbf6a52d Fix WooCommerce setup in the welcome wizard
The component that requires the global mailpoet_show_customers_import
variable is used also on the wizard page.
This commit ensures that it is set on the page.
[MAILPOET-4652]
2022-10-24 15:16:04 +02:00
Rostislav Wolny
56ed9f4ece Update acceptance tests for Woo setup page
[MAILPOET-4652]
2022-10-24 15:16:04 +02:00
Rostislav Wolny
e6188f5cef Update WooCommerce cookie tracking info in Wizard
[MAILPOET-4652]
2022-10-24 15:16:04 +02:00
Rostislav Wolny
a37e5bbe74 Hide WooCommerce initial import from wizard when there are no customers
[MAILPOET-4672]
2022-10-24 15:16:04 +02:00
Rostislav Wolny
9df99b1a00 Add method for getting customers count to WooCommerce helper
[MAILPOET-4652]
2022-10-24 15:16:04 +02:00
Rostislav Wolny
5ff543e62d Unify default values of mailpoet_subscribe_old_woocommerce_customers
The value is used in case the setting is not defined. Normally this shouldn't
happen because we set the value in the wizard.
The default value used in PHP is false, but in settings in admin was true.
See b0aacdd4ef/mailpoet/lib/Segments/WooCommerce.php (L528)
This commit unifies it.

[MAILPOET-4652]
2022-10-24 15:16:04 +02:00