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 introduces several enhancements to the
YggdrasilDocument
class and related functionality in thelib/couchdb/document.py
andlib/couchdb/manager.py
files. The most significant changes include adding support for user information and improving project metadata synchronization.Enhancements to
YggdrasilDocument
class:user_info
attribute to store user-related information as a nested dictionary. (lib/couchdb/document.py
) [1] [2]from_dict
andto_dict
methods to handle the newuser_info
attribute. (lib/couchdb/document.py
) [1] [2]set_user_info
to update theuser_info
attribute with provided nested dictionary data. (lib/couchdb/document.py
)Improvements to project metadata management:
create_project
method to accept and setuser_info
and asensitive
flag, ensuring these attributes are properly initialized. (lib/couchdb/manager.py
)sync_project_metadata
to fetch, update, and save project documents with new user information and sensitivity settings. (lib/couchdb/manager.py
)