Mike-Heneghan / ALISS

ALISS (A Local Information System for Scotland) is a service to help you find help and support close to you when you need it most.
https://aliss.org
0 stars 0 forks source link

Add data quality management command i.e. GeoJSON and CSV #96

Open Mike-Heneghan opened 4 years ago

Mike-Heneghan commented 4 years ago

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.

Mike-Heneghan commented 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.