SEED-platform / seed

Standard Energy Efficiency Data (SEED) Platform™ is a web-based application that helps organizations easily manage data on the energy performance of large groups of buildings.
Other
106 stars 55 forks source link

Display errors on the front end for bad mapquest keys when geocoding #4709

Open crutan opened 4 days ago

crutan commented 4 days ago

Any background context you want to provide?

Added translation keys for the error text:

FAILED_GEOCODE_INVALID_MAPQUEST_API_KEY - returned on a 401 from Mapquest FAILED_GEOCODE_MAPQUEST_API_KEY_ERROR - returned on a 403 from Mapquest

What's this PR do?

Passes an error through to the frontend when mapquest geocoding fails.

How should this be manually tested?

Supply a placeholder mapquest API key, and attempt to geocode a property without lat/long - you should see the error on the modal.

What are the relevant tickets?

https://github.com/SEED-platform/seed/issues/4357

Screenshots (if appropriate)

image