Add user_info
and is_sensitive
attributes to AbstractProject | Us…
#40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 newuser_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 attributeis_sensitive
by checking thesensitive_data
field in the document. Crucial for delivery, set toTrue
by default.Database synchronization improvements:
lib/base/abstract_project.py
: Updated theinitialize_project_in_db
method to includeuser_info
andis_sensitive
parameters when creating a project in the Yggdrasil database.lib/base/abstract_project.py
: Added a call tosync_project_metadata
to update or synchronize project metadata in the Yggdrasil database if the project already exists.