-
Notifications
You must be signed in to change notification settings - Fork 808
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
Boost: Update cache exceptions UI to indicate if there's an invalid pattern #35984
Conversation
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 appearing at the bottom of this PR are passing or skipped. Boost plugin:
If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack. |
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.
Works as advertised. Some changes weren't applied until I refreshed the page (like trimming the whitespace), but the list of exceptions was saved correctly.
I get the following error when trying to load wp-admin:
Even after running build all. |
@thingalon I'm unable to reproduce this after building all. Unfortunately, the error you provided isn't of much help 😞 If you manage to get the error, can you add these to your define( 'DATASYNC_DEBUG', true );
define( 'DATASYNC_VERBOSE', true );
define( 'DATASYNC_TRACE', true ); Would like to get to the bottom of this. EDIT: I got an idea! I'm pretty sure it's an outdated DB value (though not sure how, since this only touches the |
@dilirity - ok I tracked it down and the error is NOT a problem with this PR. In fact, the error is @pyronaur 's Your branch is a couple of revisions behind trunk. In trunk the Because I keep So, no major problem here - actually a demonstration of a win. |
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.
Does what it says on the tin :)
'*' => '(.*)', | ||
'(*)' => '(.*)', |
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.
Cheese*
is a valid regexp which will match chees, cheese, cheeseeee, etc.
However, it seems like a pattern that users are very unlikely to want.
I think I'm ok with the guard-rails you've put here, because for most users this will put them on the right path. But I did want to note this will make some esoteric regexps impossible to enter.
…attern (#35984) * Add error if there's a problem with a pattern during input * Add pattern sanitization before storing to DB * add changelog --------- Co-authored-by: Mark George <thingalon@gmail.com>
Cherry-picked to 3.1.0 in ba914ab. |
Part of #35768
Proposed changes:
Other information:
Jetpack product discussion
n/a
Does this pull request change what data or activity we track or use?
no
Testing instructions: