qiime / qiime_web_app

QIIME, EMP and American Gut Web Application
www.microbio.me/qiime
9 stars 10 forks source link

Error when uploading host-associated data when study is not host associated #402

Open douginator2000 opened 11 years ago

douginator2000 commented 11 years ago

To recreate this issue:

Cause: Study is missing host_subject_id, but it doesn't complain about this when uploading because the study is not host-associated. If you change the study and add any of the host-associated package types, then re-upload the metadata, it will give you the proper error stating that host_subject_id is missing from the sample template.

Fix: Regardless of study type, if study contains any host-associated metadata values and is missing host_subject_id, throw error that informs user host_subject_id is required when submitting host-associated values.

ackermag commented 11 years ago

Great solution...

On Fri, May 17, 2013 at 2:31 PM, Doug Wendel notifications@github.comwrote:

To recreate this issue:

  • create a study, make it non-host-associated
  • add some host-associated fields to the templates
  • make sure to leave out host_subject_id
  • upload metadata. You will get errors stating that it could not insert the host-associated values.

Cause: Study is missing host_subject_id, but it doesn't complain about this when uploading because the study is not host-associated. If you change the study and add any of the host-associated package types, then re-upload the metadata, it will give you the proper error stating that host_subject_id is missing from the sample template.

Fix: Regardless of study type, if study contains any host-associated metadata values and is missing host_subject_id, throw error that informs user host_subject_id is required when submitting host-associated values.

— Reply to this email directly or view it on GitHubhttps://github.com/qiime/qiime_web_app/issues/402 .

Gail Ackermann Knight Lab UCB 596 University of Colorado Boulder