jwql
jwql copied to clipboard
Download EDB data from dev server
The way that EDB data downloads were downloaded in #415 seems to not be working on the development server.
This might be a simple permissions error, which would hopefully be easy to fix....
It might also be a problem with where the files are saved - they might need to be put on central store instead of inside the dev server repo?
While this is fixed, it might also be worthwhile to update the code to save the files with unique names based on the query time, e.g. edb_exploration_20190516_204343.csv
. Then there could be a cron job that cleans out that directory every day, hour, five minutes, etc.
Potentially elegant solution using Django to dynamically generate CSVs and return them with an HTTP response: https://docs.djangoproject.com/en/2.2/howto/outputting-csv/
Unfortunately, I don't think I will be able to fulfill this assignment.
This issue is tracked on JIRA as JWQL-238.