legumeinfo / ArachisPheno

AraPheno source code for http://arapheno.1001genomes.org
MIT License
0 stars 0 forks source link

Private data: Can a dataset/study be kept private? #2

Open sdash-github opened 4 years ago

sdash-github commented 4 years ago

Issue description copied from email. 0327, 10.45 a.m. sd-adf-sg

There is a related issue in my mind but I will spell it out in an issue in Arachpheno: Is it possible to have some datasets public and some datasets private in Arapheno. This becomes relevant when we serve the public minicore data. May be Sven already knows about the public vs. private data.

I doubt that it has this ability- I haven't seen any sort of login mechanism. could be wrong, though.

As far as I can tell, all of the AraPheno data are public. One of the database tables (auth_permission) lists various permission levels, but I do not think they are used for anything. I have no idea how hard it would be to add private data, as in the InterMines.

do you mean the MyMine feature of the intermines? that's a bit different I think, in that only the lists and queries one makes are private; I don't think there's any private data per se.

Site access restriction:

I am in favour of password protection that you have suggested, we should be able to share the presentation of the data among us insiders and the collaborators. Like an initial login page? I will look into it.

If nothing else, we could just use apache basic authentication (after we get it running via apache, that is)

svengato commented 3 years ago

I started working on this in April but did not get very far, see these modified files:

xxxpheno/phenotypedb/forms_private_data.py
xxxpheno/phenotypedb/models_private_data.py
xxxpheno/phenotypedb/views_private_data.py
html/home/upload_private_data.html