iomega / paired-data-form

Linking mas spectra and genomic information to discover new chemistry
https://pairedomicsdata.bioinformatics.nl
Apache License 2.0
5 stars 4 forks source link

Download button on pending page yields incorrectly formatted json files #120

Closed justinjjvanderhooft closed 4 years ago

justinjjvanderhooft commented 4 years ago

Describe the bug Download button on pending page yields incorrectly formatted json files.

To Reproduce Steps to reproduce the behavior:

  1. http://pairedomicsdata.bioinformatics.nl/pending
  2. Download a pending project using the download button in the table on the page
  3. Upload the downloaded json file into the add page
  4. The validation fails

Expected behavior Upload in add page should fill out the project information.

sverhoeven commented 4 years ago

The file downloaded on the pending page has an extra wrapper around the project like

{
  "_id": "xxx",
  "project": { ... }
}

It should return the value of project property not the wrapped object.