street-level zones: Migration + Admin
Created by: adipasquale
https://trello.com/c/q2eaS2XJ/1108-secto-support-des-zones-de-niveau-rue
- add street fields to zones table
- New interactive zone form to toggle between city level and street level and give contextual informations
- Densified zones list display in sectors#show
- handle street informations in zone files imports, refactored instructions
-
handle zone level streets in user searches
-
extracted a row-level object from the
ImportZoneRowsService
that was getting too big. this could/should have been extracted as a preliminary PR, sorry -
fixed somewhat unrelated edge case of
Users::GeoSearch
attributions: when two sectors matched for a search, one attributed to the full organisation O1 and the other attributed to specific agents of the O1 organisation => the second match is redundant and should not show up at all.
left for future optional improvements :
- ad-hoc interface that takes a list of city names and returns the matching BAN ids to help importing big lists
- debug interface : enter an address and show which zones were matched and what attributions there are