Repository navigation
Numbers: leave out Debug, local and Simulator usage; split App Store from TestFlight - #1269
Merged
Merged
Conversation
…from TestFlight Usage events from 0.1.0 builds, iOS Simulators and (from 1.2.15) environment=debug are dropped in one shared PostHog condition, and devices recording are counted per source: App Store, TestFlight, or unknown (before 1.2.15). Assisted-by: Claude Code:claude-opus-5-5
Skeyelab
enabled auto-merge (squash)
November 24, 2026 04:11
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Agreed with cos: drop debug events entirely, keep App Store and TestFlight as separate rows, and show events from before 1.2.15 (no
environment) as "unknown (before 1.2.15)".APP_EVENTSinscripts/weekly_numbers.pyis the one PostHog condition both the daily/weekly email and the numbers report use. It leaves outenvironment = debug(sent since Telemetry: every PostHog event says its environment (debug, testflight or appstore) #1263), version 0.1.0 (local builds) and the iOS Simulator ($os iOS/iPadOS with device model arm64 or x86_64). Real Macs also report arm64, so macOS isn't filtered on it.Why: on 2026-11-23, 11 iPad Simulator installs on 0.1.0 (16:15-16:29 ET) would have counted as about 9 devices recording in the next daily. Since launch, devices recording drops from 25 to 11 with the filter.
Checked:
python3 -m unittest scripts/test_weekly_numbers.py scripts/test_numbers_report.pypass (new tests for the source split and the filter), and a liveDAYS=1run of weekly_numbers.py.VERIFY_QUICK=1 ./scripts/verify.shcan't run on this Linux machine (needs macOSlockf); CI covers it.🤖 Generated with Claude Code