Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

[QUAD] Ftrack Task Status Update: Rework of the task status change + cleanup #6327

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

BenSouchet
Copy link

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:

  1. start with this step
  2. follow this step

except Exception: # noqa
session.rollback()
msg = "Status \"{}\" in presets wasn't found on Ftrack entity type \"{}\"".format(next_status,
entity.entity_type)
Copy link

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,
Copy link

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))
Copy link

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.
Copy link

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)
Copy link

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 \"{}\""
Copy link

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))
Copy link

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."
Copy link

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()
Copy link

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 \"{}\""
Copy link

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)

@ynbot ynbot added host: Houdini host: Nuke module: Ftrack type: enhancement Enhancements to existing functionality size/S Denotes a PR changes 100-499 lines, ignoring general files labels Sep 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
host: Houdini host: Nuke module: Ftrack size/S Denotes a PR changes 100-499 lines, ignoring general files type: enhancement Enhancements to existing functionality
Projects
Status: Pending Review
Development

Successfully merging this pull request may close these issues.

2 participants