Issue with querying deep link fields on a Shotgun site?

Hi I have a client that has noticed a regression in the results returned from the Python api.

They are doing a find on a Version querying the following fields:

default_fields = 
        "code",
        "user.HumanUser.name",
        "entity",
        "entity.Shot.code",
        "project",
        "project.Project.tank_name",
        "sg_task.Task.content",
    ]

When they do so however, they get the following response:

[{'code': 'ABC_123_123_456_789_comp_v009',
  'entity': {'id': 3657, 'name': '123_456_789', 'type': 'Shot'},
  'id': 17474,
  'project': {'id': 584, 'name': 'ABCProject', 'type': 'Project'},
  'project.Project.tank_name': 'ABC',
  'sg_task.Task.content': None,
  'type': 'Version',
  'user.HumanUser.name': 'Rob Blau'}]

As you can see based off of the response, the entity.Shot.code is no longer returningā€¦
Iā€™ve noticed this for task related content as well.

I have another client same version of the site (v8.41.0.524) that isnā€™t having this issueā€¦

Is there a setting somewhere that turns off deep linking on the Python api?

According to the logs it looks like the site owner may have set the site pref ā€˜use_shot_sg_versions_connectionsā€™ from ā€œyesā€ to ā€œnoā€.

Does anyone know if that is related? And if so does anyone know how to turn that back on?

A similar issue was reported here and seems to have been resolved by a restart of SG Desktop.

Could be that the tk-desktopframework or some other thing was updated with a fix?

https://community.shotgridsoftware.com/t/missing-entity-name-in-context/15890/4

Interesting, thanks Ricardo, Iā€™ll ask the team if it is still happening today.

1 Like