Skip to content

Commit

Permalink
Blaze: add new method to remotely check for eligibility (#28353)
Browse files Browse the repository at this point in the history
* Blaze: add new method to remotely check for eligibility

This will allow us to remotely check eligibility for a site, and potentially update rules without having to release a new version of the package.

* Remove logging function

* Remove to-do comment

* fix tests by bypassing remote request in tests.

* Fix return value for tests

* Make new method public

See Automattic/jetpack#28353 (comment)

* Bypass API request on WordPress.com

There, we can get the response directly.

* Remove private site check

This can now be done on WordPress.com.

* Simplify list of checks by wrapping Jetpack-specific checks

This will limit the number of checks we have to run on WordPress.com, and will also help with the tests.

Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/3981773139
  • Loading branch information
kraftbj authored and matticbot committed Jan 22, 2023
1 parent e137e51 commit 59c3170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/project.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"generatedAt":1674425411687,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":1,"packageManager":{"type":"pnpm","version":"7.9.2"},"storybookVersion":"6.5.15","language":"typescript","storybookPackages":{"@storybook/addons":{"version":"6.5.15"},"@storybook/api":{"version":"6.5.15"},"@storybook/builder-webpack5":{"version":"6.5.15"},"@storybook/components":{"version":"6.5.15"},"@storybook/manager-webpack5":{"version":"6.5.15"},"@storybook/react":{"version":"6.5.15"},"@storybook/source-loader":{"version":"6.5.15"},"@storybook/theming":{"version":"6.5.15"}},"framework":{"name":"react"},"addons":{"@storybook/addon-docs":{"options":{"configureJSX":true},"version":"6.5.15"},"@storybook/addon-storysource":{"version":"6.5.15"},"@storybook/addon-viewport":{"version":"6.5.15"},"@storybook/addon-a11y":{"version":"6.5.15"},"@storybook/addon-essentials":{"version":"6.5.15"},"storybook-addon-mock":{"version":"3.2.0"},"storybook-addon-turbo-build":{"version":"1.0.1"}}}
{"generatedAt":1674425966492,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":false,"refCount":1,"packageManager":{"type":"pnpm","version":"7.9.2"},"storybookVersion":"6.5.15","language":"typescript","storybookPackages":{"@storybook/addons":{"version":"6.5.15"},"@storybook/api":{"version":"6.5.15"},"@storybook/builder-webpack5":{"version":"6.5.15"},"@storybook/components":{"version":"6.5.15"},"@storybook/manager-webpack5":{"version":"6.5.15"},"@storybook/react":{"version":"6.5.15"},"@storybook/source-loader":{"version":"6.5.15"},"@storybook/theming":{"version":"6.5.15"}},"framework":{"name":"react"},"addons":{"@storybook/addon-docs":{"options":{"configureJSX":true},"version":"6.5.15"},"@storybook/addon-storysource":{"version":"6.5.15"},"@storybook/addon-viewport":{"version":"6.5.15"},"@storybook/addon-a11y":{"version":"6.5.15"},"@storybook/addon-essentials":{"version":"6.5.15"},"storybook-addon-mock":{"version":"3.2.0"},"storybook-addon-turbo-build":{"version":"1.0.1"}}}

0 comments on commit 59c3170

Please sign in to comment.