Commit Graph

47181 Commits

Author SHA1 Message Date
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
Travis ae582fdc66 Jetpack Backup note - change time range and add an image (https://github.com/woocommerce/woocommerce-admin/pull/8293)
* start note after 3 days and add an image

* add changelog entry

* add PR number to changelog
2022-02-14 12:42:50 -06:00
roykho 618864243e
Bump version for package.json 2022-02-14 08:40:21 -08:00
Ron Rennick 5b78782a95
Merge pull request #31665 from woocommerce/packages/api/json-transform-tests
Partially fix the Order Model for JSON transforms in the @woocommerce/api package
2022-02-14 11:30:57 -04:00
Nestor Soriano 5d1040232d
Remove no longer needed 'use'. 2022-02-14 15:11:06 +01:00
Néstor Soriano fbc67db556
Merge pull request #31692 from woocommerce/scafolding-for-custom-order-tables
Add scafolding for the custom orders table feature.
2022-02-14 15:02:16 +01:00
roykho dae8aa1d67
Prep trunk for next release 2022-02-14 05:55:53 -08:00
Lucas Bustamante 616b61348e
Merge pull request #31872 from woocommerce/add/suppress-wp-compose-console-messages
Suppress wp.console.withState deprecation warning
2022-02-11 13:41:50 -03:00
Nestor Soriano e2a94bd776
Add extra UI for aborting/resuming the product attributes table filling.
Two new tools are added in the Status - Tools section:

- "Abort the table regeneration" - this one shows up if a regeneration
  process is in progress. Running it will remove the "regeneration
  in progress" option and set the "regeneration aborted" flag, it also
  removes any pending regeneration step scheduled action.

- "Resume the table regeneration" - this one resumes the regeneration
  process by setting the "regeneration in progress" option, removing
  the "regeneration aborted" option, and scheduling a new regeneration
  step action.
2022-02-11 16:27:53 +01:00