Created by Colin Watson on 2019-08-08 and last modified on 2019-08-08
Get this branch:
bzr branch lp:~cjwatson/launchpad/geoip2
Only Colin Watson can upload to this branch. If you are Colin Watson please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Colin Watson
Launchpad itself

Recent revisions

19013. By Colin Watson on 2019-08-08

Add optional geoip2 support.

We don't have a useful way to test this until the relevant data packages
gain the right set of database files, but I've run the existing tests with
modified configuration to point to a local download of GeoLite2-Country.mmdb
and they pass.

Once we're using this, it will give us GeoIP support for IPv6 addresses.

19012. By Colin Watson on 2019-08-07

Switch to the GeoIP country database.

The only piece of information we use from this now is the country code, so
there's no point reading the much larger city database.

19011. By Colin Watson on 2019-08-07

Adjust test data to use an IP address still recognised by current DBs as being in Japan.

19010. By Colin Watson on 2019-07-04

Use the ipaddress module rather than ad-hoc private IP address detection.

This allows us to detect non-global IPv6 addresses as well.

19009. By Colin Watson on 2019-07-04

Remove weird GeoIP special case mapping private addresses to South Africa.

We can perfectly well just return None instead, and make the handful of
tests that care send their own test IP address.

19008. By Colin Watson on 2019-07-04

Remove unused IGeoIPRecord and GeoIPRequest.

19007. By Launchpad PQM Bot on 2019-07-03

[r=wgrant][no-qa] Lift commented bug ID search into a CTE.

19006. By Launchpad PQM Bot on 2019-07-03

[r=wgrant][no-qa] Exclude files that are set as base images from
 LiveFSFile pruning.

19005. By Launchpad PQM Bot on 2019-07-03

[r=wgrant][bug=1832477] Allow configuring the binary file retention
 period of a LiveFS.

19004. By Launchpad PQM Bot on 2019-07-03

[r=cjwatson][no-qa] Merge db-stable r14098 (Add
 LiveFS.keep_binary_files_interval column).

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
This branch contains Public information 
Everyone can see this information.