Sage-Bionetworks / dccmonitor

Allows for monitoring of data uploaded via the dccvalidator application. Functions for getting information on the uploaded files, metadata validation status, and more.
https://sage-bionetworks.github.io/dccmonitor
Other
2 stars 4 forks source link

Button for individual validation #63

Closed Aryllen closed 4 years ago

Aryllen commented 4 years ago

Currently validates all studies on startup. This leads to problems if there is a bug in the validation process since the app will crash. One example is when a dccvalidator user uploaded a file with an empty path column. The problem was only in a single study, but since it validates all studies on startup, the app crashed.

It may be better to load the file information, but not validate until a user clicks a button to do so. The button should be wrapped dccvalidator's with_button_indicator mod so it pops up an error message instead of crashing if there's a problem. The downside is having to click a button to validate each one individually.

Could also include a "validate all" button that then validates each study, but that would be more challenging given that each study is within it's own module (i.e. not sure how to get the button click to propagate through all study mods).