Commit Graph

7751 Commits

Author SHA1 Message Date
Ilyas Foo ebec562699 Wrap product task import around experiment 2022-05-16 10:49:49 +08:00
Tam Mullen dff5d18c4c Updated assertion for admin.php?page=wc-admin k6 performance request 2022-05-15 22:13:52 +01:00
Tam Mullen cd0a491094 Updated assertion value for admin.php?page=wc-admin k6 performance request 2022-05-15 13:18:16 +01:00
moon fded54dd81 Revert back google ad image 2022-05-13 15:44:11 -07:00
Barry Hughes c08585ab69
Update fix-products-api-method-visibility
No changelog needed (place explanation in comment field)
2022-05-13 15:36:04 -07:00
moon 7d1c1b7894 Add . 2022-05-13 15:34:35 -07:00
moon b85f0b0aa7 Add Changelog 2022-05-13 15:33:47 -07:00
moon 3431c73046 Add tiktok marketing task to the default free extensions list 2022-05-13 15:26:00 -07:00
Corey McKrill 6229dfcb59
Add changelog 2022-05-13 15:24:42 -07:00
Corey McKrill 634c96d29c
Products API: revert get_objects method to `protected`
In 029257b I inadvertently changed the visibility of the get_objects
method to public. There is no need for its visibility to differ from
the parent class, and it ended up causing fatal errors for other classes
that are extending WC_REST_Products_Controller. This simply changes
the visibility back to protected.
2022-05-13 15:09:41 -07:00
roykho 1e7466ade3
Add changelog entry 2022-05-13 12:05:37 -07:00
roykho 9f41cf7609
Update changelog to reflect 6.5.1 release 2022-05-13 11:56:55 -07:00
Nestor Soriano 500db3cdba
Log all db errors and exceptions in the posts to orders migrators.
To achieve this:

- A new class is added, TableMigrator, containing basic in-memory
  error storage methods, and auxiliary db_query and db_get_result
  methods.
- MetaToCustomTableMigrator and MetaToMetaTableMigrator classes
  now extend TableMigrator and use these db_* methods.
- process_migration_batch_for_ids is now a method in TableMigrator,
  it just calls the abstract process_migration_batch_for_ids_core,
  catches exceptions, and returns an array of errors.
- PostsToOrdersMigrationController now logs all the errors returned
  by process_migration_batch_for_ids in all the migrator classes.
- New utility method: ArrayUtil::to_ranges_string
2022-05-13 16:29:55 +02:00
Nestor Soriano 087e8ecacf
Fix issues in error handling in the MetaToCustomTableMigrator class
There were some inconsistencies, such as trying to treat an error
array as a string, or accessing to a non-existing column from a
dataset retrieved from the db on error.
2022-05-13 16:25:03 +02:00
Nestor Soriano d0e3035cc8
Adjust visibility of methods in the orders table migrator classes.
Many methods were public/protected when they could be protected/private
instead. All methods are adjusted to the minimum visibility required
for the current implementation to work.

