Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Bulk Upload Wizard, give better error message when foreign-key variables are missing. #591

Open
gsrohde opened this issue Jun 22, 2018 · 0 comments

Comments

@gsrohde
Copy link
Contributor

gsrohde commented Jun 22, 2018

The BETYdb Rails code for the Bulk Upload Wizard relies on compliance with the foreign-key constraints on the trait_covariate_associations table that ensure that the referred-to variables exist. Unfortunately, the load.bety.sh database synchronization script bypasses these constraints when importing data from other databases, possibly resulting in a state of non-compliance.

If the trait_covariate_asssociations table refers to variables that are missing, the Bulk Upload Wizard will fail with the unhelpful error message undefined method `name' for nil:NilClass. Users should instead be alerted that they may need to import the referred-to variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant