-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Populate address truth source from admin edits (#511)
* Populate address truth source from admin edits * Allow selecting APs and sectors when adding links in the admin UI * Show AP links on the map * Add links between access points at spreadsheet import time * Add test for map display of AP links * Fix mypy types * Fix non-determinism in tests * Kick CI * Merge migrations
- Loading branch information
1 parent
ad5e4cb
commit 1b0bc6f
Showing
6 changed files
with
188 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/meshapi/migrations/0026_alter_building_address_truth_sources.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Generated by Django 4.2.9 on 2024-09-07 18:22 | ||
|
||
import django.contrib.postgres.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("meshapi", "0025_rebuild_building_node_m2m_to_fix_dupes"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="building", | ||
name="address_truth_sources", | ||
field=django.contrib.postgres.fields.ArrayField( | ||
base_field=models.CharField( | ||
choices=[ | ||
("OSMNominatim", "OSMNominatim"), | ||
("OSMNominatimZIPOnly", "OSMNominatimZIPOnly"), | ||
("NYCPlanningLabs", "NYCPlanningLabs"), | ||
("PeliasStringParsing", "PeliasStringParsing"), | ||
("ReverseGeocodeFromCoordinates", "ReverseGeocodeFromCoordinates"), | ||
("HumanEntry", "HumanEntry"), | ||
] | ||
), | ||
help_text="A list of strings that answers the question: How was the content of the street address, city, state, and ZIP fields determined? This is useful in understanding the level of validation applied to spreadsheet imported data. Possible values are: OSMNominatim, OSMNominatimZIPOnly, NYCPlanningLabs, PeliasStringParsing, ReverseGeocodeFromCoordinates, HumanEntry. Check the import script for details", | ||
size=None, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Generated by Django 4.2.13 on 2024-09-16 23:38 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("meshapi", "0026_alter_building_address_truth_sources"), | ||
("meshapi", "0029_merge_20240916_1919"), | ||
] | ||
|
||
operations = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters