futres / futres-data-interface

FuTRES Data Visualization
0 stars 1 forks source link

download mechanism #8

Closed jdeck88 closed 3 years ago

jdeck88 commented 3 years ago

The recent commit to the develop branch has some comments on how to complete this task.

We Construct query string to download service like BASE URL: https://www.plantphenology.org/futresapi/v2/download/_search? QUERY SYNTAX: q=+mapped_traits:"humerus+length"++AND+++mapped_traits:"length"' NOTES:

More instructions, if you need them, at: https://github.com/biocodellc/ppo-data-server/blob/master/docs/download_futres_proxy.md

Behaviour: After clicking the download BUTTON, need some sort of dialog. This can be either:

  1. A dialog with some explanatory text and telling user to wait, with another download button, OR
  2. a download progress dialog that closes automatically when complete
jdeck88 commented 3 years ago

Recent commit to develop solved the first part of this issue. Now, we just need the last part, which i've described in code comments, and also here:

// Behaviour: After clicking the download BUTTON, need to download file with call to query service.
// This can be several things, but we need very first, just #1 implemented
//  1. Simply a link to download file and download
//  2. a dialog with some explanatory text and telling user to wait, with another download button, OR
//  3. a download progress dialog that closes automatically when complete
jdeck88 commented 3 years ago

This is built