chop-dbhi / data-models-service

Service for consuming files in the data models format.
1 stars 1 forks source link

Add additional warnings about potential data model definition problems #29

Open murphyke opened 7 years ago

murphyke commented 7 years ago

There are a couple circumstances which cause the data-models-sqlalchemy service to throw exceptions, and it might make sense to flag them in the data models service. Currently it's impossible for users to know what fields or tables are responsible for the exceptions, so either the data models service or DMSA should be changed. People tend to treat the data models service as the validator for the data model definitions, so it makes sense to put the warnings here.

The problematic situations are:

murphyke commented 6 years ago

I have spent way too much time today trying to debug the latest pcornet data model submission. There were various issues, one of which was a typo in a field name in schema/sometable.csv that caused DMSA to die unhelpfully. Hopefully the next time this happens I will have a total freakout and will improve the validation in DMS.

burrowse commented 6 years ago

THANK YOU @murphyke for all your help!!

In adding the PCORnet 4.0 DDL, which started as a copy of what was in place for the PCORnet 3.1 DDL there were issues around formatting, data types etc that were discovered.

If the tool is intended to be used for future work, it would be great to have the following features/warnings: