Repository navigation
Conversation
Contributor
|
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
Interested in more tips and information?
|
Contributor
|
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 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! |
Code Coverage SummaryCoverage changed in 4 files.
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed changes
Personal and Premium WordPress.com sites on WP Cloud are still backed up in the background, but their plans don't let the owner use those backups. The Backup page and Calypso's Activity Log already hide them on these plans (the Calypso side of this was done in Automattic/wp-calypso#108740). The native WP Admin Activity Log (
admin.php?page=jetpack-activity-log) only did that on Simple sites, so on Atomic it still listed daily "Backup and scan complete" events and offered Restore backup on every rewindable row. That restore action leads to the Jetpack Cloud restore flow.REST_Controller::get_hidden_groups(), and apply it to WoA sites as well as Simple ones. A site without thebackups-self-servefeature hides therewindandscangroups. Self-hosted Jetpack sites aren't affected.not_group. Before this, the free-tier clamp droppednot_group, so a client-side filter alone wouldn't have held on Personal sites.Business and higher plans, Jetpack Backup add-ons and staging sites have
backups-self-serve, so nothing changes for them.Related product discussion/links
Does this pull request change what data or activity we track or use?
No.
Testing instructions
On a WoA site with a Premium or Personal plan:
wp.apiFetch( { path: '/jetpack/v4/activity-log?group[]=rewind' } ). It should return no backup events.On a WoA site with a Business plan:
On a self-hosted Jetpack site with a Backup plan:
Automated tests:
jp test php packages/activity-log: the newHidden_Groups_Testcovers WoA and self-hosted sites, the free-tier clamp and group counts.pnpm --filter @automattic/jetpack-activity-log test: the newactions.test.tsxchecks the restore action gating.🤖 Generated with Claude Code