Also minor adjustments for phpcs, such as "ignore" comments.
2022-05-13 16:16:04 +02:00
Lourens Schep 780fbffc68 Fix merge conflict type issue 2022-05-13 10:29:21 -03:00
Lourens Schep 03cb7e5a42 Fix completed image display in two column layout 2022-05-13 10:29:21 -03:00
Lourens Schep fe1e814a41 Fix customer effort types and add timeout to thank you message 2022-05-13 10:29:21 -03:00
Lourens Schep b441a84d9d Keep score displayed if user cancels out of CES Modal 2022-05-13 10:29:21 -03:00
Lourens Schep 45dfda2b65 Move CES show logic to the back end, so there is no loading delay 2022-05-13 10:29:21 -03:00
Lourens Schep 4b27f831f7 Add CES submission 2022-05-13 10:29:21 -03:00
Lourens Schep 7aa37d609f Added new completed header and customer feedback component 2022-05-13 10:29:20 -03:00
vedanshujain 07977131e1 Address PR feedback - function name for readability, indentation etc. 2022-05-13 16:37:34 +05:30
vedanshujain 7b0564a44e Add support to migrate meta tables. 2022-05-13 16:37:34 +05:30
Vedanshu Jain ac4367f7ef Correct formatting for comment.
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2022-05-13 16:37:33 +05:30
vedanshujain 07f9d2cd2a Rename count to count_unmigrated for better readability. 2022-05-13 16:37:33 +05:30
vedanshujain 71cc54522d Applied PR feedback. 2022-05-13 16:37:33 +05:30
vedanshujain ea29eb8c49 Increase batch size to 500 for faster processing. 2022-05-13 16:37:33 +05:30
vedanshujain 1722793c80 Add testing instructions link. 2022-05-13 16:37:33 +05:30
vedanshujain 05dae81030 Removed unused export. 2022-05-13 16:37:33 +05:30
vedanshujain 75f5528445 Addressed feedback comments. 2022-05-13 16:37:33 +05:30
vedanshujain 99a76bf7d4 Add verify command in CLI to verify migrated orders. 2022-05-13 16:37:33 +05:30
vedanshujain d2e6689407 More defensive checks for date_epoch data type. 2022-05-13 16:37:33 +05:30
vedanshujain 8c148e7e4b Use `+` to preserve order ID index. 2022-05-13 16:37:33 +05:30
vedanshujain 3578b02b0c Add function to verify migrate orders for COT migration. 2022-05-13 16:37:33 +05:30
vedanshujain 8876ddd5ca Add verification support to custom table migrators. 2022-05-13 16:37:33 +05:30
vedanshujain 31e5e08330 Add changelog. 2022-05-13 16:37:33 +05:30
vedanshujain 1750590822 Add CLI support to run migrations. 2022-05-13 16:37:33 +05:30
Ilyas Foo 1b0ee6f5da
Remove WCAdmin deactivation note (#33028)
* Add wc-admin-deactivate-plugin to list of obselete notes

* Changelog
2022-05-13 13:59:19 +08:00
RJ 2c5f47a91d
Merge pull request #32944 from woocommerce/add/tracks-experimental-products
Add tracks for experimental products page
2022-05-13 12:41:48 +08:00
Chi-Hsuan Huang 55884d841e Add changelog 2022-05-13 12:10:00 +08:00
Chi-Hsuan Huang 3d55bfb2be Add fashion sample products for product task 2022-05-13 12:10:00 +08:00
Chi-Hsuan Huang 12e3a2f27d Add a feature flag for fasion sample products 2022-05-13 12:10:00 +08:00
Chi-Hsuan Huang eb5ef8dfc6
Merge pull request #32973 from woocommerce/fix/32956-notice-on-empty-product-page
Fix notice on empty product page
2022-05-13 10:33:28 +08:00
moon 8adcae1072 Remove @types/history -- it is part of history 5.3.0 2022-05-12 18:34:13 -07:00
moon e40f73a555 Add changelog 2022-05-12 18:32:06 -07:00
moon aa7853edbd Update history package to the latest 5.3.0 version 2022-05-12 18:28:43 -07:00
RJChow f3cc00ff8b changelogs 2022-05-13 06:20:11 +08:00
RJChow 05cd1c30de Added tracks events to experimental products pages 2022-05-13 06:16:28 +08:00
roykho 7b0e30d852
Add changelog entry 2022-05-12 14:58:49 -07:00
roykho d69eeba36e
Bumping WP tested up to version to 6.0 2022-05-12 14:55:15 -07:00
moon f3035c65c7 Add changelog 2022-05-12 14:39:37 -07:00
moon aaf9282277 Add Experimental_Abtest usage 2022-05-12 14:34:41 -07:00
moon daeebfc622 Add comment for the hook 2022-05-12 14:17:05 -07:00
moon bf4d777704 Add changelog 2022-05-12 14:10:00 -07:00
Joel Thiessen cb8076966e
Adding badge to legacy admin menu to indicate remaining onboarding tasks 2022-05-12 12:29:45 -07:00
louwie17 f05d8959c9
Merge pull request #32981 from woocommerce/fix/32962_multisite_disable
Make sure we also disable WooCommerce Admin on a multi site
2022-05-12 15:59:16 -03:00
Lourens Schep efc11d7fe2 Add changelog 2022-05-12 13:31:19 -03:00
Peter Fabian d88d01a982
Merge pull request #32919 from YordanSoares/fix-broken-urls-unicode
Fix broken URLs of recommendations from Unicode
2022-05-12 15:21:52 +02:00
Lourens Schep 7d23a2b7c8 Make sure we also disable WooCommerce Admin on a multi site 2022-05-12 10:06:25 -03:00
Chi-Hsuan Huang 4992899d84
Merge pull request #32975 from woocommerce/fix/32959-product-task-text-shown-before-accordion-is-expanded
Fix product task text shown before accordion is expanded on stack layout
2022-05-12 15:26:04 +08:00
Chi-Hsuan Huang 8440400f3c Set fixed width for experimental product layout 2022-05-12 14:08:03 +08:00
Chris Aprea 3e1d7ac99b Copy changes and remove console log 2022-05-12 14:46:06 +10:00
Chris Aprea c6836e270e Hardcode experiment name. 2022-05-12 13:11:42 +10:00
Ilyas Foo 713198f5ed Renames to increase clarity 2022-05-12 10:41:15 +08:00
Ilyas Foo f7263c60ff Changelogs 2022-05-12 10:41:15 +08:00
Ilyas Foo 481b1e8566 Add backend experiment logic 2022-05-12 10:41:15 +08:00
Ilyas Foo 16c36e1f7d Import hook from onboarding 2022-05-12 10:41:15 +08:00
moon 14ff4f63ee Add changelog 2022-05-11 19:12:35 -07:00
moon 7c06b4325b Use the core version for the @deprecated tags 2022-05-11 19:11:16 -07:00
Chi-Hsuan Huang 5453737747 Fix product task text shown before accordion is expanded on stack layout 2022-05-12 09:56:53 +08:00
Chi-Hsuan Huang 1ccacd95ab Add changelog 2022-05-12 09:24:37 +08:00
Chi-Hsuan Huang 03731c64d5 Fix notice on emptry product page 2022-05-12 09:24:08 +08:00
Chris Aprea 022c60f9e5 Tidy up experiment code and conditional rendering for the onboarding steps component. 2022-05-12 10:32:54 +10:00
Joel T 8e04383fb0 Enabling reminder bar for both experiments and control 2022-05-11 16:18:51 -07:00
Joel T 27cecd9b83 Hiding badge when remaining tasks is now zero 2022-05-11 16:18:51 -07:00
Joel T 29e521dca0 Reworking condition to allow reminder badge with corret list for all experiment states and control 2022-05-11 16:18:51 -07:00
Joel T 46d6e6dd3e Updating badge for tasks that complete with no page refresh 2022-05-11 16:18:50 -07:00
Joel T 3b28616640 Altering badge logic to function based on experiments instead of feature flag 2022-05-11 16:18:50 -07:00
Joel T 6693e9fba8 Correcting spacing manually since autoformatter isn't working 2022-05-11 16:18:50 -07:00
Joel T cd2b9732dd Adding changelog 2022-05-11 16:18:50 -07:00
Joel T 3a443234ea Adding basic support for tasks badge to woo navigation 2022-05-11 16:18:50 -07:00
Joel T 18e0af4c29 Adding badge to legacy menu for onboarding tasks remaining 2022-05-11 16:18:50 -07:00
Jorge A. Torres 82e6e31903
Merge pull request #32968 from woocommerce/fix/download_dir_table_key
Fix/download dir table key
2022-05-11 18:25:56 -03:00
louwie17 ed2adee551
Merge pull request #32966 from woocommerce/fix/32962_fatal_error_wc_admin_conflict
Add FeaturePlugin facade under the Admin namespace to avoid conflict WCA conflict
2022-05-11 17:57:12 -03:00
barryhughes d3bf32a147 Prefer get_var() over get_col(). 2022-05-11 20:12:20 +00:00
Moon 9720874f50
Merge pull request #32954 from woocommerce/update/32883-update-react-dates-dependency
Update react-dates to 21.8.0
2022-05-11 12:49:16 -07:00
Lourens Schep ce292870c3 Add changelog 2022-05-11 16:41:58 -03:00
barryhughes 44bb55452a Update install versions test :-/ 2022-05-11 19:28:41 +00:00
barryhughes 0d1da4e8bf 6.5.1 update routine for approved download directories. 2022-05-11 18:32:55 +00:00
Lourens Schep 4a2a94eb8c Add FeaturePlugin facade under the Admin namespace to avoid conflict WCA conflict 2022-05-11 14:54:02 -03:00
barryhughes f994ba1839 Apply max size to URL col in download directories table. 2022-05-11 17:07:32 +00:00
Jorge A. Torres 4ef86419da Add changelog entry 2022-05-11 11:42:35 -03:00
Jorge A. Torres 992f936fae Check for `recorded_sales` op data in COT migration tests 2022-05-11 11:42:35 -03:00
Chris Aprea aa8835bfce Merge branch 'trunk' into add/experiment-subscriptions-admin-menu-1 2022-05-11 17:04:29 +10:00
Chris Aprea f66a8c5b0f Add basic experiment functionality. 2022-05-11 15:37:14 +10:00
Ilyas Foo 016a23f202
Merge pull request #32941 from woocommerce/dev/32635-implement-product-task-experiment
Add ExPlat call for product task experiment
2022-05-11 13:03:27 +08:00
James Allan 5eb81985e4 Add changelog 2022-05-11 12:11:32 +10:00
Chi-Hsuan Huang edbfd5bf93
Merge pull request #32937 from woocommerce/update/convert-woo-tracks-to-ts
Convert `@woocommerce/tracks` to TS
2022-05-11 09:57:27 +08:00
James Allan 077d68eecd Remove unused maestro card SVG file 2022-05-11 11:57:08 +10:00
Chi-Hsuan Huang 79814ccccf
Merge pull request #32936 from woocommerce/update/memoize-one
Remove `memoize-one` from woo admin & update it to ^6.0.0 for woo components
2022-05-11 09:55:40 +08:00
Chi-Hsuan Huang 63c9cb3e09
Merge pull request #32932 from woocommerce/update/task-completion-time
Update import product task to record completion time in time frame format
2022-05-11 09:55:25 +08:00
moon 15ecfd9b16 Update react-dates to 21.8.0 2022-05-10 18:12:32 -07:00
Eric Jinks c924fbd54b
Merge pull request #32867 from woocommerce/add/experiment-subscriptions-admin-menu-eligibility
Prevent rendering the WooCommerce > Subscriptions menu item for WooCommerce stores that are ineligible for the experiment.
2022-05-11 10:01:29 +10:00
Chris Aprea 4336b3a390 Add the wccore_subscriptions_empty_state_get_started_error tracking event. 2022-05-11 09:05:35 +10:00
Simon Prosser 8e754070f3
Make sure variable is actually set
themes_api() may return unexpected results see https://wordpress.org/support/topic/php-warnings-flooding-log-undefined-property-class-wc-admin-status-php for example.
2022-05-10 23:53:19 +01:00
Roy Ho ba6f193958
Merge pull request #32899 from woocommerce/fix/json-formatting
Standardize JSON Formatting
2022-05-10 14:17:40 -07:00
Christopher Allford ec2e90540e Added Changelogs 2022-05-10 13:31:13 -07:00
Christopher Allford 37ad4c5a70 Converted Spaces To Tabs In JSON
Since we almost universally use tabs instead
of spaces, this commit replaces all of the spaces
with tabs in various JSON files across the monorepo.
2022-05-10 13:31:01 -07:00
roykho 9668071503
Bump readme.txt version to latest 2022-05-10 13:30:29 -07:00
roykho 56a88d3771
Prep trunk post 6.5 release 2022-05-10 13:01:47 -07:00
Moon d3ef624ab9
Merge pull request #32928 from woocommerce/update/32911-remove-explat-calls-for-headercard-exp
Remove ExPlat calls for woocommerce_tasklist_progression_headercard experiments
2022-05-10 11:12:25 -07:00
jonathansadowski 4c707a27d6
Merge pull request #32943 from woocommerce/update/bash-zip
Update commands to use Nx
2022-05-10 10:54:11 -05:00
roykho d870ff09ac
Add changelog entry 2022-05-10 08:27:01 -07:00
Josh Betz f3edbcad36
Merge pull request #32823 from woocommerce/update/api/system-status-performance
System Status performance improvements
2022-05-10 09:17:09 -05:00
roykho 0bcc96a415
Update commands to use Nx 2022-05-10 06:37:57 -07:00
Ilyas Foo 367db18bc4 Rename function 2022-05-10 20:57:11 +08:00
Alejandro López Ariza 56c8962722
Merge pull request #32606 from woocommerce/performance/merchant-view-coupons
Added new performance test to view coupons as merchant.
2022-05-10 14:37:12 +02:00
Ilyas Foo 71e0d3d27d Changelog 2022-05-10 18:42:07 +08:00
Ilyas Foo 933fe9f449 Add tests 2022-05-10 18:21:52 +08:00
Alex López eb60957a20 Added changelogger file without actual entry to the changelog. 2022-05-10 11:51:23 +02:00
Ilyas Foo 826029ca7b Add ExPlat call for product task experiment 2022-05-10 16:58:02 +08:00
Chi-Hsuan Huang cd3abebeb0 Add changelogs 2022-05-10 15:29:10 +08:00
Chi-Hsuan Huang 93725ece0f Remove woo tracks type declaration from woo admin 2022-05-10 15:29:10 +08:00
Chi-Hsuan Huang 4f1e7af7c7 Add changelogs 2022-05-10 14:29:45 +08:00
Chi-Hsuan Huang 43af801d46 Remove memoize-one from wca & update it to ^6.0.0 for woo components 2022-05-10 14:17:03 +08:00
Chi-Hsuan Huang 4cc033bc12 Add tests for getTimeFrame 2022-05-10 14:02:07 +08:00
James Allan 692cdd3607 Redirect to the create subscription product step after installing WC Payments
This is a temporary measure to be enable testing the full flow whilst we
work on setting up the experiment.
2022-05-10 15:50:47 +10:00
Chris Aprea fc55f14fdd Add the wccore_subscriptions_empty_state_view tracking event. 2022-05-10 15:43:47 +10:00
RJChow 67cf1e109b added task_view tracks prop for experimental_products 2022-05-10 12:52:00 +08:00
Chi-Hsuan Huang 879ccdb14f
Merge pull request #32923 from woocommerce/update/32451-wcpay-task-display-logic
Change wcpay task display logic
2022-05-10 10:07:06 +08:00
Chris Aprea c421733dec Add @ts-expect-error comment to avoid build error. 2022-05-10 11:11:07 +10:00
Chi-Hsuan Huang 7d75919e25 Add changelog 2022-05-10 08:59:10 +08:00
Chi-Hsuan Huang 2b46085ff7 Update to record completion time in time frame format 2022-05-10 08:58:23 +08:00
moon d78c8334b9 Disable experiment test 2022-05-09 17:30:21 -07:00
Eric Jinks ffc64e9f7d
Use wc formatting functions for transient booleans 2022-05-10 10:26:36 +10:00
Chi-Hsuan Huang c4c2d160ff
Merge pull request #32914 from woocommerce/add/32811-import-prdocuts-tracks
Add tracks for experimental import products task
2022-05-10 08:14:40 +08:00
Eric Jinks ef25a3180c
Fix store sale eligibility comments to correct intent 2022-05-10 10:00:06 +10:00
Chris Aprea 68142596bb Merge branch 'add/experiment-subscriptions-admin-menu-1' into add/experiment-subscriptions-admin-menu-eligibility
# Conflicts:
#	plugins/woocommerce/src/Internal/Admin/WcPaySubscriptionsPage.php
2022-05-10 09:47:17 +10:00
Eric Jinks 1aa88a9cb7
Change recent sales eligibility transient string to yes/no 2022-05-10 06:45:27 +10:00
louwie17 bd5c1e739e
Merge pull request #32926 from woocommerce/fix/32896_two_tasklists
Fix duplicate task list shown in some occurrences
2022-05-09 16:24:00 -03:00
Eric Jinks ae954f3cc5
Store recent sales eligibility transient as string 2022-05-10 04:02:10 +10:00
Lourens Schep 99eb80d811 Remove unused string condition 2022-05-09 14:36:51 -03:00
moon 7fd05ed0d6 Add @since tags 2022-05-09 10:33:55 -07:00
moon cecf63ca5b Add changelog 2022-05-09 10:16:53 -07:00
moon db87fc59b9 Remove ExPlat API calls from the backend 2022-05-09 10:08:11 -07:00
moon 2aa8088197 Remove ExPlat API calls from the frontend 2022-05-09 10:01:11 -07:00
Jorge A. Torres 086f318299 Add `recorded_sales` to COT schema and migration 2022-05-09 10:23:23 -05:00
Vedanshu Jain 53a6202d68
Merge pull request #32817 from woocommerce/cot/effectively_sync_posts_to_cot
[COT] Effectively synchronize orders from the posts table to the custom orders table
2022-05-09 20:32:38 +05:30
Lourens Schep 65da6a8562 Add changelog 2022-05-09 11:31:03 -03:00