Commit Graph

47373 Commits

Author SHA1 Message Date
Christopher Allford 8dffe885c6
Expanded Project Label Action Permissions
With the `pull_request_target` event, it will have
the write permissions needed to add labels.
2022-02-22 10:05:27 -08:00
Christopher Allford 91442cd5d1
Limited Post-Merge Comment
Since this is for the WooCommerce release process,
we should only trigger it for the Core plugin.
2022-02-22 10:04:33 -08:00
berislav grgičak e2dfe225b8 Increase chart selection to 10 and allow color overriding (https://github.com/woocommerce/woocommerce-admin/pull/8258)
* Increase selection limit to 10

* Add filter for overriding chart colors

* Add filter documentation

* Update chart story

* Add testing instructions

* Changelogs

* Remove broken changelog entires

* Update changelogs

* Fix changelogs

* Add filter example

* Improve filter example
2022-02-22 09:01:14 -04:00
Christopher Allford 21ed16c24b
Fixed Project Labeler Matches 2022-02-21 14:59:50 -08:00
Christopher Allford e8096a7ac2
Fixed PR Labeler Workflow Syntax 2022-02-21 14:32:37 -08:00
Christopher Allford b00629c889
Merge pull request #31952 from woocommerce/add/project-label-action
Added Project Label Workflow
2022-02-21 14:27:32 -08:00
Christopher Allford fb1f86b69a Added Project Label Workflow
This workflow should automatically label a
pull request based on the code being
touched.
2022-02-21 14:26:46 -08:00
Chi-Hsuan Huang 56f7850d07 Make src/Features/* internal except for Features.php, Onboarding.php and TransientNotices.php (https://github.com/woocommerce/woocommerce-admin/pull/8318)
* Move src/Features/* to src-internal/Admin/ except for Features.php, Features/Onboarding.php and TransientNotices.php
2022-02-21 17:47:28 +08:00
Chi-Hsuan Huang 9c49667dde Fix Google Listings plugin is always shown in free features despite already activated (https://github.com/woocommerce/woocommerce-admin/pull/8330)
* Add is_visible rule for google-listings-and-ads to not display it if it's already activated

* Add changelog
2022-02-21 17:46:25 +08:00
Chi-Hsuan Huang dd4736cc5c Add build-types to .eslintignore (https://github.com/woocommerce/woocommerce-admin/pull/8334) 2022-02-21 12:12:05 +08:00
Chi-Hsuan Huang bda55d99f3 Bump package versions (https://github.com/woocommerce/woocommerce-admin/pull/8333) 2022-02-21 11:27:45 +08:00
Chi-Hsuan Huang c05ed7777a Update dependencies to support react 17 (https://github.com/woocommerce/woocommerce-admin/pull/8305)
* Upgrade dependencies to support react17

Update pkg

Update @wordpress/api-fetch and gridicons

* Update test snapshots

* Update SnackbarList with latest react-spring

* Mock data.dispatch for task-list-item.test.tsx

* Remove '@wordpress/components/src/visually-hidden/style' import

wp-components has included it

* Update interpolateComponents import path

* Fix display-options test

* Add changelogs

Update changelogs

* Add @automattic/explat-client-react-helpers back

* Update webpack.config for explat-client-react-helpers

Update webpack config comment

Fix grammar
2022-02-21 10:34:25 +08:00
Pierre Carrier b072cc1f9e
includes/class-wc-geolocation.php: bot.whatismyipaddress.com gone, tnedi.me new 2022-02-20 13:14:59 -05:00
Jonathan Lane acb288ceb5
Merge pull request #31930 from woocommerce/e2e/bump-versions
bump E2E versions
2022-02-18 13:31:03 -08:00
Roy Ho ffc9327892
Merge pull request #31935 from woocommerce/revert-31593-trunk
Revert "If applied, this commit will format Line items price in order api"
2022-02-18 13:16:10 -08:00
Jamel Noel Reid 354c666ba6
Merge pull request #31929 from woocommerce/e2e/ignore-results
exclude test results from package publish
2022-02-18 15:57:02 -05:00
Christopher Allford 396fbe12bd
Inverted Triage Workflow Check 2022-02-18 12:43:00 -08:00
Josh Betz 31b22673f4 Revert "If applied, this commit will format Line items price in order api (#31593)"
This reverts commit afde32fd01.
2022-02-18 14:42:25 -06:00
Christopher Allford b8293e4216
Fixed Triage Label Check
This (hopefully) corrects the label presence check. The goal is to avoid applying the triage label when an issue is created with a label.
2022-02-18 12:41:47 -08:00
Christopher Allford bacfee1614
Added Triage Label Workflow
This workflow (should) automatically add the `status: awaiting triage` label when issues are created.
The workflow won't trigger if a label is applied when the issue is created.
2022-02-18 12:35:24 -08:00
Christopher Allford b954f3eb67
Updated Stale Label
The default 'Stale' label needs replaced with the one we use in the repository.
2022-02-18 12:11:30 -08:00
jamelreid 256d766518 Updated logic to resolveSingleE2EPath
All tests are expected to be found in the tests/e2e directory, so in the event that tests/e2e is a part of the single test path, it is removed to ensure the file path is correct.
2022-02-18 13:02:59 -05:00
Ron Rennick 4fa9cf1051 missed package bumps from #31836 2022-02-18 13:14:06 -04:00
Ron Rennick 34b5cae86f exclude test results from package publish 2022-02-18 13:06:29 -04:00
Vedanshu Jain dcbc37a904
Merge pull request #31785 from Saggre/fix/wc-api-error-code
Fix typo in wc api exception code
2022-02-18 21:15:18 +05:30
Fernando 524fad10cd
Merge pull request #31906 from woocommerce/fix/28603_follow_up
Add event tracking to Payments tab
2022-02-18 12:04:31 -03:00
Ron Rennick 101347788f
Merge pull request #31921 from woocommerce/try/k6-run-ci-onpr
Run k6 tests on PR after e2e and API
2022-02-18 10:55:31 -04:00
louwie17 42625174d9 Have free subscriptions adhere to cbd industry (https://github.com/woocommerce/woocommerce-admin/pull/8323)
* Make sure the free subscriptions does not show when cbd industry is selected

* Add changelog and fix productTypes not being defined

* Fix lint issue

* Fix lint error
2022-02-18 10:23:37 -04:00
jamelreid a756af894c Clean up 2022-02-18 09:22:56 -05:00
barryhughes 5855856125 Explicitly set usser when testing if non-reviews can be deleted. 2022-02-18 06:08:37 -08:00
louwie17 7c6a1f3b5b Fix payment task conflicts (https://github.com/woocommerce/woocommerce-admin/pull/8321)
* Fix payment logic of payment tasks between current task list and experimental one.

* Revert testing changes

* Fix linting

* Add changelog
2022-02-18 09:59:39 -04:00
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