Skip to content

fix: serve telemetry growth as null beside a withheld count - #78

Merged
thebenignhacker merged 1 commit into
mainfrom
integrate/2026-11-22-a
Nov 22, 2026
Merged

thebenignhacker merged 1 commit into
mainfrom
integrate/2026-11-22-a

Conversation

@thebenignhacker

Copy link
Copy Markdown
Contributor

This pull request lands 1 commit in lib/, pages/api/ and test/.

Included

  • fix: serve telemetry growth as null beside a withheld count

Verified on this exact tree

  • npm ci --no-audit --no-fund (Node 24.22.1): exit 0, added 205 packages
  • npm run build (Next.js 16.4.5): exit 0, ✓ Compiled successfully
  • node --test --test-concurrency=4 test/*.test.js (19 test files): tests 288, pass 288, fail 0, cancelled 0, skipped 0, todo 0
  • git status --porcelain after the build and the test run: no output
  • Typecheck, lint and changelog check: package.json defines no script for them

Not included

None

Closes

None

How to merge

Rebase and merge, so that each change stays its own commit on main.

/api/telemetry served wauGrowth7d, mauGrowth30d and engagedGrowth30d as
the difference of the stored counts. A withheld count is stored as NULL,
which the subtraction took as 0, so a change figure was served beside a
count shown as withheld: a latest wau of NULL beside a prior of 25 gave
-25, and a count of 9 left in an older store beside 25 gave -16. With no
earlier snapshot, each figure was served as 0.

Each figure is now computed from the floored counts on both sides
(measuredChange in lib/telemetry-withheld.js) and is null when either
side is withheld or no earlier snapshot is stored: never 0 and never the
raw difference. Two measured counts still give their difference, so 138
beside 93 gives 45. The dashboard already leaves such a change out, and
no other served field changes.
@vercel

vercel Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
github-analytics-tracker Ready Ready Preview Nov 22, 2026 5:20am UTC

Request Review

@thebenignhacker
thebenignhacker merged commit d63659e into main Nov 22, 2026
3 checks passed
@thebenignhacker
thebenignhacker deleted the integrate/2026-11-22-a branch November 22, 2026 05:23

This branch was successfully deployed

1 active deployment
Preview — 21fab973 Deployed Nov 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant