Skip to content

Persist anonymous users-by-location and fix IPv6 geo - #120

Open
LakshmanTurlapati wants to merge 1 commit into
mainfrom
users-by-location
Open

LakshmanTurlapati wants to merge 1 commit into
mainfrom
users-by-location

Conversation

@LakshmanTurlapati

Copy link
Copy Markdown
Collaborator

Summary

  • Persist a k-anonymized last-known region on 365-day daily rollups so the stats globe still plots after the 7-day raw-event wipe, and expose it as users_by_region_365d.
  • Resolve client IPs from Fly-Client-IP and look up native IPv6 against a sibling DB-IP table instead of collapsing Fly anycast/6PN onto US-CA or unknown.
  • Set theme color-scheme and an opaque footer language-select background so Chrome/Firefox stop painting white-on-white in dark mode.

Test plan

  • Stats globe uses 365-day regions when present and still falls back to popular_regions
  • IPv6 fixture lookups and Fly-Client-IP hashing never persist plaintext IP
  • Footer language picker stays readable in Chrome dark mode and light mode

Made with Cursor

Keep a k-anonymized 365-day last-known region on daily rollups so the stats globe survives the 7-day event wipe, resolve client IPs via Fly-Client-IP with a sibling IPv6 DB-IP table, and stop Chrome from painting the footer language select white-on-white.

Co-authored-by: Cursor <cursoragent@cursor.com>
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