Skip to content

[feature] Implement Estimated Locations #1034

@DragnEmperor

Description

@DragnEmperor

Scenarios to handle:

  • When a device has last_ip having no WHOIS record, then the WHOIS record should be created and a new location should be created for the device. The location must be updated with latest coordinates when last_ip of device is updated.
  • When a device (A) has last_ip, which has WHOIS record, then the location of existing device (B) of same ip should be attached to device A, if:
    • A either has no location or A's location is estimated. If either fails, then location should be created/updated using coordinates from WHOIS record
    • there is only one existing device with location. In case there are multiple devices with same last_ip and they have locations then a notification must be sent to user notifying them for the same and asking them to resolve this manually.
      In case A has a location which is estimated then it should be deleted before attaching an already existing location.
  • If two devices A and B have same last_ip which implies they are attached to same location then if either device updates their last_ip (suppose A does) then A should have a new location created with the coordinates for the latest last_ip.

Metadata

Metadata

Assignees

Labels

gsocPart of a Google Summer of Code project

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions