Commit Graph

13505 Commits

Author SHA1 Message Date
Jan Lysý
0c0349c5aa Fix returned data from stubs
[MAILPOET-3774]
2021-09-29 13:54:29 +02:00
Jan Lysý
616b8868fe Improve inactive subscribers task
[MAILPOET-3774]
2021-09-29 13:54:29 +02:00
Rodrigo Primo
f8e8a26d52 Fix error when creating ScheduledTasksRepository::findByTypeAndStatus()
When refactoring ScheduledTask::findByTypeAndStatus() to
ScheduledTasksRepository::findByTypeAndStatus(). During the process, I
mistankenly converted `$query->whereGt('scheduled_at', $now);` to
`$queryBuilder->andWhere('st.scheduledAt >= :now');`. It should be `>`
instead of `>=`.

[MAILPOET-2996]
2021-09-29 13:53:27 +02:00
Rodrigo Primo
e804a0fe7d Fix method used for a integration test
The test ScheduledTaskTest::testItCanGetFutureScheduledTasks() was
created to test ScheduledTask::findFutureScheduledByType() but due to a
mistake it was testing ScheduledTask::findDueByType().

[MAILPOET-2996]
2021-09-29 13:53:27 +02:00
Rodrigo Primo
60ae98e09c Helper method to support migration from Paris to Doctrine
This commit adds a helper method called convertTaskClass() to
CronWorkerRunner to support the migration of the code inside this class
from Paris to Doctrine. This method receives a ScheduledTaskEntity and
returns a ScheduledTask. It will be remove once the migration is
finished.

[MAILPOET-2996]
2021-09-29 13:53:27 +02:00
Rodrigo Primo
65eef3dfbe Migrate methods findDueByType() and findRunningByType() to Doctrine
[MAILPOET-2996]
2021-09-29 13:53:27 +02:00
Ján Mikláš
252197d0d7 Release 3.71.1 2021-09-29 13:48:43 +02:00
Pavel Dohnal
ec76a5c868 Check if the form id is missing in the widget
[MAILPOET-3837]
2021-09-29 12:55:27 +02:00
Brezo Cordero
df5cab2060 Fix flaky schedule welcome email test
[MAILPOET-3793]
2021-09-29 09:59:25 +02:00
Brezo Cordero
d37f0642d5 Fix flaky schedule automatic email test
[MAILPOET-3793]
2021-09-29 09:59:25 +02:00
Rodrigo Primo
06ddc42657 Run 'codecept build' before runninng PHPStan checks
This commit adds a call to the command 'codecept build' before running
PHPStan checks inside the command './do qa:phpstan'. This is needed to
make sure that the PHPStan checks don't fail with the error bellow
because of missing test support files that are autogenerated by
Codeception:

```
Bootstrap file tests/_support/_generated/AcceptanceTesterActions.php does not exist.
```

[MAILPOET-3552]
2021-09-29 09:54:29 +02:00
Ján Mikláš
d9862c97d5 Release 3.71.0 2021-09-28 15:25:08 +02:00
Pavel Dohnal
72b018355b Update code after react replace string upgrade
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
a7153d71b6 Fix script to prevent multiple var statements
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
fcc28a6ad2 Revert react-select upgrade
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
501a6c90f6 Maintenance of packege-lock
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
fb66e72632 Install husky
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
59b1756429 Update html2canvas
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
c0a544290d Update tinymce
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
49d35961af Update react packages
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
4a94eb34a7 Remove husky dependencies
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
891d28013b Update date-fns
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
0061ca59ce Update codemirror
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
bd9f088709 Update test dependencies
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
50483e945e Update scss packages
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
d8a0c2e9eb Update webpack packages
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
c338213a3c Fix audit issues
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
be072583e4 Update eslint
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
7524b7d972 Update types
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
6bd6ac67f2 Update storybook dependencies
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
e22adb1c7f Update babel dependencies
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Pavel Dohnal
5048738d7f Update babel runtime
[MAILPOET-3724]
2021-09-27 16:11:42 +02:00
Jan Lysý
7fcdd5da91 Remove version detection from svn:publish command
[MAILPOET-3828]
2021-09-27 10:26:43 +02:00
Rodrigo Primo
2f494a2951 Change ./do qa:code-sniffer to include warnings by default
This change is necessary to make sure we are running PHPCS with the same
parameters in both CircleCI and the pre-commit hook. For more
information see the description of the related Jira ticket.

[MAILPOET-3831]
2021-09-27 10:14:49 +02:00
Jan Lysý
e9a4c6e090 Fix incompatibility after Doctrine refactor
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
857268c5ff Allow preview for unsaved forms
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
196b0cfd93 Change link in post-editor-block to template selection
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
2af076ab83 Delete FormFactory
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
8ae5219afa Change link in post-editor-block
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
e1f83d4b51 Remove code for creating a new form
This code was unreachable because the flow for form creation was changed.

[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
43d9616fad Change parameters for history.replaceState
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
cb48009d87 Add acceptance test for new form cancel
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
74441ba881 Ensure form id in url
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
64acc14cd5 Save editor URL in store
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
93eb9a6886 Set form id in store on save
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
42e73437d9 Don't create a form on template select
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Jan Lysý
1a3f16a3c0 Remove action create from endpoint
[MAILPOET-3662]
2021-09-27 10:14:02 +02:00
Pavel Dohnal
9977ed75fb Deprecate the form model
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Pavel Dohnal
b94b8f119a Remove old form model from MP2 migrator
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00
Pavel Dohnal
05d69913a6 Remove old Form model from the widget test
[MAILPOET-3644]
2021-09-22 15:37:24 +02:00