Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Bexley #336

Merged
merged 28 commits into from Jun 20, 2016
Merged

Import Bexley #336

merged 28 commits into from Jun 20, 2016

Commits on Jun 17, 2016

  1. Configuration menu
    Copy the full SHA
    01732c1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4c445af View commit details
    Browse the repository at this point in the history
  3. Add addressbase app

    This contains:
    
    1. Clean/importer scripts for AddressBase
    2. Models for storing addresses
    3. Helpers for making addresses for areas with postcodes split over districts
    symroe committed Jun 17, 2016
    Configuration menu
    Copy the full SHA
    fff8eaa View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e748568 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    45726f8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    116d0d7 View commit details
    Browse the repository at this point in the history
  7. pep8 fixes for base importers

    symroe committed Jun 17, 2016
    Configuration menu
    Copy the full SHA
    c72417d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    707bc23 View commit details
    Browse the repository at this point in the history
  9. Change interface of postcodes_not_contained_by_district

    Now return a dict containing the total of postcodes for an area
    as well as the ones that need attention
    symroe committed Jun 17, 2016
    Configuration menu
    Copy the full SHA
    70865e4 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    0a65760 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    e04c7d4 View commit details
    Browse the repository at this point in the history
  12. fixup! Add addressbase app

    symroe committed Jun 17, 2016
    Configuration menu
    Copy the full SHA
    9b70ca8 View commit details
    Browse the repository at this point in the history
  13. fixup! Add addressbase app

    symroe committed Jun 17, 2016
    Configuration menu
    Copy the full SHA
    6677aa2 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    2caee24 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    1a8e737 View commit details
    Browse the repository at this point in the history
  16. Return a polling station if all have the same address

    This deals with the case where a council have 'split' the polling district in to two different polling places, but they're actually the same place.
    symroe committed Jun 17, 2016
    Configuration menu
    Copy the full SHA
    c77704f View commit details
    Browse the repository at this point in the history
  17. Add centre_from_points_qs

    This allows us to get the centre point from a list of postcodes
    symroe committed Jun 17, 2016
    Configuration menu
    Copy the full SHA
    bdd3233 View commit details
    Browse the repository at this point in the history
  18. Only update_or_create on slug

    I *think* using all fields will be slower, but either way this is more Djangoy
    symroe committed Jun 17, 2016
    Configuration menu
    Copy the full SHA
    9688a91 View commit details
    Browse the repository at this point in the history
  19. Don't re-add seen polling stations

    This is a massive speed up – if an importer class defines a `get_station_hash` method, then use that to remember polling stations we've imported. This prevents re-geocoding/creating the object in the DB and reduces the import time from over 5 minutes to under 10 seconds.
    symroe committed Jun 17, 2016
    Configuration menu
    Copy the full SHA
    39ffbca View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    4e1af79 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    e9c4c5f View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2016

  1. Configuration menu
    Copy the full SHA
    6029f32 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c0905a0 View commit details
    Browse the repository at this point in the history
  3. Fix polygons for Calderdale

    symroe committed Jun 19, 2016
    Configuration menu
    Copy the full SHA
    e78d9fd View commit details
    Browse the repository at this point in the history
  4. Import Southwark

    symroe committed Jun 19, 2016
    Configuration menu
    Copy the full SHA
    96da588 View commit details
    Browse the repository at this point in the history
  5. clean_ambiguous_addresses after import

    This fixes the issue of ambiguous addresses, as outlined in #282 by deleting duplicates after import
    symroe committed Jun 19, 2016
    Configuration menu
    Copy the full SHA
    16296f5 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    a490adb View commit details
    Browse the repository at this point in the history
  7. Import Bexley

    symroe committed Jun 19, 2016
    Configuration menu
    Copy the full SHA
    0ae8589 View commit details
    Browse the repository at this point in the history