Commit Graph

15684 Commits

Author SHA1 Message Date
Rostislav Wolny
87fdab9ca5 Fix deleting non-existent directory error
[MAILPOET-4175]
2022-03-28 13:49:41 +02:00
Rostislav Wolny
4a4dbb2949 Update composer
[MAILPOET-4175]
2022-03-28 13:49:41 +02:00
David Remer
4a3d9b6400 Ensure we select today in the date picker
At the end of the month it can happen that the current date (e.g. 28th) is twice visible in the
date picker. In order to prevent trying to select the 28th of the previous month, this commit
ensures, we pick the current date by switching the class selector

[MAILPOET-4205]
2022-03-28 13:15:24 +02:00
Oluwaseun Olorunsola
8a3493ce4e Fix Division by zero Error in Newsletter button
[MAILPOET-4193]
2022-03-28 08:58:52 +02:00
Rodrigo Primo
54ecb6065c Replace old ScheduledTask model with ScheduledTaskEntity in SubscribersFinder
[MAILPOET-3925]
2022-03-28 08:13:53 +02:00
Rodrigo Primo
da5537b9fe Replace old Subscriber model with Doctrine equivalents in SubscribersFinder
[MAILPOET-3925]
2022-03-28 08:13:53 +02:00
Rodrigo Primo
9c1f0556b7 Replace old model ScheduledTaskSubscriber with ScheduledTaskSubscriberEntity in SubscribersFinder
[MAILPOET-3925]
2022-03-28 08:13:53 +02:00
Rodrigo Primo
8c70e0eb80 Replace old Paris models with Doctrine entities in SubscribersFinderTest
[MAILPOET-3925]
2022-03-28 08:13:53 +02:00
Rodrigo Primo
9acc3028fa Reset the list of segments to avoid problems when creating multiple subscribers
Since we use the same instance of the Subscriber data factory to create
multiple subscribers, we need to reset the segments array before adding
segments to make sure they don't persist when creating multiple
subscribers.

[MAILPOET-3925]
2022-03-28 08:13:53 +02:00
Rodrigo Primo
0a73135c83 Replace old Segment model with Doctrine in SubscribersFinder
[MAILPOET-3925]
2022-03-28 08:13:53 +02:00
Rodrigo Primo
d54b2d4282 Use \MailPoetTest::truncateEntity() instead of ORM::raw_execute() in SubscribersFinderTest
Doing this as part of the Paris to Doctrine refactor

[MAILPOET-3925]
2022-03-28 08:13:53 +02:00
Rodrigo Primo
89ba1f0f4e Refactor SubscribersFinder::findSubscribersInSegments() to Doctrine
[MAILPOET-3925]
2022-03-28 08:13:53 +02:00
Rostislav Wolny
c9ffc03c8c Update name of 1and1 web host in settings
[MAILPOET-4196]
2022-03-24 16:03:03 +01:00
David Remer
3319a1d00b Add test to validate that an empty subscriber is used to render Newsletter
[MAILPOET-4190]
2022-03-24 16:01:58 +01:00
David Remer
44b4cc7478 Set an empty subscriber when no Subscriber found for ViewInBrowser
[MAILPOET-4190]
2022-03-24 16:01:58 +01:00
David Remer
a4d241fe18 Do not reset filter and search when switching tabs
[MAILPOET-3535]
2022-03-24 16:00:56 +01:00
David Remer
93acb2b39c Remove outdated ignore error statements
[MAILPOET-3535]
2022-03-24 16:00:56 +01:00
David Remer
45dd3fc308 Use current definition for counting subscribers in a Group
[MAILPOET-3535]
2022-03-24 16:00:56 +01:00
David Remer
a8f80e61d1 Exclude wc-on-hold and wc-pending orders from calculating segment
[MAILPOET-4127]
2022-03-24 16:00:16 +01:00
David Remer
7f13774ce6 Exclude wc-on-hold and wc-pending orders from calculating segment
[MAILPOET-4127]
2022-03-24 16:00:16 +01:00
wxa
6cd3247335 Release 3.85.0 2022-03-22 17:00:56 +03:00
John Oleksowicz
d3bddd3673 Add transactional sending method to reporter
[MAILPOET-4148]
2022-03-21 10:51:25 +01:00
John Oleksowicz
c701f444ec Add transactional sending method to system info
[MAILPOET-4148]
2022-03-21 10:51:25 +01:00
David Remer
ec7fe4161f Do not increment counter when sending method is MSS
[MAILPOET-4122]
2022-03-21 10:17:37 +01:00
David Remer
c9f7e85eaa Fix MailerLog data on System Status page
[MAILPOET-4122]
2022-03-21 10:17:37 +01:00
David Remer
bc565dac42 Fix failing test testItUpdatesMailerLogSentCount
[MAILPOET-4122]
2022-03-21 10:17:37 +01:00
David Remer
ac52f2af99 Introduce phpstan-type for MailerLog data
[MAILPOET-4122]
2022-03-21 10:17:37 +01:00
David Remer
53da8bf999 Change data model to calculate sending limit reached
Before this commit, we used to calculate whether the sending limit was reached
by simply counting, how many emails where sent and when we did send them the
last time. In case the last time we did send was before the sending frequency,
and we reached the limit we would reset the calculation.

