Skip to content

feat(app): integrate analytics sdk - #8450

Merged
mergify[bot] merged 32 commits into
mainfrom
fetch/app-analytics--integrate-app
Nov 27, 2026
Merged

mergify[bot] merged 32 commits into
mainfrom
fetch/app-analytics--integrate-app

Conversation

@fetchfern

Copy link
Copy Markdown
Member

No description provided.

@fetchfern
fetchfern added this pull request to stack #8451 November 25, 2026 00:04
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Pull request changelog

App

Added

Changed

  • Updated app analytics to use new system instead of Posthog.

Deprecated

Removed

Fixed

Security

Website

Added

Changed

Deprecated

Removed

Fixed

Security

Hosting

Added

Changed

Deprecated

Removed

Fixed

Security

@fetchfern
fetchfern force-pushed the fetch/app-analytics--integrate-app branch from 11deb95 to 4b8f359 Compare November 25, 2026 00:04
@greptile-apps greptile-apps Bot mentioned this pull request Nov 25, 2026
@fetchfern
fetchfern force-pushed the fetch/app-analytics--integrate-app branch 4 times, most recently from a2c05b9 to 6db469c Compare November 25, 2026 18:22
Start the analytics client on app state init with a persisted UUIDv4
installation ID, apply the telemetry setting as opt-out when it changes,
and drain queued events on exit.
@fetchfern
fetchfern force-pushed the fetch/app-analytics--integrate-app branch from 5416bc8 to 77a478d Compare November 26, 2026 23:52
Base automatically changed from fetch/app-analytics to main November 27, 2026 00:15
@mergify
mergify Bot force-pushed the fetch/app-analytics--integrate-app branch from 77a478d to 4c539dc Compare November 27, 2026 00:15
@fetchfern
fetchfern force-pushed the fetch/app-analytics--integrate-app branch from 4c539dc to 9c76985 Compare November 27, 2026 00:49
@fetchfern
fetchfern marked this pull request as ready for review November 27, 2026 00:49
@mergify

mergify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Queue requested — the merge queue status continues in this comment ↓.

…integrate-app

# Conflicts:
#	Cargo.lock
#	Cargo.toml
#	packages/modrinth-app-analytics-sdk/Cargo.toml
#	packages/modrinth-app-analytics-sdk/src/backend.rs
#	packages/modrinth-app-analytics-sdk/src/client.rs
#	packages/modrinth-app-analytics-types/src/event.rs
#	packages/modrinth-app-analytics-types/src/http/extract.rs
@greptile-apps

greptile-apps Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 3/5 · Fix the opt-out error path before merging so saved privacy settings reliably stop collection.RetriggerView in GreptileConfidence Score: 3/5

[High impact] Opted-in app activity can now be sent from installations across the app.

Fix the opt-out error path before merging so saved privacy settings reliably stop collection.

Reviews (2) · Last reviewed commit: "style(app-frontend): format Gallery.vue" · Reviewed by Greptile

Comment thread packages/app-lib/src/api/analytics.rs Resolved
- Send analytics to MODRINTH_API_BASE_URL instead of localhost
- Drop failed batches instead of requeueing them when the installation ID changed or analytics were opted out of mid-send
- Move reset_analytics_installation_id wrapper to platform/app-lib/settings
- Sort app-lib dependencies for tombi
- Prefix unused install source param
Redis 8.12 refuses to start a cluster node without TLS unless the cluster bus port protected mode is turned off, which broke service startup in CI. The bus ports are only reachable on the internal compose network, so disable it, and pin the Redis image so a new release can't break CI again.
@fetchfern

Copy link
Copy Markdown
Member Author

@greptile

Comment thread packages/app-lib/src/api/settings.rs Resolved
Opt the SDK out before the fallible ID deletion, and delete the ID on every settings save while telemetry is disabled, so a failed cleanup is retried instead of leaving the SDK collecting.
@mergify

mergify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

✅ Merged into main as 6403190 at 16:33 UTC

1 min in the queue, with no time running CI.

So far

2 merge conditions met
  • github-review-approved · required by GitHub branch protection
  • any of · required by GitHub branch protection:
    • check-skipped = Lint and Test
    • check-neutral = Lint and Test
    • check-success = Lint and Test

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 27, 2026
@mergify
mergify Bot merged commit 6403190 into main Nov 27, 2026
20 checks passed
@mergify
mergify Bot deleted the fetch/app-analytics--integrate-app branch November 27, 2026 16:33
@mergify mergify Bot removed the queued label Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants