Commit Graph

47137 Commits

Author SHA1 Message Date
Néstor Soriano adc5b1ba42
Merge pull request #30994 from dnwjn/feature/refund-restock-note-filter
Add filter for refund restock note
2022-02-18 12:20:38 +01:00
Néstor Soriano 9c017e0366
Change @since annotation for woocommerce_refund_restock_note to 6.4 2022-02-18 11:59:11 +01:00
Tam Mullen 579d491ca2 Update orders and product k6 tests to be more robust 2022-02-17 22:34:09 +00:00
Tam Mullen 74c72274a7 Add docker:wait to e2e env for waiting without running tests 2022-02-17 22:31:26 +00:00
Tam Mullen 67d6c063fd Add k6 test scenario for all requests to run in PR action 2022-02-17 22:09:11 +00:00
Roy Ho 6ab6788c75
Merge pull request #31919 from woocommerce/update/gh-workflows
Prevent GH mirror workflow to run in forks
2022-02-17 13:59:15 -08:00
Tam Mullen 06bb16bcfd Add k6 tests to the existing PR build and test action 2022-02-17 21:45:21 +00:00
Claudio Sanches 6a1a0b7681 Check for owner and repo 2022-02-17 18:16:32 -03:00
barryhughes 5ceaf46285 Add check against deleting non-product reviews to our APIv3 Product Review tests. 2022-02-17 11:34:56 -08:00
barryhughes be2eac5637 Tests for product review permissions, simplify permission checks (APIv3). 2022-02-17 11:28:00 -08:00
Moon 718bac6981 Prompt a modal to save any unsaved changes in OBW (https://github.com/woocommerce/woocommerce-admin/pull/8278)
* Add a modal to show when unsaved changes are detected

* Add functions to track value changes from the steps

* Warn unsaved changes for the store details

* Add styles for the unsaved modal

* Warn unsaved changes for the Industry

* Warn unsaved changes for the Product Types

* Warn unsaved changes for the Business Details

* Add changelog

* Add testing instructions.

* Sort array values before comparison

* Use only the array values to compare the diff

* Catch rejected promise on continue

* Set initial value to an empty object

* Fix failing tests
2022-02-17 11:15:11 -08:00
Moon c16a17a17b Enable navigation in core env (https://github.com/woocommerce/woocommerce-admin/pull/8310) 2022-02-17 11:14:45 -08:00
Moon 3a81e6b78d Make classes in src internal (https://github.com/woocommerce/woocommerce-admin/pull/8317)
* Add psr-4 for the internal classes -- this is a temp. changes. We should remove it once we completely merge to the core

* Register class aliases

* Move WcPayPromotion classes to the internal

* Ignore namespace PHP CS issue

* Make features/WcPayPromotion internal

* Added src-internal directory for Automattic\WooCommerce\Internal\Admin namespace

* Moved src/Features/WcPayPromotion to src-internal/Admin/WcPayPromotion

* Add phpcs rules for src-internal

* Remove phpcs:ignoreFile

* Update letter case to make it PSR4 compatible

* Fix letter cases

* Move the alias array into the function

* Rename WcPayPromotion to WCPayPromotion (letter case update)

* Include src-internal

* Update letter case

* Make classes internal

* Update references

* Fix WC_ADMIN_ABSPATH path
2022-02-17 11:14:23 -08:00
Claudio Sanches d5624db5ea Check if workflow is running inside a Woo org
Fixes coding standards
2022-02-17 16:11:10 -03:00
Moon aa554fb1e3 Move src/Schedulers/* to src-internal/Admin/Schedulers (https://github.com/woocommerce/woocommerce-admin/pull/8316)
* Add psr-4 for the internal classes -- this is a temp. changes. We should remove it once we completely merge to the core

* Register class aliases

* Move WcPayPromotion classes to the internal

* Ignore namespace PHP CS issue

* Make features/WcPayPromotion internal

* Added src-internal directory for Automattic\WooCommerce\Internal\Admin namespace

* Moved src/Features/WcPayPromotion to src-internal/Admin/WcPayPromotion

* Add phpcs rules for src-internal

* Remove phpcs:ignoreFile

* Update letter case to make it PSR4 compatible

* Fix letter cases

* Move the alias array into the function

* Rename WcPayPromotion to WCPayPromotion (letter case update)

* Include src-internal

* Update letter case

* Make src/Schedulers/* internal, except the SchedulerTraits

* Add @internal comment tag

* Clean up incorrect import

* Remove unused import
2022-02-17 10:48:31 -08:00
Fernando Marichal 5dc30bd013 Add Account Details event tracking 2022-02-17 15:43:16 -03:00
Fernando ce0f73aa9b Refactor `MerchantEmailNotifications` (https://github.com/woocommerce/woocommerce-admin/pull/8304)
* Refactor `MerchantEmailNotifications`

* Rename `NotificationEmail`

* Add changelog

* Add folder `Notes` to `Internal`

* Moved folder and the namespace was renamed

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-02-17 14:33:19 -03:00
Roy Ho 2d1bd2941b
Merge pull request #31908 from woocommerce/fix/add-post-merge-comment
Update references to labels in the post merge comment.
2022-02-17 09:23:25 -08:00
barryhughes 401f4c0d0e Simplify early checks, do not duplicate work performed by wc_rest_check_product_review_permissions(). 2022-02-17 09:20:02 -08:00
Barry Hughes 31884d9052
Update wording. 2022-02-17 09:06:29 -08:00
barryhughes a6fb397a1a Protect REST API v1 and v2 from a category of accidental deletion, where the supplied product ID is invalid. 2022-02-17 08:51:21 -08:00
barryhughes efac1bad3c Separate out assertions; group those relating to other comment types in their own test. 2022-02-17 08:35:13 -08:00
Néstor Soriano 74f471a476
Merge pull request #31911 from woocommerce/add/product-attributes-lookup-table-to-core-db-schema
Create and fill the product attributes lookup table during a clean install of WooCommerce
2022-02-17 16:49:05 +01:00
Nestor Soriano 563c56d76b
Remove the DataRegenerator::maybe_create_table_indices
It's not needed since dbDelta will take care of the indices in both
new WooCommerce installs and upgrades from a previous version.
2022-02-17 16:04:17 +01:00
Nestor Soriano eca84266f0
Create and fill the product attributes lookup table in clean installs.
The table creation and filling was happening in a data migration, but
data migrations only run when WooCommerce is upgraded, not on a
clean install. Also, the option for using the lookup table
wasn't being set after a clean install (when the table has been created
and is empty since there are no products yet).

As part of the fix the table is added to the list of WooCommerce
core tables, and thus it's covered by the "Verify base database tables"
tool.
2022-02-17 11:00:12 +01:00
Néstor Soriano 48da1c7928
Merge pull request #31889 from woocommerce/add/abort-resume-tool-for-product-attributes-lookup-table-regeneration
Add extra UI for aborting/resuming the product attributes lookup table filling
2022-02-17 09:13:10 +01:00
jamelreid c73c2be097 Exclude the project root when ran in GitHub CI 2022-02-16 23:31:04 -05:00
Ilyas Foo 5840898524 Add card fees to specify what the discount applies to (https://github.com/woocommerce/woocommerce-admin/pull/8319) 2022-02-17 11:30:59 +08:00
rjchow 99a382c649 Fixed typing errors in Stepper component after typescript conversion 2022-02-17 10:35:39 +08:00
rjchow 0a314f1a97 Renamed stepper components to .tsx 2022-02-17 10:35:39 +08:00
barryhughes a5a712fbd0 Update references to labels in the post merge commit. 2022-02-16 15:39:20 -08:00
Barry Hughes 91ed566198
Merge pull request #31414 from woocommerce/fix/extend-admin-refunds-for-gift-cards
Support gift cards in admin order refunds template.
2022-02-16 15:34:59 -08:00
barryhughes 9a4b4907cd Tweak docblock for `woocommerce_admin_order_should_render_refunds` filter hook. 2022-02-16 15:02:43 -08:00
Ron Rennick 8423b3b992
Merge pull request #31834 from woocommerce/fix/31833
Fix failing smoke tests when a new release candidate is published
2022-02-16 16:47:45 -04:00
xristos3490 45b9eebcda Move filter at the top of the template 2022-02-16 21:56:24 +02:00
Fernando Marichal b327fb5439 Add event tracking to Payments 2022-02-16 15:32:41 -03:00
Moon 8023579670 Move src/Features/WcPayPromotion to /src-internal/Admin/WcPayPromotion (https://github.com/woocommerce/woocommerce-admin/pull/8307)
* Add psr-4 for the internal classes -- this is a temp. changes. We should remove it once we completely merge to the core

* Register class aliases

* Move WcPayPromotion classes to the internal

* Ignore namespace PHP CS issue

* Make features/WcPayPromotion internal

* Added src-internal directory for Automattic\WooCommerce\Internal\Admin namespace

* Moved src/Features/WcPayPromotion to src-internal/Admin/WcPayPromotion

* Add phpcs rules for src-internal

* Remove phpcs:ignoreFile

* Update letter case to make it PSR4 compatible

* Fix letter cases

* Move the alias array into the function

* Rename WcPayPromotion to WCPayPromotion (letter case update)

* Include src-internal

* Update letter case

* Move src/Features/RemoteFreeExtensions to src-internal/Admin/RemoteFreeExtensions (https://github.com/woocommerce/woocommerce-admin/pull/8311)

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2022-02-16 04:50:33 -08:00
Christopher Allford 265be6b514
Applied label changes 2022-02-15 20:50:40 -08:00
Christopher Allford 78912b9c8c
Applied label changes 2022-02-15 20:48:25 -08:00
Christopher Allford 73e0d276c2
Fixed votes label 2022-02-15 20:45:20 -08:00
Christopher Allford cd426fcc5a
Updated labels in automatic issue replies 2022-02-15 20:43:43 -08:00
Ilyas Foo d590b1116f Fix WCPay in core texts and promo slug (https://github.com/woocommerce/woocommerce-admin/pull/8296)
* Fix texts and change promo slug

* Changelog
2022-02-16 11:10:59 +08:00
barryhughes c675f72ea6 Remove handling for nested id (no routes allow for this). 2022-02-15 06:34:27 -08:00
barryhughes 18fa388ed9 Clean-up. 2022-02-15 06:32:02 -08:00
barryhughes a7c98d5f58 Update and resolve conflicts. 2022-02-15 05:44:34 -08:00
barryhughes 4282811649 Tidy tests. 2022-02-15 05:42:24 -08:00
barryhughes 43d49bfed0 Cleanup reviews/comments work. 2022-02-15 05:38:50 -08:00
Néstor Soriano 44a2c99268
Merge pull request #31811 from woocommerce/mvp-cot/intial-table-strucuture
Add DB table structure for custom order tables.
2022-02-15 11:58:08 +01:00
RJ ab1cbfb6f2 Added tracks test for PaymentGatewaySuggestions (https://github.com/woocommerce/woocommerce-admin/pull/8306) 2022-02-15 10:30:46 +08:00
Claudio Sanches a9189c73d1
Merge pull request #31897 from woocommerce/prep/trunk
Prep trunk for next release
2022-02-14 17:13:00 -03:00