cityofaustin / atd-monorepo-testing

Temporary repository for testing of moving issues across repos programmatically
0 stars 0 forks source link

VZE: Crash view change log displays [object Object] for geocode_method when using editor map #581

Closed atdservicebot closed 4 years ago

atdservicebot commented 4 years ago

When logging an update made by the crash coordinates editor map, the Change Log UI displays the geocode_method object from the query response below. The UI could be changed to show description instead of geocode_method.

Query:

atd_txdot_crashes(where: {crash_id: {_eq: 17290335}}) {
    crash_id
    geocode_method {
      geocoder_id
      description
    }
  }

Query response:

{
  "data": {
    "atd_txdot_crashes": [
      {
        "crash_id": 17290335,
        "geocode_method": {
          "geocoder_id": 5,
          "description": "The lat/long coordinates have been provided manually."
        }
      }
    ]
  }
}

Example record and screenshot

https://localhost:3000/#/crashes/16950165 Screen Shot 2019-12-19 at 3 45 10 PM copy

Migrated from atd-vz-data #536