Skip to content

Use INP in "Good CWV" assessment #186

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 3 commits into from
Mar 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions sql/timeseries/cruxPassesCWV.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ SELECT
IF(device = 'desktop', 'desktop', 'mobile') AS client,
SAFE_DIVIDE(
COUNT(DISTINCT IF(
/* FID can be null and is not mandatory for CWV */
(p75_fid IS NULL OR IS_GOOD(fast_fid, avg_fid, slow_fid)) AND
IF(
/* INP replaced FID as a CWV in March 2024 (202402 release date). */
yyyymm >= 202402,
/* INP/FID can be null and are not mandatory for CWV */
(p75_inp IS NULL OR IS_GOOD(fast_inp, avg_inp, slow_inp)),
(p75_fid IS NULL OR IS_GOOD(fast_fid, avg_fid, slow_fid))
) AND
IS_GOOD(fast_lcp, avg_lcp, slow_lcp) AND
IS_GOOD(small_cls, medium_cls, large_cls), origin, NULL
)),
Expand Down
Loading