Open Mike-Heneghan opened 4 years ago
So to solve this issue we need to compare the service area name and code to those in the DB and warn if any do not match.
We already have to manually state the GeoJSON keys so we could use that information to compare against the DB records.
Although, the test wouldn't use production data.
We could run the command which populates the DB and the ServiceArea model and test against that.
Although the postcode data wouldn't be considered.
There have been a couple of occasions where it has been realised the service area codes of the GeoJSON have not matched the ServiceArea codes.
It would be better if this was caught earlier so tests could be written to check for data set matches.