Commit Graph

15254 Commits

Author SHA1 Message Date
Rodrigo Primo
f547eea48b Small refactor to move duplicated code to a private method in AutomatedEmailsTest
[MAILPOET-4150]
2022-05-13 08:45:28 +02:00
Rodrigo Primo
611cf5abb7 Deprecate StatisticsWooCommercePurchases model as it is not used anymore
We can remove this model after six months.

[MAILPOET-4150]
2022-05-13 08:45:28 +02:00
Rodrigo Primo
1c9a5afc2b Deprecate the old model StatisticsOpens
This model is not used anymore in our codebase and can be removed after
a six months grace period.

[MAILPOET-4150]
2022-05-13 08:45:28 +02:00
Rodrigo Primo
0f5700bf2b Replace old model StatisticsOpens with Doctrine code in StatisticsNewsletters
The test class \MailPoet\Subscribers\ImportExport\PersonalDataExporters\NewslettersExporterTest
calls the modified
\MailPoet\Models\StatisticsNewsletters::getAllForSubscriber() method
several times so it can be used to confirm that the changes made in this
commit work as expected.

[MAILPOET-4150]
2022-05-13 08:45:28 +02:00
Rodrigo Primo
e6dd8fedbf Replace old model StatisticsOpens in OpensTest and NewslettersExporterTest
[MAILPOET-4150]
2022-05-13 08:45:28 +02:00
Rodrigo Primo
d010cb1a69 Deprecate the model StatisticsClicks
This model is not used anymore in our codebase and can be removed after
a six months grace period.

[MAILPOET-4150]
2022-05-13 08:45:28 +02:00
Rodrigo Primo
98fee5778f Replace StatisticsClicks and StatisticsOpens models in WooCommercePastRevenues
Replace old Paris code with Doctrine code

I was not able to test that the command `./do gen:data past_revenues` is
still working after the changes here as it is failing on master due to
an unrelated error. I will start a discussion about this problema and
potentially create a Jira ticket.

[MAILPOET-4150]
2022-05-13 08:45:28 +02:00
Rodrigo Primo
ae65f06471 Small refactor to get an instance of EntityManager only once
[MAILPOET-4150]
2022-05-13 08:45:28 +02:00
Rodrigo Primo
394353781d Replace Paris models with Doctrine code in WorkerTest.php
This commit replaces the models StatisticsClicks and StatisticsOpens

[MAILPOET-4150]
2022-05-13 08:45:28 +02:00
Rodrigo Primo
8e8460e0fd Replace Paris models with Doctrine code in ClicksTest
This commit replaces the models StatisticsClicks and StatisticsOpens

[MAILPOET-4150]
2022-05-13 08:45:28 +02:00
Rodrigo Primo
2df41bdf63 Replace remaining Paris code from AutomatedEmailsTest with Doctrine code
[MAILPOET-4150]
2022-05-13 08:45:28 +02:00
Rodrigo Primo
bddf8a7e4c Replace old Newsletter model with Doctrine entity in AutomatedEmailsTest
I'm doing as part of the ticket to replace other models as it will make
replacing MailPoet\Models\StatisticsClicks and
MailPoet\Models\StatisticsOpens in AutomatedEmailsTest easier.

[MAILPOET-4150]
2022-05-13 08:45:28 +02:00
Rodrigo Primo
6c98e5adcf Deprecate DynamicSegmentFilter model as it is not used anymore
We can remove this model after six months.

[MAILPOET-4150]
2022-05-13 08:45:28 +02:00
David Remer
f5543b1990 Overwrite add_role method when creating test users
[MAILPOET-2834]
2022-05-12 11:41:57 +02:00
David Remer
7b33a94d37 Add set_user_role hook
[MAILPOET-2834]
2022-05-12 11:41:57 +02:00
David Remer
7e43385040 Switch newRole and oldRole in array_diff to get correct difference
[MAILPOET-2834]
2022-05-12 11:41:57 +02:00
David Remer
9bd6f29870 Add add_user_role hook to synchronizeUser
[MAILPOET-2834]
2022-05-12 11:41:57 +02:00
Oluwaseun Olorunsola
f15a7634e5 Update circleci/mysql:5.5 to cimg/mysql:5.7
Circle ci does not offer cimg/mysql:5.5, so we have to update to cimg/mysql:5.7

MAILPOET-4103
2022-05-12 09:02:44 +02:00
Oluwaseun Olorunsola
aa0ce4a092 Update circleci/mysql 5.7.27 and 8.0 to cimg/mysql
MAILPOET-4103
2022-05-12 09:02:44 +02:00
Jan Jakes
ed3b46390c Reuse types instead of redefining them
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
cfce217cf6 Fix typings of media upload component, remove unused property
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
4c14ed2204 Unify "below_post" strings to "below_posts" (that is used in the form data)
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
9e19d06c26 Ignore types in marketing optin block for now
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
30e7b8797e Remove no longer necessary typings
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
43210eff71 Add missing types for gradients
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
ee1e87358f Add missing types for useSetting
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
f5bece60ee Add __experimentalLibrary into block editor types
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
4d3933e12f Install block-editor-related @types packages
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
1fde80de8e Allow all modern features in TS code (TS only checks types, Babel transpiles)
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
7490ee87d7 Fix default value for a boolean flag
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
606d0902dc Remove non-existent property
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
a5375ffd44 Fix component properties according to WP types
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
2b27f537f9 Add types for custom font-family select options
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
ec89251db2 Use WP rich text types instead of custom types
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
ec9324d3e8 Use more precise type for size unit
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
8b45922b86 Fix incorrect type definition
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
f346dbfd02 Remove problematic "object" type
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
da624cff1f Remove no longer necessary types
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
abae76f8df Pass string values to select control
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
beb0d0f3da Make store controls function signatures compatible with @types/wordpress__data
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
7695262330 Use form type TS types in getFormWidth selector
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
1b2532efe5 Add form placement data types
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
a17b47a2ec Convert form editor store selectors to TypeScript
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
ab828b2708 Convert form editor store to TypeScript
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
ce5b6bd38d Avoid type errors caused by untyped store actions in dynamic segments
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
9254b43e7b Avoid type errors caused by untyped store actions in settings
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
b12cb1f8ba Type select and dispatch functions for settings store
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
8aa42b9ba0 Fix numeric select values not being passed as strings
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Jakes
be9b6722e4 Install all non-block-editor-related @types/wordpress__<...> libraries
[MAILPOET-4323]
2022-05-11 14:26:58 +02:00
Jan Lysý
32c27b91c1 Add handling for more 5xx errors from the bridge
[MAILPOET-4209]
2022-05-11 09:13:09 +02:00