phac-nml / irida

Canada’s Integrated Rapid Infectious Disease Analysis Platform for Genomic Epidemiology
https://irida.ca
Apache License 2.0
40 stars 31 forks source link

Add in ability to paste a URL to a fastq file or other file instead of uploading from a web browser #62

Open apetkau opened 6 years ago

apetkau commented 6 years ago

Imported from GitLab issue #383. Originally posted on 2016/07/05 02:14PM

tom114 commented 6 years ago

I think Simon is probably imagining what Galaxy is doing, so we could model the UI after that.

I think that we should probably just go with the easiest thing to start: launch a thread. I don't think we should do another scheduled task. Maybe use something like the async tasks defined in spring mvc? http://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.html#mvc-ann-async

Imported from GitLab. Originally posted on 2016/07/06 08:18AM Originally posted by Franklin Bristow

tom114 commented 6 years ago

Thinking about this a little bit. I think I would do it as an input box on the sample/files page similar to the upload files button. Because it could take a little while I wouldn't want to make the user wait while it downloads the files. That would mean either launching a thread to run the downloads, or using another scheduled task. The benefit to the scheduled task is that if 4 people are trying to download from NCBI at a time it wouldn't clog the tubes. I guess the same thing could be achieved with a thread pool. @franklin.bristow any thoughts?

Imported from GitLab. Originally posted on 2016/07/05 04:07PM