This led to the following problem:

In case we had e.g. one email send at an outdated timestamp, we would first fill
the outdated timestamp and once we reached the limit, we would reset the counter
and start with the current timestamp. So it followed, we would send more emails
than the limit would allow for.

[MAILPOET-4122]
2022-03-21 10:17:37 +01:00
Rostislav Wolny
00b0723f96 Refactor logic for detection of translations installed from .org
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Rostislav Wolny
fc5b25dd20 Force installing language packs updates on plugin activation
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Rostislav Wolny
84b7ec709a Fetch .com language packs info during plugin activation
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Rostislav Wolny
db14f851a1 Prevent installing translations from .org if they are available on .com
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Rostislav Wolny
7791219d7d Refactor processing translations API data in two methods
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Rostislav Wolny
a21e31ca2d Make sure translations from .org are replaced by translations from .com
When the plugin is initially installed it may download translations from .org.
The translations from .org may have a newer date then translations from .com, but are incomplete.
This change ensures that translations installed from .org are always replaced by translations from .com.
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Rostislav Wolny
ac17700995 Hook into translation update earlier in plugin initialisation
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Jan Lysý
002f20a75d Remove deleting *.po files
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
885209d9a3 Fix translation loading
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
d0822be924 Remove translations:pack command
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
40860d1d59 Increase minimal timeout for API requests and fix comment
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
dd54518933 Change timeout for translation API requests
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
6f020342c1 Add integration test for TranslationUpdater
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
982a6ee073 Remove loading plugin translations
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
08796ed48b Remove generating translations
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
afebe36c81 Add automatic check for translations
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
f86f4e3f79 Add wordpress functions
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
75cbcacae2 Remove static usage of WP functions
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Jakes
9ea484c972 Fix TS type checking not workfing in Docker
[MAILPOET-4194]
2022-03-17 09:27:44 +01:00
David Remer
7290cbf38c Force action-scheduler to run
According to the action scheduler documentation, we can have multiple
concurrent batches. So we can force the run and thus not fail the
tests.

The problem with a lot of concurrent batches could be an exhaust of the
database or the CI server in general

[MAILPOET-4169]
2022-03-16 13:20:59 +01:00
Jan Jakes
2ba8d15c6a Pass transifex token using env variable
[MAILPOET-4189]
2022-03-16 13:20:19 +01:00
Jan Jakes
93fc9f50e3 Remove installation of python, pip, and old transifex CLI
[MAILPOET-4189]
2022-03-16 13:20:19 +01:00