-
Notifications
You must be signed in to change notification settings - Fork 798
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Protect: Add WAF StatCards #35739
base: trunk
Are you sure you want to change the base?
Protect: Add WAF StatCards #35739
Conversation
…rd components to firewall header
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks appearing at the bottom of this PR are passing or skipped. Jetpack plugin: The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Protect plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. Wpcomsh plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Description
Proposed changes:
StatCard
js-packages component easily accessibleWaf_Blocklog_Manager
class and migrates related methods overjetpack_waf_blocklog_daily_summary
optionStatCard
components to theFirewallHeader
and hooks up the new statsOther information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
$date
value in theupdate_daily_summary()
method of theWaf_Blocklog_Manager
class to simulate requests from a different day within the same month and from outside of the current monthjetpack_waf_blocklog_daily_summary
option data and stats in the UI reflect the entries and that any data logged outside of the current month is prunedjetpack-waf/waf-blocklog
entries orjetpack_waf_blocklog_daily_summary
option updates are made when share data is disabled (note thatwp_jetpack_waf_blocklog
table entries will continue)cd projects/js-packages/storybook && npm run storybook:dev
and verify that all ProtectFirewallHeader
stories renderjetpack test packages/waf php
to ensure that all integration tests passScreenshots:
Desktop:
![Screen Shot 2024-02-22 at 15 07 29](https://cdn.statically.io/img/private-user-images.githubusercontent.com/43220201/307181373-04658682-3958-47c4-9e31-6ac2f4a98cdb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1NTM1NjgsIm5iZiI6MTcyMzU1MzI2OCwicGF0aCI6Ii80MzIyMDIwMS8zMDcxODEzNzMtMDQ2NTg2ODItMzk1OC00N2M0LTllMzEtNmFjMmY0YTk4Y2RiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEzVDEyNDc0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY5YWI2NmI0M2YzOTBlMjZkNWQ2MTk3NjMxMDY2ZTlkMmIzYTY5N2U0ZTNkNTY5YjYwYjcxZTExOWMwMTAzNDcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.ZLBtPRTz51iG2_9ZwXQGQfddRQW8fk9wOZnCTUK1Dyw)
Mobile:
![Screen Shot 2024-02-22 at 15 08 15](https://cdn.statically.io/img/private-user-images.githubusercontent.com/43220201/307181517-8ce12961-fec0-486b-a75d-0a1f0048ead4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1NTM1NjgsIm5iZiI6MTcyMzU1MzI2OCwicGF0aCI6Ii80MzIyMDIwMS8zMDcxODE1MTctOGNlMTI5NjEtZmVjMC00ODZiLWE3NWQtMGExZjAwNDhlYWQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEzVDEyNDc0OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU2NTExYzAxMjQ5ZTBlMTlhMWYwM2VlODRjMmFiNGQ1NTVjMWNlMmRlNWY0Y2ZhNmUyY2MwOGY4MjhhMGUyMjcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.r3ONbvisDHBDy5h7_YzZOEMFbJtqNe8SoFgp8mIp04s)