Commit Graph

49512 Commits

Author SHA1 Message Date
Paul Sealock 844faf2fa4
Delete changelog files based on PR 34061 (#34062)
Delete changelog files for 34054
2022-07-26 14:38:51 +12:00
Jamel Noel Reid 7e3b3ee94c
Add JSON report output to PW tests (#34057)
* Add PW json report when in CI

* Added wait for flaky test

* Used more robust selectors

* Added changelog
2022-07-25 10:44:11 -07:00
Jorge A. Torres 290b3b2dc0
[COT] Implement `query()` in the COT datastore (#33834)
* Add OrdersTableQuery for querying the COT tables

* First stab at `OrdersTableDataStore::query()` method

* Silence possible PHP warning

* Add docblocks & phpcs fixes

* Introduce OrdersTableMetaQuery

* Add support for meta_query

* Add changelog

* ‘status’ should have the ‘wc-‘ prefix

* PHPCS fixes

* Minor improvements

* Add tests for OrdersTableQuery

* Remove ‘paginate’ query var

* Add support for reading multiple objects at once

* Address feedback

* Prevent `get_order_data_for_ids()` from producing an incorrect query when no IDs are passed

* Make CI happy
2022-07-25 21:06:53 +05:30
Michael P. Pfeiffer 5ddcc40f04
Add WooCommerce default styles for block themes (#33518)
* Add WooCommerce default styles for block themes

* Ensure sale badge remains as is in Twenty Twenty-Two

* Style the mark element in theme colors

* Update product variations dropdowns

* address feedback

* address feedback

* fix store notice position

Co-authored-by: Luigi <gigitux@gmail.com>
2022-07-25 11:06:31 -03:00
Néstor Soriano 0b6de76567
Reduce the amount of terms shown in attributes page (#33962)
The attributes page displays all the terms for all the existing
product attributes, which causes a performance problem in sites
with a lot of attributes and terms.

This commit limits the number of attributes shown to 100 by default,
but it also introduces a woocommerce_max_terms_displayed_in_attributes_page
filter to customize it.
2022-07-25 08:55:08 +02:00
Ilyas Foo e41c8b027d
Fix unusable historical import (#34054)
* Add resolvers to data store

* Changelog
2022-07-25 11:20:40 +08:00
Néstor Soriano 166fecc0c1
Use method_exists instead of throwing in AbstractServiceProvider::reflect_class_or_callable (#33960)
* Use method_exists instead of throwing in reflect_class_or_callable

In AbstractServiceProvider::reflect_class_or_callable we were
detecting whether a 'init' method exists in the class or not via
doing 'new ReflectionMethod' and catching the exception.
This caused problems with XDebug, which is bad enough, but additionally,
throwing an exception when it's not abosultely necessary
is a bad practice in general.

* Add changelog file
2022-07-22 15:31:49 -03:00
Néstor Soriano 7d2a992746
Fix code standards in orders code, and check payment method name instead of title on get order totals (#30468)
* Fix code standards errors in class-wc-meta-box-orrder-data.php

- Sanitize all input
- Escape all output
- Verify nonce on save
- Verify that all required POST parameters are present on save
- Minor fixes (periods at end of comments, function docs, Yodas...)

* Check payment method name, not title, on add_order_item_totals_payment_method_row

* Remove unnecessary nonce verification in "save" for orders.

Also move comment to new line for readability.

* Remove unnecessary nonce check in WC_Meta_Box_Order_Data::save

 The check is already performed in the code that invokes "save".

* Add transaction id to payment method string if URL doesn't exist

* Minor fix

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2022-07-22 14:54:51 -03:00
louwie17 383c96f0ca
Update woocommerce admin scripts to align more with turborepo (#33982)
* Update woocommerce admin scripts to align more with monorepo

* Add changelog

* Add dev script back in

* Add install-if-deps-outdated back into build script

* Remove --force from dev script and add WC_ADMIN_PHASE to turbo cache key

* Remove install-if-deps-outdated from build

* Add composer install step to pr unit tests workflow

* Remove old install scripts, that are not needed anymore

* Make sure client changes are part of the cache hit

* Add composer install to code coverage and code sniff as well

* Add composer_no_dev input to install-build workflow

* Add sass dependency to woocommerce/admin/client turbo cache
2022-07-22 08:32:03 -03:00
Adrian Duffell c425b94a28
Update PHP pre-requisite description in README (#34012) 2022-07-22 19:24:15 +08:00
Paul Sealock c91312bf26
Packages Release: Add manual workflow (#33922) 2022-07-22 12:08:11 +12:00
Paul Sealock f056e041bb
Delete changelog files based on PR 34033 (#34034)
Delete changelog files for 34021
2022-07-22 11:49:05 +12:00
Paul Sealock b9a20edc55
Delete changelog files based on PR 34031 (#34032)
Delete changelog files for 33990
2022-07-22 11:46:37 +12:00
Alba Rincón 7741fd38f1
Update composer.lock after updating to WooCommerce Blocks 8.0.0 (#34021) 2022-07-22 11:37:13 +12:00
jonathansadowski 6670af0d64
Split changelog steps from code-freeze action (#34027)
* Split changelog script from code-freeze

* Remove hardcoded repository info from testing

* Remove generation of changelog.txt file from automation

* Correct comments and add back write of readme
2022-07-21 17:58:23 -05:00
Fernando 59c9ef7922
Add validations to `recordEvent` (#33911)
* Add validations to `recordEvent`

* Add changelog

* Use always class constant

* Changed trow exception by console.error

* Add tests to `validate_and_sanitize`

* Created 2 different methods to test `event_validation_and_sanitization`

* Fix tests

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-07-21 16:11:32 -03:00
Roy Ho 1ca37cb74b
Add install and build step so paths are found (#34002) 2022-07-21 11:24:38 -07:00
Lucas Bustamante edd453c40b
Skip test result generation and upload in forks (#34023)
* Skip test result generation and upload in forks

* Generate test report in fork
2022-07-21 11:49:25 -06:00
Joshua T Flowers 4c1a82dc26
Add data store attribute terms (#33721)
* Add product attribute terms store

* Add ability to add params to URL

* Allow IdQuery for all crud functions

* Add tests around item parent keys

* Add tests around new utils

* Throw error when not all params are replaced in REST URL

* Add require attributes for terms

* Allow urlParameters to be specified

* Use namespace to detect url parameters

* Fix up selector return after applying namespace

* Clean queries to prevent sending URL param data to endpoint

* Add tests around new utils

* Remove unused method import

* Remove urlParameters argument no longer being used

* Add changelog entry
2022-07-21 12:28:30 -04:00
Sam Seay ecd17484bb
Generate a JSON file with changes from code-analyzer (#33955) 2022-07-21 19:37:59 +12:00
Chi-Hsuan Huang d09d59186d
Fix free features is still rendered when no recommendation (#33923)
* Fix free features is still rendered when there is no recommendation

* Add changelog

* Update BusinessDetails tab to go to next step if no installable extensions

* Update spinner
2022-07-21 12:57:46 +08:00
Paul Sealock 9620704d42
Delete changelog files based on PR 34008 (#34009)
Delete changelog files for 33934
2022-07-21 12:37:32 +12:00
Lucas Bustamante f1ba1febea
Add detailed logs for e2e setup/teardown (#34004) 2022-07-20 16:34:24 -07:00
Joel Thiessen 7741464a32
Adding additional instructions around product image upload modal (#33660) 2022-07-20 12:14:48 -07:00
Fernando 8b9ec814ec
Product creation experience: add more context about product data (#33755)
* Add product types tooltip

* Add target `_blank`

* Add changelog

* Fix typo

* Add onChange method

* Fixed product type tooltip

* Fix icon style

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-07-20 13:36:01 -03:00
Roy Ho 4937d56f94
Add cache priming to trunk (#33981) 2022-07-20 08:11:42 -07:00
Lucas Bustamante 3f1543c2db
Exclude e2e folder from build (#33934) 2022-07-20 16:17:24 +02:00
Lucas Bustamante 399796aa2d
Retry login on e2e (#33997)
* Retry login on e2e

* Add changelog
2022-07-20 07:46:29 -06:00
Roy Ho 94bcd25232
Add changelog validation to pre push (#33976) 2022-07-20 06:09:48 -07:00
Moon f56b1da519
Make sure get_current_screen() is available (#33990)
* Make sure get_current_screen is available

* Add changelog
2022-07-20 03:31:46 -07:00
Chi-Hsuan Huang 9bc4e88b1a
Wrap default payment gateway strings in __() function call (#33987)
* Wrap default payment gateway strings in __() function call

* Add changelog
2022-07-20 16:28:22 +08:00
Kirtan Gajjar 2e735ed5f7
Fix type safety issues in product price (#33926) 2022-07-20 09:10:18 +02:00
Lucas Bustamante 4ffd5992a9
Reduce e2e flakiness in CI (#33979) 2022-07-19 11:28:15 -06:00
Jonathan Lane 26df595313
E2e/playwright test improvements 2 (#33965)
* Set retries to 4 on CI

* Use variable for authentication path storage

* Handle test cleanup in after hook

* Improve conditional

* Clean up global attributes

* Update customer email address

* Changelog file

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2022-07-19 10:04:53 -03:00
Vedanshu Jain df1937d71a
Add framework to write more robust action scheduler based migrations. (#33233)
Add the BatchProcessingController class and the BatchProcessorInterface interface.

Co-authored-by: Nestor Soriano <konamiman@konamiman.com>
2022-07-19 14:42:36 +02:00
github-actions[bot] 42401f212d
Prepare Packages for Release (#33970)
Automated change: Prep @woocommerce/components for release.

Co-authored-by: psealock <psealock@users.noreply.github.com>
2022-07-19 16:21:14 +12:00
Paul Sealock 8d56c31b3e
Delete changelog files based on PR 33967 (#33968)
Delete changelog files for 33956
2022-07-19 12:11:56 +12:00
Jamel Noel Reid 7265fde855
Update e2e core tests to pass lint checks (#33928)
Updated to pass lint checks
2022-07-18 15:27:05 -03:00
Chi-Hsuan Huang 282d8daa26
Fix "undefined offset" warning notice on payment settings page (#33956)
* Fix undefined offset notice on payment settings page

* Add changelog
2022-07-18 16:54:02 +08:00
Sam Seay fa5c2430ac
Migrate the analyzer's DB scan to the tmp repo clone approach (#33919)
Now the entire `code-analyzer` process operates on a temporary clone.
2022-07-18 16:10:04 +12:00
Roy Ho 4fcbcb1a48
Revise condition logic to prevent spawning a child process unnecessarily (#33917) 2022-07-15 13:35:54 -07:00
Joshua T Flowers 4f1bd278a3
Add product tags data store (#33682)
* Allow IDs to be numbers or strings

* Add product tags data store

* Remove duplicate IdType

* Add required fields

* Add changelog entry

* Prefix new data stores with EXPERIMENTAL_
2022-07-15 15:51:29 -04:00
jonathansadowski 1a9a17c1e5
Update stable tag for 6.7.0 release (#33930)
* Update readme.txt

* Add change file
2022-07-15 09:52:27 -05:00
Lucas Bustamante d239c17430
Fix e2e-environment lint (#33867)
* Fix e2e-environment lint

* Add changelog
2022-07-15 13:53:06 +02:00
aezazs-multidots 0cbaab737d
Added the border bottom of the modal's header (#33807)
* Added the border bottom of the modal's header

* Created changelog entry

* Changelog entry update
2022-07-15 14:35:34 +08:00
Chi-Hsuan Huang 92df587769
Fix task list overlaps with the Ellipsis menu (#33882)
* Fix task list overlaps with the Ellipsis menu

* Add changelog
2022-07-15 10:26:22 +08:00
Paul Sealock 3575254895
Prepare trunk for version 6.9.0 (#33918) 2022-07-15 14:05:16 +12:00
Lucas Bustamante 2a89de195f
Small typos (#33914)
* Small typos

* Rewording
2022-07-14 14:40:32 -07:00
github-actions[bot] 93817aeeee
Release: Remove 6.8 change files (#33913)
Delete changelog files from 6.8 release

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-07-15 09:34:53 +12:00
Lucas Bustamante 5e4e37932f
Doc improvements for Playwright e2e (#33910)
* Doc improvements for Playwright e2e

* Remove spacing changes

* Undo spacing
2022-07-14 14:18:43 -07:00