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/couchdb #39

Merged
merged 2 commits into from
Jan 24, 2025
Merged

Conversation

glrs
Copy link
Collaborator

@glrs glrs commented Jan 24, 2025

This pull request introduces several enhancements to the YggdrasilDocument class and related functionality in the lib/couchdb/document.py and lib/couchdb/manager.py files. The most significant changes include adding support for user information and improving project metadata synchronization.

Enhancements to YggdrasilDocument class:

  • Added a new user_info attribute to store user-related information as a nested dictionary. (lib/couchdb/document.py) [1] [2]
  • Updated the from_dict and to_dict methods to handle the new user_info attribute. (lib/couchdb/document.py) [1] [2]
  • Introduced a new method set_user_info to update the user_info attribute with provided nested dictionary data. (lib/couchdb/document.py)

Improvements to project metadata management:

  • Modified the create_project method to accept and set user_info and a sensitive flag, ensuring these attributes are properly initialized. (lib/couchdb/manager.py)
  • Added a new method sync_project_metadata to fetch, update, and save project documents with new user information and sensitivity settings. (lib/couchdb/manager.py)

@glrs glrs merged commit 9042d60 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