Repository navigation
Combine daily PostHog summaries into one daily_summary event - #1459
grohith327 wants to merge 2 commits into
Conversation
Usage, model usage, insertion latency and the daily activity signal now ship as one event per active day, and model_download_started is dropped since model_download_finished already carries outcome and duration. Co-authored-by: Rohith Gandhi G <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
The PR Policy check is blocking this PR because required template information is missing. Please update the PR description with:
Visual files detected:
Screenshots or video are required for UI, UX, settings, onboarding, overlay, menu bar, or visual behavior changes. If this PR has no visual changes, check the no-visual-change box in the template. If this remains incomplete for 48 hours after opening, the PR may be closed. |
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge. SummaryCombines daily activity, usage, model, and insertion totals into
Reviews (2) · Last reviewed commit: "Send late totals for a day that was alre..." · Reviewed by Greptile |
FluidVoice PR build readyDownload FluidVoice-PR-1459-0234b81a4415 The artifact contains the ad-hoc-signed app ZIP, Xcode archive, build manifest, and installation instructions. It expires 5 days after the build. Install the app
This build has its own app identity, so its permissions are separate from the release version of FluidVoice. |
If the clock moves back to a summarized day, its new usage totals were deleted without being sent. They now go out in a second summary for that day; repeat activity alone still doesn't. Co-authored-by: Rohith Gandhi G <[email protected]>
Description
Cuts PostHog volume by sending one
daily_summaryevent per active day instead ofusage_daily_summary,model_usage_daily_summary(one per model),insertion_latency_daily_summary(one per path/outcome) andactive_user. Model and latency rows move intomodel_usage/insertion_latencyarray properties, with flattranscription_models/ai_modelslists for regular PostHog filters.model_download_startedis dropped;model_download_finishedalready has outcome and duration.The event timestamp is noon on the activity day, so DAU/retention can be built on it. Activity-only summaries (including all summaries when detailed analytics is off) keep the weekly hold; opting out strips details from queued summaries.
Expected effect: roughly 1.06M → 450K events/month based on the last 30 days.
Type of Change
Related Issue or Discussion
Closes #1458
Testing
Updated
AnalyticsDatabaseTestsfor the combined event, weekly hold, opt-out stripping and download dedupe. Not verified against live PostHog ingestion.swiftlint --strict --config .swiftlint.yml Sources Tests Package.swiftswiftformat --config .swiftformat SourcesAnalyticsDatabaseTests(24 passed)Screenshots / Video
Notes
PostHog dashboards need to move from
active_userand the old summary events todaily_summary(oractive_user OR daily_summarywhile old versions are still out). Old app versions keep sending the old events until they upgrade.Claude drafted the change; I reviewed the diff. Not tested on Intel.