You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to allow users to have a customised version of PGB working locally we need to address the way patient files are uploaded.
Currently, all goes to our S3:
aws s3 ls --profile phenopolis s3://phenopolis-website-uploads
PRE PH00000001/
PRE PH00008258/
PRE PH00008268/
PRE PH00008628/
PRE PH00008629/
PRE vcf/
And it's essentially done in React (frontend) via Uppy with some support endpoints in views/upload.py (but only for managing files, not for really uploading them).
Uppy seems to be very powerful and entails several options for upload including "local device".
We need, somehow, to have this option, for "local device". However, how is it going to be configured, either via frontend or in, e.g., public.env file, is still an opened question.
The text was updated successfully, but these errors were encountered:
I would argue that the easiest option is to have a local S3-compatible storage system (e.g. Minio) - and then everything would be compatible with minimal changes?
With docker-compose - it should be super simple to get minio running - and mount a local hard drive path to Minio
I tried to work on upload.py so to get rid of the two s3_client1 and s3_client2 and use endpoint_url="http://minio-server:9000" but I didn't get it to work.
What happens is that the actions using uppy (the JS module) for presign (upload) and for download, do request localhost (for delete and listing minio-server works fine).
If I try, e.g., to download a file, it redirects the browser to e.g.
Uploading fails, as I said, and though I thought it was a CORS issue, I don't think it is, and your suggestion to add in nginx.conf didn't work anyway.
So, I'm still using two s3_clients approach with some simplification. It works with Wasabi as well.
Please see my last commit in #386.
In order to allow users to have a customised version of PGB working locally we need to address the way patient files are uploaded.
Currently, all goes to our S3:
And it's essentially done in
React
(frontend) viaUppy
with some support endpoints inviews/upload.py
(but only for managing files, not for really uploading them).Uppy
seems to be very powerful and entails several options for upload including "local device".We need, somehow, to have this option, for "local device". However, how is it going to be configured, either via
frontend
or in, e.g.,public.env
file, is still an opened question.The text was updated successfully, but these errors were encountered: