Commit Graph

47373 Commits

Author SHA1 Message Date
Christopher Allford 9287018d86 Expanded Issue Transfer Error Messaging
Rather than discarding the error message when
the issue transfer fails, we should give it in the
console so that the user can correct it.
2022-03-18 11:24:27 -07:00
Viktor Szépe c45cb7a398 Merge remote-tracking branch 'wc/trunk' into patch-6 2022-03-18 17:42:35 +00:00
Christopher Allford 8efe01fe8c
Merge pull request #32116 from woocommerce/merge/woocommerce-beta-tester
Merge WooCommerce Beta Tester Plugin
2022-03-18 10:30:54 -07:00
Christopher Allford d67041f0a7 Updated Composer to v2 2022-03-18 09:56:28 -07:00
Christopher Allford efbc635e32 Added Beta Tester Plugin To Nx
This commit adds the project file and makes the
necessary changes to the workspace to support
the new plugin.
2022-03-18 09:46:10 -07:00
Christopher Allford 7be60a5b52 Merge remote-tracking branch 'woocommerce/woocommerce-beta-tester/trunk' into merge/woocommerce-beta-tester 2022-03-18 09:42:18 -07:00
jonathansadowski 0541a0406c
Merge pull request #32114 from woocommerce/fix/votes-needed
Enclose in double quotes and use correct ticks
2022-03-18 10:19:55 -05:00
roykho f8b76b7662
Enclose in double quotes and use correct ticks 2022-03-18 07:30:40 -07:00
Chi-Hsuan Huang c05605fddf Update linting, testing, `@types/*` dependencies (https://github.com/woocommerce/woocommerce-admin/pull/8475)
* Update husky from 4 to 7

* Update @types/jest from 26 to 27

* Update lint-staged from 10 to 12

* Update babel-jest from 26 to 27

* Update @typescript-eslint/eslint-plugin from 4 to 5

* Update @typescript-eslint/parser from 4 to 5

* Update chalk from 4 to 5

* Update concurrently from 5 to 7

* Update stylelint from 9 to 14 and stylelint-config-wordpress from 13 to 17

* Update @wordpress/prettier-config from 0.4 to 1.1

* Update eslint from 7 to 8, @wordpress/eslint-plugin from 8 to 10, eslint-plugin-testing-library to 5

* Fix lint errors after updating eslint-plugin-testing-library

* Fix style lint

* Rename .stylelintrc.json -> stylelint.config.js & add todo comment

Fix stylelint.config.js

* Remove @wordpress/e2e-test-utils

* Add changelogs for eslint-plugin

* Update storybook/preview.js since addDecorator has been deprecated

Remove parameters

* Import directly from @storybook/addon-docs

* Migrate some stories to use @storybook/addon-controls

Add a comment for @storybook/addon-knobs

* Update changelogs

* Update preview.js to fix lint warning

* Update pnpm-lock.yaml

* Fix eslint layout errors (https://github.com/woocommerce/woocommerce-admin/pull/8484)
2022-03-18 19:45:14 +08:00
RJ d9714b55c3 Update webpack 4 to webpack 5 (https://github.com/woocommerce/woocommerce-admin/pull/8476)
* updated webpack to 5

* fix dependency extraction config

* port unminify.js to webpack 5

* updated packages webpack version

* changelogs

* Updated @wordpress/custom-templated-path-webpack-plugin

- also removed Terser from package.json

* Upgraded storybook config to webpack 5
2022-03-18 18:59:05 +08:00
Chi-Hsuan Huang 8277860a19 Fix wc-admin-php-test-suite Dockerfile (https://github.com/woocommerce/woocommerce-admin/pull/8492) 2022-03-18 18:48:44 +08:00
Peter Fabian 9ffaf34c23
Merge pull request #31609 from woocommerce/update/product-block-templates-meta-box
Allow relevant block templates to be listed in the Edit Product view
2022-03-18 11:13:11 +01:00
Peter Fabian 59b941b239 Added approval feature for downloadable files 2022-03-18 10:26:32 +01:00
Peter Fabian 6e9ed9a83a Cast limit to int in all branches. 2022-03-18 10:10:08 +01:00
Peter Fabian c4b965e543 Fix error messages for order endpoints. 2022-03-18 10:04:09 +01:00
Chi-Hsuan Huang 89e7d145f4 Fix `next_week_start` logic (https://github.com/woocommerce/woocommerce-admin/pull/8468)
* Fix next_week_start logic

* Add changelog

* Update function docs for definitions of week end and week start
2022-03-18 12:18:16 +08:00
Moon a7645fa07d Allow CLI environments to run the install routines (https://github.com/woocommerce/woocommerce-admin/pull/8488) 2022-03-17 20:17:25 -07:00
Chi-Hsuan Huang 4de940111c Remove `is_primary` column from the `wp_wc_admin_notes` table (https://github.com/woocommerce/woocommerce-admin/pull/8474)
* Remove is_primary column from the wc_admin_notes table

* Add changelog
2022-03-18 09:17:35 +08:00
Chi-Hsuan Huang 0a75b1b657 Refactor the `onFilterChange` method in the `AdvancedFilters` component (https://github.com/woocommerce/woocommerce-admin/pull/8459)
* Refactor the onFilterChange method in the AdvancedFilters component to use object params

* Fix advanced-filters/stories currency undefined error

* Add changelog

* Update changelog
2022-03-18 09:16:32 +08:00
Christopher Allford 78892dcbe4
Merge pull request #32109 from woocommerce/add/issue-transfer-to-monorepo-merge
Add Issue Transfer to Monorepo Merge Tool
2022-03-17 15:37:25 -07:00
Barry Hughes d2966e0fca
Merge pull request #32081 from johnregan3/31824-add-order-id-to-error
Include order ID in the error log message
2022-03-17 15:12:16 -07:00
Christopher Allford b63091bee0
Merge pull request #32075 from woocommerce/update/woocommerce-blocks-7.2.0
Update WooCommerce Blocks package to 7.2.0
2022-03-17 15:11:53 -07:00
Christopher Allford face0c0966 Updated PNPM Lockfile 2022-03-17 14:55:53 -07:00
Christopher Allford a55dfeed34 Implemented Issue Transfer
This commit adds the remaining functionality to
transfer issues between repositories.
2022-03-17 14:51:58 -07:00
Christopher Allford 275f080e66 Refactored Transfer Issue Command
This commit cleans up the command now that I'm
generally happy with the implementation. It should
be much easier to follow now, as well as follow
GitHub's GraphQL best-practices around sanitation.
2022-03-17 13:36:10 -07:00
Christopher Allford 59fe574947 Added Better Action Handling To Merge Command
This commit cleans up some of the action stop
handling in the merge command. I was adding
this handling to the issue transfer command and
saw the same mistakes made here.
2022-03-17 13:35:30 -07:00
Joshua T Flowers 611903ef5d Separate onboarding concerns into separate classes (https://github.com/woocommerce/woocommerce-admin/pull/8280)
* Separate onboarding concerns into separate classes

* Fix up onboarding product types

* Fix up references to profile data option

* Fix up call to allowed themes

* Move onboarding features to internal namespace

* Remove old onboarding redirect

* Fix failing tests

* Add changelog entry

* Move inernal classes to the new src-internal folder

* Fix lint error

* Add deprecated class for Onboarding

* Add empty construct method

* Remove some of the unnecessary static functions and make sure OnboardingTasks still gets initialized

* Fix missed changes during rebase

* Fix tests

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2022-03-17 17:10:43 -03:00
Jorge A. Torres 386077d099
Merge pull request #30856 from 9ete/fix/30156
Prevent 'Search' field from overflowing container on the 'Downloadable product permissions' widget when in the sidebar on the admin order detail page
2022-03-17 14:14:00 -05:00
9ete b662d2b450 fix/30156: prevent 'Search' field from overflowing container on the 'Downloadable product permissions' widget when in the sidebar on the admin order detail page 2022-03-17 13:42:08 -05:00
Jorge A. Torres f32b9c813b
Merge pull request #31940 from pcarrier/pcarrier/whatismyipaddress
class-wc-geolocation.php: drop bot.whatismyaddress.com, introduce tnedi.me
2022-03-17 11:38:51 -05:00
Peter Fabian 9c48710497
Merge pull request #32067 from woocommerce/add/primary-key-to-product-attributes-lookup-table
Add a primary key to the product attributes lookup table.
2022-03-17 17:17:43 +01:00
John Regan 9994291d33
31824 Add translator note
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2022-03-17 08:11:20 -05:00
Tomek Wytrębowicz ae89e6ae20 Suppress `lint:js` warnings in CI and GitHub PRs (https://github.com/woocommerce/woocommerce-admin/pull/8020)
- Add returned type annotations to `packages/admin-e2e-tests/src/elements/*.ts` and `packages/admin-e2e-tests/src/*.ts`.
- Remove unused vars from `packages/admin-e2e-tests/src/*.ts`.
- Simplify `unknown` type union.

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-03-17 12:13:37 +01:00
Néstor Soriano 04a96f0c5b
Merge pull request #32076 from woocommerce/fix/31244-paypal-admin-js
Minify updated PayPal admin JS.
2022-03-17 10:57:05 +01:00
Chi-Hsuan Huang 6d139e063d Fix industry tab not clickable after going back (https://github.com/woocommerce/woocommerce-admin/pull/8469)
* Fix industry tab not clickable after going back

* Add changelog

* Add e2e test for testing industry tab going back

* Add changelog

* Add navigate to fix the test
2022-03-17 17:39:50 +08:00
Nestor Soriano ad55634ea5
Add error logging to DataRegenerator::create_table_primary_index 2022-03-17 09:31:26 +01:00
Christopher Allford 1519eeac81 Added Label Flag
This commit adds a flag that enables the command to check
for labels that should be added to the issues after they
are transferred into the monorepo.
2022-03-16 23:29:17 -07:00
Christopher Allford 831a895db3 Applied Linting 2022-03-16 23:05:50 -07:00
Christopher Allford 57ab538668 Added Issue Transfer Command Skeleton
This commit adds the skeleton for an issue transfer command.
Almost all of the functionality is implemented, but it is missing
the actual transfer of issues. I'm nervous about testing this, so
I'm going to implement the rest of the functionality first.
2022-03-16 22:53:30 -07:00
renovate[bot] 8e6d8c829e Update dependency @automattic/explat-client-react-helpers to ^0.0.4 (https://github.com/woocommerce/woocommerce-admin/pull/8471)
* Update dependency @automattic/explat-client-react-helpers to ^0.0.4

* Reverted patch for building @automattic/explat-client-react-helpers

* Updated pnpm-lock.yaml

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: rjchow <me@rjchow.com>
2022-03-17 11:15:12 +08:00
Moon 2ea4d92c30 Translate dates in NewSalesRecord note (https://github.com/woocommerce/woocommerce-admin/pull/8426)
* Translate dates

* Add changelog

* Add test

* Fix broken tests
2022-03-16 14:03:43 -07:00
louwie17 b2e83899b3 Add/8269 rest api docs (https://github.com/woocommerce/woocommerce-admin/pull/8429)
* Internalize all WooCommerce Admin main API controllers

* Internalize all report and report stat controllers

* Make function public and label as internal to fix PHP unit tests

* Add changelog
2022-03-16 14:46:48 -03:00
Jamel Noel Reid 1a29e3861c
Merge pull request #32082 from woocommerce/update/e2e-readme-boilerplate-link
Include link to e2e boilerplate in e2e Readme
2022-03-16 11:00:40 -05:00
Tam Mullen 76deb8b6a1
Include link to e2e boilerplate in e2e Readme 2022-03-16 15:43:49 +00:00
John Regan 53473a6aa5 31824 Remove test code 2022-03-16 09:21:20 -05:00
John Regan 05427269db Merge branch 'trunk' into 31824-add-order-id-to-error 2022-03-16 09:19:33 -05:00
John Regan 8dbc76ef2b fix/31824 - Initial commit 2022-03-16 09:19:18 -05:00
Nestor Soriano fc4a71d9b8
Don't use ADD PRIMARY KEY IF NOT EXISTS as it's not supported by MySQL
Instead, manually check if the key exists and create it if not.
2022-03-16 13:18:22 +01:00
renovate[bot] 3f3f25f4b7 Update dependency mariadb to v10.8.2 (https://github.com/woocommerce/woocommerce-admin/pull/8473)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-16 11:15:01 +08:00
Chi-Hsuan Huang a9fe13e80b Add capability for ExPlat integration to authenticate WPCOM users (https://github.com/woocommerce/woocommerce-admin/pull/8428)
* Add @wordpress/api-fetch to explat/package.json

* Export auth exPlat utils

* Support request assignment as wpcom user

* Add experiments proxy api for js

* Update error response

* Add changelog

* Update pnpm-lock.yaml

* Change error type

* Update explat/README.md

* Update includes/class-experimental-abtest.php

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

* Fix get explat /assignments

* Fix url & add comment to assignment.ts

* Fix cors issue

* Fix php test

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2022-03-16 11:03:10 +08:00