Skip to content

Bug: subdivisions edge caseΒ #16

@paolodamico

Description

@paolodamico

There is an edge case in which because there's a variable amount of subdivision information for a given IP/country, GeoIP data is stored inconsistently. Given that we only override GeoIP attributes if there are new attributes, consider this very typical flow:

  1. User connects from the US (where at least subdivision 1 is available).
  2. User connects from KE (where no subdivision information is available).

The user will then have a profile that looks like this, which is wrong:

  • Country Name: Kenya
  • City Name: Nairobi
  • Subdivision 1 Code: VA
  • Subdivision 1 Name: Virginia

We should probably override all GeoIP attributes when the country/city changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions