Remove jetpack-boost (#50378)

* Update Jetpack logic

* Removed use of jetpack-boost -- we no longer run the experiment
* Jetpack should be considered as selected if it is already installed

* Add changefile(s) from automation for the following project(s): woocommerce

* removed jetpack check because it's already checked prior

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: rjchow <me@rjchow.com>
This commit is contained in:
Moon 2024-08-09 10:58:52 -07:00 committed by GitHub
parent 3eabb3eb6b
commit c2390f4633
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 17 deletions

View File

@ -300,7 +300,6 @@ const exitToWooHome = fromPromise( async () => {
} );
const redirectToJetpackAuthPage = ( {
context,
event,
}: {
context: CoreProfilerStateMachineContext;
@ -308,16 +307,7 @@ const redirectToJetpackAuthPage = ( {
} ) => {
const url = new URL( event.output.url );
url.searchParams.set( 'installed_ext_success', '1' );
const selectedPlugin = context.pluginsSelected.find(
( plugin ) => plugin === 'jetpack' || plugin === 'jetpack-boost'
);
if ( selectedPlugin ) {
const pluginName =
selectedPlugin === 'jetpack' ? 'jetpack-ai' : 'jetpack-boost';
url.searchParams.set( 'plugin_name', pluginName );
}
url.searchParams.set( 'plugin_name', 'jetpack-ai' );
window.location.href = url.toString();
};
@ -1560,9 +1550,7 @@ export const CoreProfilerController = ( {
hasJetpackSelectedForInstallation: ( { context } ) => {
return (
context.pluginsSelected.find(
( plugin ) =>
plugin === 'jetpack' ||
plugin === 'jetpack-boost'
( plugin ) => plugin === 'jetpack'
) !== undefined
);
},
@ -1570,9 +1558,7 @@ export const CoreProfilerController = ( {
return (
context.pluginsAvailable.find(
( plugin: Extension ) =>
( plugin.key === 'jetpack' ||
plugin.key === 'jetpack-boost' ) &&
plugin.is_activated
plugin.key === 'jetpack' && plugin.is_activated
) !== undefined
);
},

View File

@ -0,0 +1,4 @@
Significance: patch
Type: update
Comment: Remove `jetpack-boost` as we no longer run the experiment.