Commit Graph

48524 Commits

Author SHA1 Message Date
Nestor Soriano 469c5a1aea
Change references to "orders" to "entities" in generic table migrators 2022-05-19 09:48:04 +02:00
Nestor Soriano c4b498d13f
Remove the MigrationErrorLogger class as it's not used. 2022-05-19 09:43:41 +02:00
Néstor Soriano 4b0d5550ed
Merge branch 'trunk' into add/logging_for_posts_to_cot_migration 2022-05-16 12:53:13 +02:00
Vedanshu Jain 7c37c9187a
Merge pull request #32925 from woocommerce/issue/32843
Add `_recorded_sales` meta to COT
2022-05-16 16:04:14 +05:30
Nestor Soriano 33791e4fcd
Fix: MetaToMetaTableMigrator attempting to migrate empty datasets
That caused an invalid SQL query to throw an error.
2022-05-16 12:27:58 +02:00
rodelgc 6cda659980
Publish API test reports to GitHub Pages
- Added workflow to publish API tests
2022-05-16 17:59:40 +08:00
Chi-Hsuan Huang 7b3a1db157
Merge pull request #32977 from woocommerce/add/32859-fashion-sample-products
Add fashion sample products
2022-05-16 17:43:02 +08:00
Chi-Hsuan Huang 03ba7bc794
Merge branch 'trunk' into add/32859-fashion-sample-products 2022-05-16 17:18:26 +08:00
Chi-Hsuan Huang 697eb185b1
Merge pull request #33049 from woocommerce/update/enable-feature-flags-for-product-task
Enable feature flags for add product task
2022-05-16 16:38:01 +08:00
Vedanshu Jain b8e2de8520
Merge pull request #32938 from woocommerce/cot/32917
Add CLI support to run migrations.
2022-05-16 12:34:15 +05:30
Chi-Hsuan Huang 213b987981 Update fashion sample product file 2022-05-16 14:53:46 +08:00
Chi-Hsuan Huang 71dabded8a Enable experimental-fashion-sample-products feature 2022-05-16 12:28:43 +08:00
Chi-Hsuan Huang f5e4f1ade6 Add changelog 2022-05-16 11:40:28 +08:00
Chi-Hsuan Huang 88068a4cd0 Enable feature flags for add product task 2022-05-16 11:39:46 +08:00
Ilyas Foo 68c7de6c5e
Fix janky product task items on hover (#33043)
* Fix hover border size

* Changelog
2022-05-16 11:32:37 +08:00
Moon 1ef9b2d2ba
Merge pull request #32850 from woocommerce/add/32778-tiktok-marketing-task
Add TikTok marketing task
2022-05-15 19:55:57 -07:00
Barry Hughes e78f6e02be
Merge pull request #33039 from woocommerce/fix/products-api-method-visibility
Products API: revert get_objects method to protected
2022-05-13 16:07:41 -07: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
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
jonathansadowski 44196c47e2
Merge pull request #32984 from woocommerce/fix/mirror-workflow
Copy file to correct path
2022-05-13 08:46:28 -05:00
Roy Ho fc1f8cee92
Merge pull request #32982 from woocommerce/fix/smoke-tests-2
Fix smoke test on release
2022-05-13 05:37:12 -07: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