-
Notifications
You must be signed in to change notification settings - Fork 852
Boost: Prevent display issues / crashes from leftover Critical CSS Error data #20621
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
Conversation
… versions, and show a generic error/retry ui instead
|
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 🤖 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. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Boost plugin:
|
|
Hi @thingalon, It tooks me a while to test this (got to setup a test site and few other things to get a patch version of Boost) and the patch does stop having a display issue. However I have a difference in the UI after the patch for as shown in these 2 videos: jetpack-boost-back-compatibility-fix-demo.movjetpack-boost-back-compatibility-fix-demo-1.movIt might be that my test is not fully accurate. The first demo is where I put a redirection to the default hello world page. The second demo is when I forced an error on the homepage. I am running out of time for today to look more into it. I'll make myself available tomorrow to see your feedback and to test the PR again if there are any changes to it. |
davidlonjon
left a comment
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.
Following our discussion with on Slack, this is good to go.
…Critical CSS Error data (#20621) * Throw away invalid / incomplete error information from previous Boost versions, and show a generic error/retry ui instead * changelog Co-authored-by: Mark George <thingalon@gmail.com> Co-authored-by: Jeremy Herve <jeremy@jeremy.hu>
|
Cherry-picked to |
Jetpack Boost 1.2.0 changes the way that Critical CSS errors are raised and stored, making them more consistent and appropriate for display in the new UI.
However, if there is old error data left in the database from a previous version, it can cause crashes or display issues in the current beta.
This PR fixes the issue by filtering out old Critical CSS failure information, instead showing a very generic error message for these cases:
This will only affect users who have previously had issues generating Critical CSS, and have since upgraded to 1.2.0. It will encourage them to try again, and they will then receive the updated error flow.
Changes proposed in this Pull Request:
Does this pull request change what data or activity we track or use?
no
Testing instructions:
It should not generate any PHP or JavaScript warnings. The dashboard should clearly show that Critical CSS generation was not successful last time, and encourage users to try again.
Also, importantly: Successful Critical CSS results should not be removed or affected when upgrading from 1.1.1 to 1.2.0.