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

Add user_info and is_sensitive attributes to AbstractProject | Us… #40

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

glrs
Copy link
Collaborator

@glrs glrs commented Jan 24, 2025

This pull request includes significant updates to the lib/base/abstract_project.py file, focusing on enhancing project metadata handling and synchronization with the Yggdrasil database. The most important changes involve the addition of user information and whether project includes sensitive data, as well as updating the database synchronization process.

Enhancements to project metadata:

  • lib/base/abstract_project.py: Added a new user_info dictionary to store detailed user information, including the owner's, bioinformatician's, PI's, and lab's email and name.
  • lib/base/abstract_project.py: Introduced a new attribute is_sensitive by checking the sensitive_data field in the document. Crucial for delivery, set to True by default.

Database synchronization improvements:

  • lib/base/abstract_project.py: Updated the initialize_project_in_db method to include user_info and is_sensitive parameters when creating a project in the Yggdrasil database.
  • lib/base/abstract_project.py: Added a call to sync_project_metadata to update or synchronize project metadata in the Yggdrasil database if the project already exists.

…e `sync_project_metadata` and updated `create_project`
@glrs glrs merged commit cb69e2b into NationalGenomicsInfrastructure:main Jan 24, 2025
3 checks passed
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.

1 participant