Open CGastrell opened 1 week ago
Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.
To test on WoA, go to the Plugins menu on a WordPress.com Simple site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin, and enable the change/jetpack-ai-assistant-feature-fetch
branch.
To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack change/jetpack-ai-assistant-feature-fetch
Interested in more tips and information?
jetpack rsync
command to sync your changes to a WoA dev blog.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 :robot:
The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available.
Follow this PR Review Process:
Still unsure? Reach out in #jetpack-developers for guidance!
Jetpack plugin:
The Jetpack plugin has different release cadences depending on the platform:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack.
Fixes #33839
Proposed changes:
This PR removes some old code and avoids an early fetch to ai-assistant-feature endpoint. It might not be enough to fully address the mentioned issue though.
Other information:
Jetpack product discussion
33319
33391
Does this pull request change what data or activity we track or use?
No
Testing instructions:
Without this branch: Watch plugins/jetpack:
jetpack watch plugins/jetpack
Open devtools and load the editor, look for
ai-assistant-feature
request and check its initiator. Go to the bottom of the list, skip the usual suspects (such as anonymous calls or react-dom) and see the initiator is some unrelated ads JS file or canAIAssistantBeEnabled call.Apply the branch: Let the watched rebuild and reload the editor. See the initiator for the
ai-assistant-feature
request is now the AiAssistantPluginSidebar