-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/explicit studies privacy check #357
base: develop
Are you sure you want to change the base?
Conversation
release v2.4.39
Metagenomics Exchange upload command and related bookkeeping code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @MGS-sails I left some minor comments
url = f"{'https://www.ebi.ac.uk/ena/submit/report/studies'}/{study_id}" | ||
ena_api_password = EMG_CONF['emg']['ena_api_password'] | ||
if not ena_api_password: | ||
logging.warning("ENA API password is missing. Study ownership cannot be verified.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logging.warning("ENA API password is missing. Study ownership cannot be verified.") | |
logging.error("ENA API password is missing. Study ownership cannot be verified.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @mberacochea .
The idea here is to allow this part to continue when the CI pipeline is running.
Since in the pipeline config, the ena_api_password is kept empty
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is fine, but in case this happens by accident I would print that in the error log file
Co-authored-by: Martín Beracochea <[email protected]>
Co-authored-by: Martín Beracochea <[email protected]>
Co-authored-by: Martín Beracochea <[email protected]>
Co-authored-by: Martín Beracochea <[email protected]>
Added try catch and exlplict check for 200 responses from ENA API
No description provided.