Skip to content

fixing errors reported by Edit#62

Merged
maxpareschi merged 1 commit intomaxpareschi:3.14.11-22dogs.developfrom
jm22dogs:ftrack_project_filter
Feb 20, 2025
Merged

fixing errors reported by Edit#62
maxpareschi merged 1 commit intomaxpareschi:3.14.11-22dogs.developfrom
jm22dogs:ftrack_project_filter

Conversation

@jm22dogs
Copy link

ISSUE ONE: gather have more than one link

Cause

The last version was chosen by the subset name as oposed of being chosen by task. If one task had more than one subset names that were elegible for gathering, the versioning picked up by each would be different.

Fix

Implemented a function that yields the subset names based on task name and asset name, then I get the highest version number from all the subsets that belong to that task, so for each gather for a same task, now it will always up the version regardless the subset name.

ISSUE TWO: gathers won't get integrated in ftrack

Cause

In the integrate_ftrack_api there where two bugs:

  1. some queries didn't filter by project, so some query.one() calls failed due to the same name existing in a different project.
  2. one query had a query.one() when there could be more than one result, so we just use query.first() now. This fix was mentioned by Max.

Fix

Implemented a function that yields the subset names based on task name and asset name, then I get the highest version number from all the subsets that belong to that task, so for each gather for a same task, now it will always up the version regardless the subset name.

@maxpareschi maxpareschi merged commit 4a8721c into maxpareschi:3.14.11-22dogs.develop Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments