-
Notifications
You must be signed in to change notification settings - Fork 138
Migrate Site Health checks from being modules to becoming part of the plugin core #1042
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
0fdf37e
Move server-timing to top-level includes directory
thelovekesh 6a3c9f9
Move site health tests from various focus areas to includes directory
thelovekesh 4e739af
Add loader file for site health tests
thelovekesh 3e27c87
Remove module based loading from site health tests
thelovekesh 29e549b
Update phpstan.neon.dist
thelovekesh 134cb63
Move server-timing and site health tests to tests/includes directory
thelovekesh 71d4aeb
Remove ref for legacy module slugs from perflab_get_module_settings()
thelovekesh c303628
Fix webp support site health test name
thelovekesh 2fb4e7a
Add site health tests to be loaded with plugin
thelovekesh d7c36a5
Update unit tests after removing site health tests from modules
thelovekesh 8604b65
Update site health checks loader
thelovekesh 80f8a0a
Fix namings for PL core APIs
thelovekesh a06213d
Remove failing module test cases from tests
thelovekesh 6d8d231
Fix server-timing API path
thelovekesh 29dfb4c
Update server-timing object-cache path and exclude pattern in phpcs.x…
thelovekesh 7ef492a
Bump object cache drop-in from 2 to 3
thelovekesh 686a8d9
Bump object cache drop-in plugin version from 2 to 3
thelovekesh 86ff88b
Remove site health caps safeguard
thelovekesh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update server-timing object-cache path and exclude pattern in phpcs.x…
…ml.dist
- Loading branch information
commit 29dfb4c2d040521af503010eb01c4ea7753599cd
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@thelovekesh Now that I see this change, moving the files for the Server-Timing API is tricky from a backward compatibility perspective. Here's why:
wp-content/object-cache.phpdrop-in may already be placed on some sites, from an older Performance Lab version. As such, it would try to load the old paths, which wouldn't work. It wouldn't cause a fatal error because of the checks above, but it just wouldn't load the API.object-cache.copy.phpto the actual drop-in) so that it detects whether the current file is outdated.2to3(in both the file header and constant).Uh oh!
There was an error while loading. Please reload this page.
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.
@thelovekesh I've opened #1047 for the purpose of updating an older version of the drop-in, please take a look. Depending which of the two PRs gets merged first, the other one will require a minor update (to sync the version numbers and file paths).