-
Notifications
You must be signed in to change notification settings - Fork 820
Add features that allow restriction of the number of wpcom plugins per plan to wpsh #43108
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
base: trunk
Are you sure you want to change the base?
Conversation
It won't allow enabling plugins without returning an error
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 🤖 Follow this PR Review Process:
If you have questions about anything, reach out in #jetpack-developers for guidance! Wpcomsh plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
Code Coverage SummaryCoverage changed in 3 files.
If appropriate, add one of these labels to override the failing coverage check:
Covered by non-unit tests
|
@@ -33,3 +33,18 @@ | |||
|
|||
// Date for lowering storage from 200 GB to 50 GB for business and higher plans. Ref: D108151-code. | |||
define( 'LEGACY_200GB_CUTOFF_DATE', '2023-07-20' ); | |||
|
|||
define( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure this is the right way, I'll look into it tomorrow and see if I can come up with another way for identifying the default plugins.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I couldn't find a better way, maybe one will surface during code review. There's a list of woa-specific jetpack plugins that have their activation/deactivation altered but it doesn't include things like the ones here. I'm leaving it as is.
return $new_value; | ||
} | ||
|
||
// Plugins are manually activated one by one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll need to see how plugins are activated during provisioning to make sure this code doesn't interfere.
This change is not fine to be merged without @claudiucelfilip's work on conditionally enabling plugins on a couple of other plans. It will work but is not easily testable.
Proposed changes:
Other information:
Jetpack product discussion
Does this pull request change what data or activity we track or use?
Testing instructions:
This is a WPCOMSH change for WPCOM atomic sites. It's only meant to be tested from wp-admin, the Calypso part will come separately.