ProjectSidewalk / SidewalkWebpage

Project Sidewalk web page
http://projectsidewalk.org
MIT License
84 stars 25 forks source link

Add more automation to deploying new cities, adding/hiding neighborhoods, etc #3748

Open misaugstad opened 23 hours ago

misaugstad commented 23 hours ago
Brief description of problem/feature

When it comes to deploying new cities and managing the addition/removal of areas of the city, there's quite a bit that can be more automated. I have solid documentation on these processes in pages like this and this. After the manual steps using QGIS, the new city setup process mostly involves copying/pasting SQL queries, changing a few parameters, and then double checking that I didn't make a mistake with my copying/pasting. I think that this could be sped up (and take less mental energy) by automating with a few bash scripts. Here's what I'm thinking:

  1. A script to fill all the tables correctly when creating a schema for a new city (actually finished this yesterday)
  2. A script to take the output from our check_streets_for_imagery.py script and make the appropriate changes to the db, along with a variant that can be run directly on the test/prod dbs
  3. A script to show/hide a set of neighborhoods, along with a variant that can be run directly on the test/prod servers

I updated the documentation in the adding a new city wiki page while I created the script for (1) yesterday, and the page is about 20% shorter now! That was by far the most complicated script, and the other two should be much quicker/easier to make.