-
Notifications
You must be signed in to change notification settings - Fork 129
[QUAD] Kitsu Sync: Properly synchronize project state between OP mongo and Kitsu #6322
base: develop
Are you sure you want to change the base?
[QUAD] Kitsu Sync: Properly synchronize project state between OP mongo and Kitsu #6322
Conversation
# The project doesn't exist on OpenPype DB, skip | ||
return | ||
|
||
# Deactivate the project on the OpenPype DB (if not already), then return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (81 > 79 characters)
# Get the project from OpenPype DB | ||
project_name = project["name"] | ||
project_dict = get_project(project_name) | ||
project_active_state_kitsu = KitsuStateToBool[project["project_status_name"]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (81 > 79 characters)
@@ -400,8 +425,15 @@ | |||
# all project | |||
project_to_sync = all_projects | |||
|
|||
# Iterate over MongoDB projects and if it's not present in Kitsu, deactivate it on MongoDB |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (94 > 79 characters)
"data": project['data'] | ||
} | ||
} | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
continuation line missing indentation or outdented
bulk_writes.append( | ||
UpdateOne( | ||
{"_id": project["_id"]}, | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
continuation line missing indentation or outdented
dbcon.Session["AVALON_PROJECT"] = project["name"] | ||
bulk_writes.append( | ||
UpdateOne( | ||
{"_id": project["_id"]}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
continuation line missing indentation or outdented
project['data']['active'] = active | ||
dbcon.Session["AVALON_PROJECT"] = project["name"] | ||
bulk_writes.append( | ||
UpdateOne( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
continuation line over-indented for hanging indent
@@ -356,6 +361,23 @@ | |||
) | |||
|
|||
|
|||
def update_project_state_in_db(dbcon: AvalonMongoDB, project: dict, active: bool): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line too long (82 > 79 characters)
Changelog Description
Paragraphs contain detailed information on the changes made to the product or service, providing an in-depth description of the updates and enhancements. They can be used to explain the reasoning behind the changes, or to highlight the importance of the new features. Paragraphs can often include links to further information or support documentation.
Additional info
Paragraphs of text giving context of additional technical information or code examples.
Testing notes: