[OLD] Crisis Cleanup Version 3 Web Application based on Vue 2. This version was launched March 27, 2020 and retired March 10, 2023 when it was superseded by a Vue 3 version.
Bug
Because of the way the geocoder works, once an address has been entered, it is impossible to edit. Editing a single field at a time triggers a geocoding query that compares the new value against the other data, decides it is incorrect, and corrects it back to the original version.
To Reproduce
Steps to reproduce the behavior:
Go to Cases
Click on any case. Click the edit button.
Change one of the address fields
Onblur, it will return to its original state
Second, related issue:
Follow Steps 1-2 above.
Try to manually move the pin on the map.
You can't.
Pressing the "Select on Map" button will change the What3Words value, but not the location on the map.
Expected behavior
I don't know exactly what the solution is, but perhaps when editing, you could keep track of the edited fields, then compare the edited fields with the whatever the geocoding request returns, and only change the fields if the non-edited fields change.
More clunky would be to turn off geocoding until you press another button.
...just some thoughts.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Bug Because of the way the geocoder works, once an address has been entered, it is impossible to edit. Editing a single field at a time triggers a geocoding query that compares the new value against the other data, decides it is incorrect, and corrects it back to the original version.
To Reproduce Steps to reproduce the behavior:
Second, related issue:
Expected behavior I don't know exactly what the solution is, but perhaps when editing, you could keep track of the edited fields, then compare the edited fields with the whatever the geocoding request returns, and only change the fields if the non-edited fields change. More clunky would be to turn off geocoding until you press another button. ...just some thoughts.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):