From 647053273e83a03814401bc9633dd573681f54f5 Mon Sep 17 00:00:00 2001 From: Milan Kolar Date: Thu, 26 Nov 2020 00:01:34 +0100 Subject: [PATCH] convert ftrack settings --- .../defaults/project_settings/Ftrack.json | 73 +++++++++++++++++++ .../schema_project_ftrack.json | 68 ++++++++++++----- 2 files changed, 122 insertions(+), 19 deletions(-) create mode 100644 pype/settings/defaults/project_settings/Ftrack.json diff --git a/pype/settings/defaults/project_settings/Ftrack.json b/pype/settings/defaults/project_settings/Ftrack.json new file mode 100644 index 0000000000..7c9bb8ce0e --- /dev/null +++ b/pype/settings/defaults/project_settings/Ftrack.json @@ -0,0 +1,73 @@ +{ + "ftrack_actions_path": [], + "ftrack_events_path": [], + "events": { + "status_update": { + "enabled": true, + "mapping": { + "In Progress": [ + "__any__" + ], + "Ready": [ + "Not Ready" + ], + "__ignore__": [ + "in prgoress", + "omitted", + "on hold" + ] + } + }, + "status_task_to_parent": { + "enabled": true, + "parent_status_match_all_task_statuses": { + "Completed": [ + "Approved", + "Omitted" + ] + }, + "parent_status_by_task_status": { + "In Progress": [ + "in progress", + "change requested", + "retake", + "pending review" + ] + } + }, + "status_task_to_version": { + "enabled": true, + "mapping": { + "Approved": [ + "Complete" + ] + } + }, + "status_version_to_task": { + "enabled": true, + "mapping": { + "Complete": [ + "Approved", + "Complete" + ] + } + }, + "first_version_status": { + "enabled": true, + "status": "" + }, + "next_task_update": { + "enabled": true, + "mapping": { + "Ready": "Not Ready" + } + } + }, + "publish": { + "IntegrateFtrackNote": { + "enabled": true, + "note_with_intent_template": "", + "note_labels": [] + } + } +} \ No newline at end of file diff --git a/pype/tools/settings/settings/gui_schemas/projects_schema/schema_project_ftrack.json b/pype/tools/settings/settings/gui_schemas/projects_schema/schema_project_ftrack.json index 767321f835..a7c835081a 100644 --- a/pype/tools/settings/settings/gui_schemas/projects_schema/schema_project_ftrack.json +++ b/pype/tools/settings/settings/gui_schemas/projects_schema/schema_project_ftrack.json @@ -36,7 +36,7 @@ { "type": "dict", "key": "status_update", - "label": "Status Updates", + "label": "Update status on task action", "checkbox_key": "enabled", "children": [{ "type": "boolean", @@ -44,20 +44,12 @@ "label": "Enabled" }, { - "key": "statuses", - "type": "dict-invisible", - "children": [ - { - "key": "default", - "type": "text", - "label": "complete" - }, - { - "key": "default2", - "type": "text", - "label": "in progress" - } - ] + "key": "mapping", + "type": "dict-modifiable", + "object_type": { + "type": "list", + "object_type": "text" + } }] }, { @@ -69,6 +61,24 @@ "type": "boolean", "key": "enabled", "label": "Enabled" + }, + { + "key": "parent_status_match_all_task_statuses", + "type": "dict-modifiable", + "label": "Change parent if all tasks match", + "object_type": { + "type": "list", + "object_type": "text" + } + }, + { + "key": "parent_status_by_task_status", + "type": "dict-modifiable", + "label": "Change parent status if a single task matches", + "object_type": { + "type": "list", + "object_type": "text" + } }] }, { @@ -80,6 +90,13 @@ "type": "boolean", "key": "enabled", "label": "Enabled" + }, { + "type": "dict-modifiable", + "key": "mapping", + "object_type": { + "type": "list", + "object_type": "text" + } }] }, { @@ -93,9 +110,11 @@ "label": "Enabled" }, { "type": "dict-modifiable", - "key": "statuses", - "label": "statuses", - "object_type": "text" + "key": "mapping", + "object_type": { + "type": "list", + "object_type": "text" + } }] }, { @@ -107,7 +126,12 @@ "type": "boolean", "key": "enabled", "label": "Enabled" - }] + },{ + "type": "text", + "key": "status", + "label": "Status" + } + ] }, { "type": "dict", @@ -118,6 +142,12 @@ "type": "boolean", "key": "enabled", "label": "Enabled" + },{ + "type": "dict-modifiable", + "key": "mapping", + "object_type": { + "type": "text" + } }] } ]