{"action":"created","comment":{"url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/comments/80265531","id":80265531,"diff_hunk":"@@ -961,16 +938,22 @@ def hierarchy_is_supported(sg_connection):\n \n     :param sg_connection: A shotgun connection.\n \n-    :returns: ``True`` if hierarchy supported, ``False`` otherwise.\n+    :returns: A tuple of 2 items where the first item is a boolean indicating\n+        whether hierarchy is supported. If hierarchy is supported, the second\n+        item will be ``None``. If hierarchy is not supported, the second item\n+        will be a string explaining why.\n+\n     \"\"\"\n \n     server_caps = sg_connection.server_caps\n \n     # make sure we're greater than or equal to SG v7.0.2\n-    return (\n-        hasattr(sg_connection, \"server_caps\") and\n-        server_caps.version and\n-        server_caps.version >= (7, 0, 2) and\n-        hasattr(sg_connection, \"nav_expand\")\n-    )\n+    if not (hasattr(sg_connection, \"server_caps\") and\n+            server_caps.version and\n+            server_caps.version >= (7, 0, 2)):\n+        return (False, \"The version of SG being used does not support hierarchy queries. v7.0.2 is required.\")\n+    elif not hasattr(sg_connection, \"nav_expand\"):\n+        return (False, \"The verison of the python-api being used does not support hierarchy queries.\")","path":"python/shotgun_model/shotgun_hierarchy_model.py","position":264,"original_position":264,"commit_id":"a752c5d234f92c1f3468062318297cc40dbdf68b","original_commit_id":"a752c5d234f92c1f3468062318297cc40dbdf68b","user":{"login":"josh-t","id":2604646,"avatar_url":"https://avatars.githubusercontent.com/u/2604646?v=3","gravatar_id":"","url":"https://api.github.com/users/josh-t","html_url":"https://github.com/josh-t","followers_url":"https://api.github.com/users/josh-t/followers","following_url":"https://api.github.com/users/josh-t/following{/other_user}","gists_url":"https://api.github.com/users/josh-t/gists{/gist_id}","starred_url":"https://api.github.com/users/josh-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josh-t/subscriptions","organizations_url":"https://api.github.com/users/josh-t/orgs","repos_url":"https://api.github.com/users/josh-t/repos","events_url":"https://api.github.com/users/josh-t/events{/privacy}","received_events_url":"https://api.github.com/users/josh-t/received_events","type":"User","site_admin":false},"body":"fixed with same as above.","created_at":"2016-09-23T15:17:29Z","updated_at":"2016-09-23T15:17:29Z","html_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils/pull/53#discussion_r80265531","pull_request_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/comments/80265531"},"html":{"href":"https://github.com/shotgunsoftware/tk-framework-shotgunutils/pull/53#discussion_r80265531"},"pull_request":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/53","id":86506652,"html_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils/pull/53","diff_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils/pull/53.diff","patch_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils/pull/53.patch","issue_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues/53","number":53,"state":"open","locked":false,"title":"#37113 Reverts usage of some of the newer core features.","user":{"login":"josh-t","id":2604646,"avatar_url":"https://avatars.githubusercontent.com/u/2604646?v=3","gravatar_id":"","url":"https://api.github.com/users/josh-t","html_url":"https://github.com/josh-t","followers_url":"https://api.github.com/users/josh-t/followers","following_url":"https://api.github.com/users/josh-t/following{/other_user}","gists_url":"https://api.github.com/users/josh-t/gists{/gist_id}","starred_url":"https://api.github.com/users/josh-t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josh-t/subscriptions","organizations_url":"https://api.github.com/users/josh-t/orgs","repos_url":"https://api.github.com/users/josh-t/repos","events_url":"https://api.github.com/users/josh-t/events{/privacy}","received_events_url":"https://api.github.com/users/josh-t/received_events","type":"User","site_admin":false},"body":"In order to fail gracefully on older versions of core, needed to revert usage of some of the features added in recent cores. Specifically, use of utilities like the `filesystem` and `logging` modules. \r\n\r\nAlso made tweaks to provide better immediate feedback as to why hierarchy isn't supported.","created_at":"2016-09-23T12:46:55Z","updated_at":"2016-09-23T15:17:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0a62fa21e54955e10a71c21eeb19a0e3f9f653e3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/53/commits","review_comments_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/53/comments","review_comment_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues/53/comments","statuses_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/statuses/a752c5d234f92c1f3468062318297cc40dbdf68b","head":{"label":"shotgunsoftware:37113_core_17","ref":"37113_core_17","sha":"a752c5d234f92c1f3468062318297cc40dbdf68b","user":{"login":"shotgunsoftware","id":317894,"avatar_url":"https://avatars.githubusercontent.com/u/317894?v=3","gravatar_id":"","url":"https://api.github.com/users/shotgunsoftware","html_url":"https://github.com/shotgunsoftware","followers_url":"https://api.github.com/users/shotgunsoftware/followers","following_url":"https://api.github.com/users/shotgunsoftware/following{/other_user}","gists_url":"https://api.github.com/users/shotgunsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/shotgunsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shotgunsoftware/subscriptions","organizations_url":"https://api.github.com/users/shotgunsoftware/orgs","repos_url":"https://api.github.com/users/shotgunsoftware/repos","events_url":"https://api.github.com/users/shotgunsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/shotgunsoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":14639855,"name":"tk-framework-shotgunutils","full_name":"shotgunsoftware/tk-framework-shotgunutils","owner":{"login":"shotgunsoftware","id":317894,"avatar_url":"https://avatars.githubusercontent.com/u/317894?v=3","gravatar_id":"","url":"https://api.github.com/users/shotgunsoftware","html_url":"https://github.com/shotgunsoftware","followers_url":"https://api.github.com/users/shotgunsoftware/followers","following_url":"https://api.github.com/users/shotgunsoftware/following{/other_user}","gists_url":"https://api.github.com/users/shotgunsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/shotgunsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shotgunsoftware/subscriptions","organizations_url":"https://api.github.com/users/shotgunsoftware/orgs","repos_url":"https://api.github.com/users/shotgunsoftware/repos","events_url":"https://api.github.com/users/shotgunsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/shotgunsoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils","description":"Shotgun Related Utilities","fork":false,"url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils","forks_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/forks","keys_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/teams","hooks_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/hooks","issue_events_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues/events{/number}","events_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/events","assignees_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/assignees{/user}","branches_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/branches{/branch}","tags_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/tags","blobs_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/refs{/sha}","trees_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/statuses/{sha}","languages_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/languages","stargazers_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/stargazers","contributors_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/contributors","subscribers_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/subscribers","subscription_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/subscription","commits_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/commits{/sha}","git_commits_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/commits{/sha}","comments_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/comments{/number}","issue_comment_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues/comments{/number}","contents_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/contents/{+path}","compare_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/merges","archive_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/downloads","issues_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues{/number}","pulls_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls{/number}","milestones_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/milestones{/number}","notifications_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/labels{/name}","releases_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/releases{/id}","deployments_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/deployments","created_at":"2013-11-23T09:36:59Z","updated_at":"2016-01-15T13:45:19Z","pushed_at":"2016-09-23T14:16:31Z","git_url":"git://github.com/shotgunsoftware/tk-framework-shotgunutils.git","ssh_url":"git@github.com:shotgunsoftware/tk-framework-shotgunutils.git","clone_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils.git","svn_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils","homepage":"http://developer.shotgunsoftware.com/tk-framework-shotgunutils","size":15803,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":2,"forks":7,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"shotgunsoftware:master","ref":"master","sha":"f0a3b455d5328ebef3274fdf040ac7a7e54235f8","user":{"login":"shotgunsoftware","id":317894,"avatar_url":"https://avatars.githubusercontent.com/u/317894?v=3","gravatar_id":"","url":"https://api.github.com/users/shotgunsoftware","html_url":"https://github.com/shotgunsoftware","followers_url":"https://api.github.com/users/shotgunsoftware/followers","following_url":"https://api.github.com/users/shotgunsoftware/following{/other_user}","gists_url":"https://api.github.com/users/shotgunsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/shotgunsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shotgunsoftware/subscriptions","organizations_url":"https://api.github.com/users/shotgunsoftware/orgs","repos_url":"https://api.github.com/users/shotgunsoftware/repos","events_url":"https://api.github.com/users/shotgunsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/shotgunsoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":14639855,"name":"tk-framework-shotgunutils","full_name":"shotgunsoftware/tk-framework-shotgunutils","owner":{"login":"shotgunsoftware","id":317894,"avatar_url":"https://avatars.githubusercontent.com/u/317894?v=3","gravatar_id":"","url":"https://api.github.com/users/shotgunsoftware","html_url":"https://github.com/shotgunsoftware","followers_url":"https://api.github.com/users/shotgunsoftware/followers","following_url":"https://api.github.com/users/shotgunsoftware/following{/other_user}","gists_url":"https://api.github.com/users/shotgunsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/shotgunsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shotgunsoftware/subscriptions","organizations_url":"https://api.github.com/users/shotgunsoftware/orgs","repos_url":"https://api.github.com/users/shotgunsoftware/repos","events_url":"https://api.github.com/users/shotgunsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/shotgunsoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils","description":"Shotgun Related Utilities","fork":false,"url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils","forks_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/forks","keys_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/teams","hooks_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/hooks","issue_events_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues/events{/number}","events_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/events","assignees_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/assignees{/user}","branches_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/branches{/branch}","tags_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/tags","blobs_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/refs{/sha}","trees_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/statuses/{sha}","languages_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/languages","stargazers_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/stargazers","contributors_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/contributors","subscribers_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/subscribers","subscription_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/subscription","commits_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/commits{/sha}","git_commits_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/git/commits{/sha}","comments_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/comments{/number}","issue_comment_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues/comments{/number}","contents_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/contents/{+path}","compare_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/merges","archive_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/downloads","issues_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues{/number}","pulls_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls{/number}","milestones_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/milestones{/number}","notifications_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/labels{/name}","releases_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/releases{/id}","deployments_url":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/deployments","created_at":"2013-11-23T09:36:59Z","updated_at":"2016-01-15T13:45:19Z","pushed_at":"2016-09-23T14:16:31Z","git_url":"git://github.com/shotgunsoftware/tk-framework-shotgunutils.git","ssh_url":"git@github.com:shotgunsoftware/tk-framework-shotgunutils.git","clone_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils.git","svn_url":"https://github.com/shotgunsoftware/tk-framework-shotgunutils","homepage":"http://developer.shotgunsoftware.com/tk-framework-shotgunutils","size":15803,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":7,"mirror_url":null,"open_issues_count":2,"forks":7,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/53"},"html":{"href":"https://github.com/shotgunsoftware/tk-framework-shotgunutils/pull/53"},"issue":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues/53"},"comments":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/shotgunsoftware/tk-framework-shotgunutils/statuses/a752c5d234f92c1f3468062318297cc40dbdf68b"}}}}
{"actor":{"display_login":"josh-t"}}