Skip to content
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

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from

Conversation

MGS-sails
Copy link
Contributor

No description provided.

@MGS-sails MGS-sails self-assigned this Apr 26, 2024
Copy link
Member

@mberacochea mberacochea left a 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

ci/configuration.yaml Outdated Show resolved Hide resolved
emgapianns/management/lib/create_or_update_study.py Outdated Show resolved Hide resolved
emgapianns/management/lib/create_or_update_study.py Outdated Show resolved Hide resolved
emgapianns/management/lib/create_or_update_study.py Outdated Show resolved Hide resolved
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.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
logging.warning("ENA API password is missing. Study ownership cannot be verified.")
logging.error("ENA API password is missing. Study ownership cannot be verified.")

Copy link
Contributor Author

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

Copy link
Member

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

emgapianns/management/lib/create_or_update_study.py Outdated Show resolved Hide resolved
emgapianns/management/lib/create_or_update_study.py Outdated Show resolved Hide resolved
MGS-sails and others added 5 commits May 2, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants