tl-its-umich-edu / unizin-validation

Unizin Validation Scripts
1 stars 4 forks source link

Add flags/checks and exit with proper code when problem is identified #8

Closed ssciolla closed 4 years ago

ssciolla commented 4 years ago

We need to add some kind of mechanism for identifying data inconsistencies and raising flags accordingly. The solution should do the following:

1) If the "udw_table_counts" query returns any table counts equal to 0, we need to flag that in the emailed results and the program should exit with code 1.

2) If the "unizin_metadata" query returns a canvasdatadate older than 48 hours, we need to flag that in the emailed results.

In implementing this, it may make sense to separate generating the results from emailing them.