Commit Graph

15254 Commits

Author SHA1 Message Date
Jan Jakes
bc936ef13e Quote emails when inserting/updating WooCommerce subscribers
[MAILPOET-4248]
2022-04-14 09:41:55 +02:00
Brezo Cordero
cfc7c623e3 Separate insert from update on duplicate
[MAILPOET-4248]
2022-04-14 09:41:55 +02:00
Rostislav Wolny
c72e58bc07 Remove invalid and unused translation slug from template
The slug helpTooltipSendPreview is not used in JS. It is probably just a leftover.
[MAILPOET-4243]
2022-04-13 11:17:33 +02:00
Rostislav Wolny
bd2b064c8f Use empty string when translation is null
In a case when translation is not set correctly in a template
(e.g. 'helpTooltipSendPreview': helpTooltipSendPreview)
it's value might be evaluated as null and trigger a deprecation warning on PHP8.1.
[MAILPOET-4243]
2022-04-13 11:17:33 +02:00
David Remer
fa4d673098 Do not track with Cookie when headers have been sent
[MAILPOET-4060]
2022-04-13 10:48:31 +02:00
David Remer
c33937f3ae Finish user registration in acceptance test
[MAILPOET-4060]
2022-04-13 10:48:31 +02:00
Jan Jakes
d482ba79e7 Add prettier autoformatting commit to .git-blame-ignore-revs
[MAILPOET-4075]
2022-04-12 16:17:05 +02:00
Jan Jakes
ab27eaee2d Autoformat files with prettier
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
2506ff5490 Fix eslint-ignore rules that would be broken by prettier formatting
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
0d8100eb3d Ignore scss files for now (we have exact strict stylelint rules)
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
36114d89bb Add prettier check to CircleCI job
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
ba322bc078 Add Robo commands for prettier
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
269e598511 Fix eslint parsing of newsletter editor tests
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
f6a3b7e958 Run root lint-staged in pre-commit hook
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
02c0b2329a Add prettier to root link-staged config
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
19a363d978 Uninstall lint-staged from mailpoet directory
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
36fc50271f Install lint-staged in the monorepo root
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
69ddf8cbe0 Remove specific eslint formatting rules (prettier formats now)
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
6d9db1cde5 Add prettier ruleset to eslint configuration
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
45acd821a3 Install eslint-config-prettier
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
9055bdeb11 Add prettier configuration
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
50c80b8a05 Avoid curcular symlink paths
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
b5530bad70 Install repo root dependencies in ./do install
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Jan Jakes
636aca74b8 Install prettier to the monorepo root
[MAILPOET-4075]
2022-04-12 15:38:27 +02:00
Rodrigo Primo
6acab0dab9 Release 3.87.0 2022-04-12 10:14:18 -03:00
Rodrigo Primo
fdb4663ca1 Revert "Check post-types validity for requests"
This reverts commit b800cf189f.
2022-04-11 16:30:59 -03:00
Rodrigo Primo
fbcfa6db82 Revert "Fix failing tests because of un-registered product post type"
This reverts commit 7854645ea4.
2022-04-11 16:30:59 -03:00
Rodrigo Primo
6c00969e83 Revert "Correctly process sortBy argument when fetching posts"
This reverts commit 79530d1656.
2022-04-11 16:30:59 -03:00
Rodrigo Primo
62e393a76d Revert "Define BlockPostQuery for nicer args processing for quering"
This reverts commit 5b40a585e7.
2022-04-11 16:30:59 -03:00
Rodrigo Primo
79991ae462 Revert "Restrict dynamic blocks to public post status only"
This reverts commit 72b3172c1a.
2022-04-11 16:30:59 -03:00
Rodrigo Primo
2c5e1ab184 Revert "Add tests to check output of API methods querying posts"
This reverts commit be9e4ea9fd.
2022-04-11 16:30:59 -03:00
Rodrigo Primo
8aa2565e17 Revert "Fix a failing test with too much dependecy on db state"
This reverts commit 5f5a4d576f.
2022-04-11 16:30:59 -03:00
Sam Najian
5f5a4d576f Fix a failing test with too much dependecy on db state
[MAILPOET-4082]
2022-04-11 14:54:56 -03:00
Sam Najian
be9e4ea9fd Add tests to check output of API methods querying posts
[MAILPOET-4082]
2022-04-11 14:54:56 -03:00
Sam Najian
72b3172c1a Restrict dynamic blocks to public post status only
[MAILPOET-4082]
2022-04-11 14:54:56 -03:00
Sam Najian
5b40a585e7 Define BlockPostQuery for nicer args processing for quering
[MAILPOET-4082]
2022-04-11 14:54:56 -03:00
Sam Najian
79530d1656 Correctly process sortBy argument when fetching posts
[MAILPOET-4082]
2022-04-11 14:54:56 -03:00
Sam Najian
7854645ea4 Fix failing tests because of un-registered product post type
Post type `product` should be registered for the post type
related functions to work correctly

[MAILPOET-4082]
2022-04-11 14:54:56 -03:00
Sam Najian
b800cf189f Check post-types validity for requests
[MAILPOET-4082]
2022-04-11 14:54:56 -03:00
Rostislav Wolny
789385b0c4 Refactor mailerInstance property to mailerMethod
Naming mailerInstance was confusing since
it is not instance of Mailer class but instance of MailerMethod.
[MAILPOET-4115]
2022-04-11 16:54:38 +02:00
Rostislav Wolny
708333e68a Replace ternary operators with null coalescing operators in MailerAPI
[MAILPOET-4115]
2022-04-11 16:54:38 +02:00
Rostislav Wolny
bc6026ca77 Add typehints to MailerMethod interface
[MAILPOET-4115]
2022-04-11 16:54:38 +02:00
Rostislav Wolny
6240debc10 Declare strict types in newly added MailerRelated classes
[MAILPOET-4115]
2022-04-11 16:54:38 +02:00
Rostislav Wolny
8970f00bf3 Inject MailerMethod instance through constructor in Mailer
[MAILPOET-4115]
2022-04-11 16:54:38 +02:00
Rostislav Wolny
2440ed13d9 Remove factory functionality from Mailer
[MAILPOET-4115]
2022-04-11 16:54:38 +02:00
Rostislav Wolny
e253b8f09f Refactor MailerTest to use MailerFactory
[MAILPOET-4115]
2022-04-11 16:54:38 +02:00
Rostislav Wolny
6cd22a1abe Remove factory functionality test cases from MailerTest
[MAILPOET-4115]
2022-04-11 16:54:38 +02:00
Rostislav Wolny
36edab34e6 Move logic for return path fallback address from method classes to factory
[MAILPOET-4115]
2022-04-11 16:54:38 +02:00
Rostislav Wolny
b8bfa60634 Replace static Stub::xxx calls with test case methods in SendingQueueTest
[MAILPOET-4115]
2022-04-11 16:54:38 +02:00
Rostislav Wolny
d4a8315933 Use mailerFactory in SendingQueue Mailer task
[MAILPOET-4115]
2022-04-11 16:54:38 +02:00