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: people related records table #1462

Closed roseeichelmann closed 2 months ago

roseeichelmann commented 3 months ago

Associated issues

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

Testing

URL to test: Local

Steps to test:

  1. Check out this branch locally
  2. Follow steps to start the data model collector branch and run the CRIS import ETL, or if you already have it set up use that!
  3. Apply the hasura migrations and metadata from this branch
  4. In the VZE go to a crash details page, check out the people table.
  5. Test editing columns that can be edited. Test diff users. Check that your edits are applying to people_edits and not people_cris. Check the record you are editing in the unified people table.
  6. Null out an edit you made, make sure the cris value is now propagating to the top again.
  7. The injury sev badges should have colors. People with fatal injuries should have editable names if your are testing as a vz-admin user. Editor/read users should not be able to see or edit victim names.
  8. Editing the injury sev of a person should update the header cards and years of life lost on refresh. May address refetching the related records on edit so that the metric cards and change logs are refreshed automatically in another PR? Or could do it here

Ship list