woocommerce/plugins/woocommerce-beta-tester
Chi-Hsuan Huang cfca07eca8
Reducing Noise in Remote Logging (#51357)
* Refactor remote logging in WooCommerce

This commit refactors the remote logging functionality in WooCommerce to improve its efficiency and flexibility.

- In the `class-woocommerce.php` file, the `context` array now includes a new key `remote-logging` to indicate whether the error should be logged remotely if remote logging is enabled.

- In the `RemoteLogger.php` file, the `file` key in the `context['error']` array is now assigned to the `$log_data` array, and then unset from the `context['error']` array.

- The `should_handle` method in the `RemoteLogger` class now checks for the presence of the `remote-logging` key in the `context` array. If it is not set or set to `false`, the log is ignored.

- The `RemoteLoggerTest.php` file includes new test cases to ensure that the `should_handle` method returns `false` when the `remote-logging` key is not present in the `context` array.

These changes improve the remote logging functionality in WooCommerce and make it more robust and efficient.

* Revert log format change

* Set remote-logging context to true in log remote event method

* Add changelog

* revert change

* revert change
2024-09-18 08:57:32 +08:00
..
.wordpress-org .org assets 2018-06-07 15:01:32 +01:00
api Reducing Noise in Remote Logging (#51357) 2024-09-18 08:57:32 +08:00
assets Regenerate PNPM Lock File & Fix Errors (#41830) 2023-12-05 00:36:30 -08:00
bin Monorepo: zips build script update (frozen lock files) (#49640) 2024-07-19 13:07:48 +02:00
changelog Reducing Noise in Remote Logging (#51357) 2024-09-18 08:57:32 +08:00
images Move admin tester folders to root 2022-06-07 15:18:37 +12:00
includes [Beta Tester] Add tool to force wccom endpoint errors or timeout (#50654) 2024-08-19 20:35:59 +12:00
src [Beta tester] Add fake WooPayments completion tool (#50699) 2024-08-22 10:27:35 +08:00
typing Add remote logging tool to beta tester (#50425) 2024-08-08 11:12:51 +08:00
userscripts add: reactify payments settings feature flag (#49966) 2024-07-25 12:48:34 +08:00
.distignore Remove unneeded files from distribution package (#35000) 2022-10-10 07:36:20 -07:00
.editorconfig Introduced .editorconfig 2018-06-04 16:06:33 -03:00
.eslintignore Copy eslint ignores to beta-tester 2022-06-07 15:13:14 +12:00
.eslintrc Clean up eslintrc in favour of defaults 2022-06-08 14:03:16 +12:00
.gitignore Copy git ignores to beta-tester 2022-06-07 15:14:21 +12:00
.prettierrc.js Introduce live branches UI page to WooCommerce Beta Tester (#35643) 2022-11-30 14:17:27 +13:00
.travis.yml Install composer packages on Travis build to be able to use phpcs 2019-03-13 16:42:52 -03:00
.wp-env.json Applied PHPCS To Beta Tester (#39476) 2023-08-08 17:20:34 -07:00
EXTENDING-WC-ADMIN-HELPER.md Update WooCommerce beta tester README (#35090) 2022-10-18 09:22:51 -07:00
NEXT_CHANGELOG.md Dev/beta tester (#34993) 2022-10-07 10:29:02 -07:00
README.md [DOC] Resolve incorrect branch references in Gutenberg links (#44566) 2024-02-15 14:13:28 -03:00
changelog.txt Prepare 2.4.0 Beta Tester Release (#50461) 2024-08-08 14:20:44 +08:00
composer.json Prepare 2.4.0 Beta Tester Release (#50461) 2024-08-08 14:20:44 +08:00
composer.lock Prepare 2.4.0 Beta Tester Release (#50461) 2024-08-08 14:20:44 +08:00
package.json Use syncpack to lock pnpm version till we can fix issues (#50828) 2024-08-22 12:34:42 +12:00
phpcs.xml Bump WooCommerce minimum required PHP version to 7.4 (#39820) 2023-08-22 09:21:09 +02:00
plugin.php Add beta tester tool to force the coming soon landing pages to display on the front-end (#49341) 2024-07-16 11:55:38 +00:00
tsconfig.json Fixed Beta Tester TSConfig (#37841) 2023-04-25 13:20:04 -07:00
webpack.config.js Monorepo: actualize loaders paths filtering for better Webpack performance. (#49714) 2024-07-29 15:20:17 +02:00
woocommerce-beta-tester.php [Beta Tester] Add tool to force wccom endpoint errors or timeout (#50654) 2024-08-19 20:35:59 +12:00

README.md

WooCommerce Beta Tester

A plugin that makes it easy to test out pre-releases such as betas release candidates and even final releases. It also comes with WooCommerce Admin Test Helper that helps test WooCommerce Admin functionalities.

Installation

You can either install the latest version from wp.org or symlink this directory by running ln -s ./ :path-to-your-wp-plugin-directory/woocommerce-beta-tester

Development

To get started, run the following commands:

pnpm --filter=@woocommerce/plugin-woocommerce-beta-tester install
pnpm --filter=@woocommerce/plugin-woocommerce-beta-tester start

See wp-scripts for more usage information.

Usage

You can get to the settings and features from your top admin bar under the name WC Beta Tester.

For more information about WooCommerce Admin Test Helper usage, click here.

Run ./bin/build-zip.sh to make a zip file.