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

Shot asset build trigger status #736

Merged
merged 6 commits into from
Nov 20, 2020

Conversation

iLLiCiTiT
Copy link
Member

@iLLiCiTiT iLLiCiTiT commented Nov 19, 2020

Changes

  • implemented ftrack event handler TaskStatusToParent
    • is processing on task status change
  • event handler change status of entity types defined in parent_types by their children task statuses
    • default parent types are ["shot", "asset build"]
  • entity status is determined in 2 possible ways
    1. By values in attribute parent_status_match_all_task_statuses
      • all children task status name of the entity must be in list under key "task_statuses" when that is matched status name under key "new_status" will be used
    2. By values in attribute parent_status_by_task_status
      • works same as 1.) but only currently changed task status is used to determine new status

Examples

parent_status_match_all_task_statuses = [
    {
        "new_status": "completed",
        "task_statuses": [
            "approved", "omitted"
        ]
    }
]
parent_status_by_task_status = [
    {
        "new_status": "working",
        "task_statuses": [
            "in progress"
        ]
    }
]

Project hiarchy (1 stage):

Project
|_ Shot (Ready)
  |_ Task 1 (Ready)
  |_ Task 2 (Ready)

Project hiarchy (2 stage):

  • USER INTERACTION: Task 1 status changed to In progess
  • EVENT INTERACTION: Shot status was changed to "working"
    • task statuses match filtering by parent_status_by_task_status attribute
Project
|_ Shot (Ready) -> (Working)
  |_ Task 1 (Ready) -> (In Progress)
  |_ Task 2 (Ready)

Project hiarchy (3 stage):

  • USER INTERACTION: Task 2 status changed to Omitted
  • EVENT INTERACTION: Nothing happens
    • task statuses do not match any filtering
Project
|_ Shot (Working)
  |_ Task 1 (In Progress)
  |_ Task 2 (Ready) -> (Omitted)

Project hiarchy (4 stage):

  • USER INTERACTION: Task 1 status changed to Approved
  • EVENT INTERACTION: Shot status was changed to "completed"
    • task statuses match filtering by parent_status_match_all_task_statuses attribute
Project
|_ Shot (Working) -> (Completed)
  |_ Task 1 (Approved)
  |_ Task 2 (Omitted)
🏴 this depends on
pype-config ynput/pype-config#95

Resolves: #725

@mkolar mkolar added this to the 2.14.0 milestone Nov 20, 2020
@mkolar mkolar added type: enhancement Enhancements to existing functionality module: Ftrack labels Nov 20, 2020
@iLLiCiTiT iLLiCiTiT self-assigned this Nov 20, 2020
@iLLiCiTiT iLLiCiTiT requested a review from a team November 20, 2020 11:18
@mkolar mkolar changed the base branch from 2.x/develop to release/2.14.0 November 20, 2020 13:09
@mkolar mkolar merged commit b7c734d into release/2.14.0 Nov 20, 2020
@mkolar mkolar deleted the feature/725-shot-asset-build-trigger-status branch December 1, 2020 15:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
module: Ftrack type: enhancement Enhancements to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants