openflighthpc / carbon-leaderboard

A tool to compare environmental impact data from different systems
0 stars 0 forks source link

Include more comprehensive validations on data #34

Open Womblue opened 1 month ago

Womblue commented 1 month ago

The existing branch dev/better-errors works towards implementing some better validation of database records. The pre-existing validation prevents necessary values from being blank, but doesn't do much more than that. Boavizta API is not helpful in this case because it doesn't tend to throw errors even if the given values aren't valid. We already know the expected format of the data, so ensuring it's correct and that invalid records don't get added should be straightforward.