cityofaustin / atd-vz-data

The technology that powers the City of Austin's Vision Zero program
https://visionzero.austin.gov/viewer/
11 stars 2 forks source link

Crash details page: crash diagram + narrative #1470

Closed roseeichelmann closed 2 months ago

roseeichelmann commented 2 months ago

Associated issues

Closes https://github.com/cityofaustin/atd-data-tech/issues/17183

Testing

URL to test: Local

Steps to test:

  1. Follow instructions in https://github.com/cityofaustin/atd-vz-data/pull/1440 to start the data model collector branch and run the CRIS import ETL, or if you already have it set up use that!
  2. Because all of the cr3 columns the crash diagram component uses are currently null until we do a back fill in the new crashes table, to test you will need to manually copy over some fields to a record.
  3. In your db client, find a crash record in the new crashes table. Now find that same crash in the old atd_txdot_crashes table. Copy over the following columns from atd_txdot_crashes to the record in crashes: cr3_stored_flag (now a boolean instead of a string) and cr3_file_metadata
  4. Now if you go to the crash details page for that crash id you should see the crash diagram there. You should also see a button to download CR3 pdf though you wont actually be able to locally.
  5. Observe that the crash narrative is also pulling from the new table

Ship list

johnclary commented 2 months ago

I am merging this!