Design: approximate location from client IP (feature-flagged off, decisions needed) #34
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Jinemi/thermograph#34
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/geoip-approx-location"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When a visitor declines/lacks browser geolocation, infer a coarse location from their IP so the site can still show local weather, instead of dead-ending at search/map. Feature-flagged OFF (
THERMOGRAPH_GEOIP), not deployed — this PR is for review of the approach, not immediate merge-and-ship.Key design choices
Varyheader (varies on XFF, which caches don't key on) — would poison shared caches. Also can't see a visitor's already-saved localStorage place.geoipcategory inclassify_inbound), so no (IP, location) pair is ever written to disk or Loki.Tests:
cd backend && make test→ 449 passed, 8 skipped (baseline 386/7).cd frontend && make test-unit→ 41 passed.Decisions needed before this ships (full detail in
GEOIP-APPROX-LOCATION.md):geoip_fixed / geoip_shownratio that would trigger turning this off, before rollout — not after.Flagged as bad ideas, argued against in the doc: persisting the guess; a location-varying canonical homepage; extending the lookup to units/language/default-city (changes the legal basis from "necessary for the requested service" to personalisation); writing the derived city into any metric/audit field; gating this behind the analytics consent flag (different legal basis — would strand exactly the visitors who decline analytics).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.