Skip to content

Fixes an isuse where back up logs show up in Personal plan sites - #25894

Open
crazytonyli wants to merge 3 commits into
trunkfrom
bugfix/cmm-2130-filter-activity-logs
Open

Fixes an isuse where back up logs show up in Personal plan sites#25894
crazytonyli wants to merge 3 commits into
trunkfrom
bugfix/cmm-2130-filter-activity-logs

Conversation

@crazytonyli

Copy link
Copy Markdown
Contributor

Description

Fixes https://linear.app/a8c/issue/CMM-2130

Replicate this wp-calypso change. I'm not sure why this change is not done on the API endpoint, though. Maybe we don't want to affect other endpoint consumers?

Testing instructions

I can't reproduce the issue following the steps described in the Linear issue. You can give it go. Or, you can ask to join the test site mentioned in the Linear issue comments.

The wpcom activity endpoint returns backup and scan events to every site
that has them indexed and expects clients to filter. The web Activity Log
excludes the rewind and scan groups for sites without the
backups-self-serve feature, but the apps sent no such filter, so a
Personal plan Simple site showed "Backup and scan complete" entries that
never appear on the web (WordPress.com backs up Simple sites internally
regardless of plan).

Mirror the web client: add a notGroup parameter to
ActivityServiceRemote's activity and activity group requests, and have
ActivityLogsViewModel pass not_group=rewind,scan when the site's plan
features (plan.features.active, already synced to Blog.planActiveFeatures)
lack backups-self-serve. The same exclusion applies to the activity type
filter list so the hidden groups cannot be selected. The backup list is
exempt because it only shows rewindable events, which all belong to the
rewind group.

CMM-2130
@dangermattic

Copy link
Copy Markdown
Collaborator
2 Warnings
⚠️ This PR is larger than 500 lines of changes. Please consider splitting it into smaller PRs for easier and faster reviews.
⚠️ This PR is assigned to the milestone 27.2. This milestone is due in less than 4 days.
Please make sure to get it merged by then or assign it to a milestone with a later deadline.

Generated by 🚫 Danger

@wpmobilebot

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
App NameWordPress
ConfigurationRelease-Alpha
Build Number33760
VersionPR #25894
Bundle IDorg.wordpress.alpha
Commit7553c58
Installation URL115ts038q8o0o
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

@wpmobilebot

Copy link
Copy Markdown
Contributor
App Icon📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
App NameJetpack
ConfigurationRelease-Alpha
Build Number33760
VersionPR #25894
Bundle IDcom.jetpack.alpha
Commit7553c58
Installation URL5ikglg6ockrcg
Automatticians: You can use our internal self-serve MC tool to give yourself access to those builds if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants