-
Notifications
You must be signed in to change notification settings - Fork 129
[QUAD] Ftrack Task Status Update: Rework of the task status change + cleanup #6327
base: develop
Are you sure you want to change the base?
[QUAD] Ftrack Task Status Update: Rework of the task status change + cleanup #6327
Conversation
except Exception: # noqa | ||
session.rollback() | ||
msg = "Status \"{}\" in presets wasn't found on Ftrack entity type \"{}\"".format(next_status, | ||
entity.entity_type) |
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 (113 > 79 characters)
self.log.debug("Changing current task status to \"{}\" <{}>".format(next_status, ent_path)) | ||
except Exception: # noqa | ||
session.rollback() | ||
msg = "Status \"{}\" in presets wasn't found on Ftrack entity type \"{}\"".format(next_status, |
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 (106 > 79 characters)
|
||
entity["status"] = next_status_obj | ||
session.commit() | ||
self.log.debug("Changing current task status to \"{}\" <{}>".format(next_status, ent_path)) |
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 (103 > 79 characters)
|
||
if actual_status in from_statuses: | ||
next_status = to_status | ||
# We found a valid mapping (other that __any__) we stop looking. |
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 (80 > 79 characters)
task_name = get_current_task_name() | ||
|
||
# Find the entity | ||
entity = self.find_ftrack_task_entity(session, project_name, asset_name, task_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 (91 > 79 characters)
|
||
if len(filtered_entities) > 1: | ||
self.log.warning(( | ||
"Found more than one task \"{}\"" |
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
if not filtered_entities: | ||
self.log.warning(( | ||
"Couldn't find task \"{}\" under parent \"{}\" in Ftrack." | ||
).format(task_name, asset_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.
continuation line over-indented for hanging indent
|
||
if not filtered_entities: | ||
self.log.warning(( | ||
"Couldn't find task \"{}\" under parent \"{}\" in Ftrack." |
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
line too long (91 > 79 characters)
|
||
potential_task_entities = session.query(( | ||
"TypedContext where parent.name is \"{}\" and project_id is \"{}\"" | ||
).format(asset_name, project_entity["id"])).all() |
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
line too long (97 > 79 characters)
return | ||
|
||
potential_task_entities = session.query(( | ||
"TypedContext where parent.name is \"{}\" and project_id is \"{}\"" |
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
line too long (119 > 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: