Repository navigation
Site Health: Cache the full results and a timestamp in the status transient #12181
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
Open
gziolo
wants to merge
51
commits into
WordPress:trunk
Choose a base branch
from
gziolo:fix/65232-cache-site-health-results
base: trunk
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
464115d
Site Health: Cache the full results and a timestamp in the status tra…
gziolo 4eac8ca
Tests: Fix Site Health AJAX tests on multisite
gziolo 2f40735
Fix PHPStan `argument.type` error for mixed being passed to `json_enc…
westonruter 1bbc163
Fix PHPStan `argument.type` error for `wp_unslash()` expecting `array…
westonruter f3a5c6a
Simply accessing counts
westonruter 8e4e45a
Add void return type hints
westonruter cfdd9be
Update dispatch_result_request method to always return array
westonruter 68c44fd
Use native property type hint
westonruter 1bf29ea
fixup! Update dispatch_result_request method to always return array
westonruter 226f710
Fix PHPStan issues in tests
westonruter c9e97d4
Site Health: Cache the full results in a dedicated, non-autoloaded tr…
gziolo 5262865
Apply suggestions from code review
gziolo 04a3420
Site Health: Refine the detail cache types and parameter naming.
gziolo d520f50
Site Health: Seed the JS results array from PHP.
gziolo 0d2e61a
Site Health: Cache only locale-independent result data.
gziolo 9146969
Site Health: Reduce duplication in the status cache accessors.
gziolo d00a7e0
Add type definition for tests
westonruter dbc8be8
Fix return type of get_instance() method
westonruter 692d480
Specify shape of $counts param for set_site_status_counts
westonruter ac4e14e
Add array type for $counts param for normalize_status_counts()
westonruter b3c9efe
Reformat return array shape
westonruter 644d07a
Factor out array shape into reusable type
westonruter 5435d45
Reduce specificity of pre-normalized types
westonruter 3713084
Eliminate redundnat type guards when reading from cache
westonruter a52cbe4
Leverage JSON schema for validation and use object for results instea…
westonruter 5992833
Refactor handling of test results
westonruter 8bc9979
Fix error when saving transient with identical value
westonruter 94be08a
Fix ajax tests
westonruter 518531f
Site Health: Compute detailed status counts at runtime
gziolo 1875dd4
Site Health: Specialize the detailed status cache reader
gziolo 728c227
Site Health: Fix storing test results in JavaScript
gziolo c4a295d
Site Health: Clarify detailed result documentation
gziolo 1862d04
Site Health: Validate scheduled test results
gziolo 2954322
Site Health: Compare detail cache with correct transient
gziolo 661e87e
Site Health: Ignore results without test identifiers
gziolo 58079e3
Site Health: Clarify detail result validation
gziolo 02dfa09
Site Health: Return first AJAX save error
gziolo 5bcbea0
Site Health: Require detailed status timestamps
gziolo d4824e0
Site Health: Store freshest verified results
gziolo a711928
Site Health: Add status cache error messages
gziolo 1a0d531
Site Health: Document the distinct roles of both status caches.
gziolo 9715326
Site Health: Remove redundant async test type check.
gziolo 24baaa5
Site Health: Consolidate status counts and verified results in one ca…
gziolo 2a46549
Site Health: Limit stored status results and target 7.3.0.
gziolo d3e2cf0
Site Health: Make status cache tests work with an object cache.
gziolo cc46473
Site Health: Move the status cache autoload check to its own test.
gziolo af708b4
Site Health: Reject unsupported statuses and string results in the ca…
gziolo 7e7e486
Site Health: Clarify that the result limit does not bound cache bytes.
gziolo e9d307b
Site Health: Simplify cache initialization and clarify eviction order…
gziolo 8a4f63d
Site Health: Derive displayed counts from cached results.
gziolo 0083902
Site Health: Reject blank test identifiers before caching results.
gziolo 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
Some comments aren't visible on the classic Files Changed page.
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.