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:
parent
3eabb3eb6b
commit
c2390f4633
|
@ -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
|
||||
);
|
||||
},
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: update
|
||||
Comment: Remove `jetpack-boost` as we no longer run the experiment.
|
||||
|
Loading…
Reference in New Issue