{"action":"created","comment":{"url":"https://api.github.com/repos/toptal/chewy/pulls/comments/45009411","id":45009411,"diff_hunk":"@@ -41,6 +41,18 @@ def self.type_name\n       adapter.type_name\n     end\n \n+    # Returns the identifier value\n+    #\n+    def self.identify objects\n+      case root_object","path":"lib/chewy/type.rb","position":7,"original_position":7,"commit_id":"4dc3d32638b71bfa7f238236304b7b38c32461c9","original_commit_id":"4dc3d32638b71bfa7f238236304b7b38c32461c9","user":{"login":"pyromaniac","id":88852,"avatar_url":"https://avatars.githubusercontent.com/u/88852?v=3","gravatar_id":"","url":"https://api.github.com/users/pyromaniac","html_url":"https://github.com/pyromaniac","followers_url":"https://api.github.com/users/pyromaniac/followers","following_url":"https://api.github.com/users/pyromaniac/following{/other_user}","gists_url":"https://api.github.com/users/pyromaniac/gists{/gist_id}","starred_url":"https://api.github.com/users/pyromaniac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyromaniac/subscriptions","organizations_url":"https://api.github.com/users/pyromaniac/orgs","repos_url":"https://api.github.com/users/pyromaniac/repos","events_url":"https://api.github.com/users/pyromaniac/events{/privacy}","received_events_url":"https://api.github.com/users/pyromaniac/received_events","type":"User","site_admin":false},"body":"root_object is always a Chewy::Fields::Root, how do you check it against other types?","created_at":"2015-11-17T01:00:25Z","updated_at":"2015-11-17T01:00:25Z","html_url":"https://github.com/toptal/chewy/pull/282#discussion_r45009411","pull_request_url":"https://api.github.com/repos/toptal/chewy/pulls/282","_links":{"self":{"href":"https://api.github.com/repos/toptal/chewy/pulls/comments/45009411"},"html":{"href":"https://github.com/toptal/chewy/pull/282#discussion_r45009411"},"pull_request":{"href":"https://api.github.com/repos/toptal/chewy/pulls/282"}}},"pull_request":{"url":"https://api.github.com/repos/toptal/chewy/pulls/282","id":50774470,"html_url":"https://github.com/toptal/chewy/pull/282","diff_url":"https://github.com/toptal/chewy/pull/282.diff","patch_url":"https://github.com/toptal/chewy/pull/282.patch","issue_url":"https://api.github.com/repos/toptal/chewy/issues/282","number":282,"state":"open","locked":false,"title":"Update Atomic strategy to respect the root _id evaluator if provided","user":{"login":"caldwecr","id":5562142,"avatar_url":"https://avatars.githubusercontent.com/u/5562142?v=3","gravatar_id":"","url":"https://api.github.com/users/caldwecr","html_url":"https://github.com/caldwecr","followers_url":"https://api.github.com/users/caldwecr/followers","following_url":"https://api.github.com/users/caldwecr/following{/other_user}","gists_url":"https://api.github.com/users/caldwecr/gists{/gist_id}","starred_url":"https://api.github.com/users/caldwecr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caldwecr/subscriptions","organizations_url":"https://api.github.com/users/caldwecr/orgs","repos_url":"https://api.github.com/users/caldwecr/repos","events_url":"https://api.github.com/users/caldwecr/events{/privacy}","received_events_url":"https://api.github.com/users/caldwecr/received_events","type":"User","site_admin":false},"body":" - Include spec of behavior when a root object is provided (with and without _id evaluator methods)\r\n\r\nTODO\r\n\r\n- [ ] Remove chewy/type/import.rb L91 and L111 pending further info from @pyromaniac ","created_at":"2015-11-16T06:07:07Z","updated_at":"2015-11-17T01:00:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"726adfc0256832f3703dc9c29d0b383913ce037c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/toptal/chewy/pulls/282/commits","review_comments_url":"https://api.github.com/repos/toptal/chewy/pulls/282/comments","review_comment_url":"https://api.github.com/repos/toptal/chewy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/toptal/chewy/issues/282/comments","statuses_url":"https://api.github.com/repos/toptal/chewy/statuses/4dc3d32638b71bfa7f238236304b7b38c32461c9","head":{"label":"Referly:atomic_respect_id_evaluator","ref":"atomic_respect_id_evaluator","sha":"4dc3d32638b71bfa7f238236304b7b38c32461c9","user":{"login":"Referly","id":1498684,"avatar_url":"https://avatars.githubusercontent.com/u/1498684?v=3","gravatar_id":"","url":"https://api.github.com/users/Referly","html_url":"https://github.com/Referly","followers_url":"https://api.github.com/users/Referly/followers","following_url":"https://api.github.com/users/Referly/following{/other_user}","gists_url":"https://api.github.com/users/Referly/gists{/gist_id}","starred_url":"https://api.github.com/users/Referly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Referly/subscriptions","organizations_url":"https://api.github.com/users/Referly/orgs","repos_url":"https://api.github.com/users/Referly/repos","events_url":"https://api.github.com/users/Referly/events{/privacy}","received_events_url":"https://api.github.com/users/Referly/received_events","type":"Organization","site_admin":false},"repo":{"id":36407032,"name":"chewy","full_name":"Referly/chewy","owner":{"login":"Referly","id":1498684,"avatar_url":"https://avatars.githubusercontent.com/u/1498684?v=3","gravatar_id":"","url":"https://api.github.com/users/Referly","html_url":"https://github.com/Referly","followers_url":"https://api.github.com/users/Referly/followers","following_url":"https://api.github.com/users/Referly/following{/other_user}","gists_url":"https://api.github.com/users/Referly/gists{/gist_id}","starred_url":"https://api.github.com/users/Referly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Referly/subscriptions","organizations_url":"https://api.github.com/users/Referly/orgs","repos_url":"https://api.github.com/users/Referly/repos","events_url":"https://api.github.com/users/Referly/events{/privacy}","received_events_url":"https://api.github.com/users/Referly/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Referly/chewy","description":"High-level Elasticsearch Ruby framework based on the official elasticsearch-ruby client","fork":true,"url":"https://api.github.com/repos/Referly/chewy","forks_url":"https://api.github.com/repos/Referly/chewy/forks","keys_url":"https://api.github.com/repos/Referly/chewy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Referly/chewy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Referly/chewy/teams","hooks_url":"https://api.github.com/repos/Referly/chewy/hooks","issue_events_url":"https://api.github.com/repos/Referly/chewy/issues/events{/number}","events_url":"https://api.github.com/repos/Referly/chewy/events","assignees_url":"https://api.github.com/repos/Referly/chewy/assignees{/user}","branches_url":"https://api.github.com/repos/Referly/chewy/branches{/branch}","tags_url":"https://api.github.com/repos/Referly/chewy/tags","blobs_url":"https://api.github.com/repos/Referly/chewy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Referly/chewy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Referly/chewy/git/refs{/sha}","trees_url":"https://api.github.com/repos/Referly/chewy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Referly/chewy/statuses/{sha}","languages_url":"https://api.github.com/repos/Referly/chewy/languages","stargazers_url":"https://api.github.com/repos/Referly/chewy/stargazers","contributors_url":"https://api.github.com/repos/Referly/chewy/contributors","subscribers_url":"https://api.github.com/repos/Referly/chewy/subscribers","subscription_url":"https://api.github.com/repos/Referly/chewy/subscription","commits_url":"https://api.github.com/repos/Referly/chewy/commits{/sha}","git_commits_url":"https://api.github.com/repos/Referly/chewy/git/commits{/sha}","comments_url":"https://api.github.com/repos/Referly/chewy/comments{/number}","issue_comment_url":"https://api.github.com/repos/Referly/chewy/issues/comments{/number}","contents_url":"https://api.github.com/repos/Referly/chewy/contents/{+path}","compare_url":"https://api.github.com/repos/Referly/chewy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Referly/chewy/merges","archive_url":"https://api.github.com/repos/Referly/chewy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Referly/chewy/downloads","issues_url":"https://api.github.com/repos/Referly/chewy/issues{/number}","pulls_url":"https://api.github.com/repos/Referly/chewy/pulls{/number}","milestones_url":"https://api.github.com/repos/Referly/chewy/milestones{/number}","notifications_url":"https://api.github.com/repos/Referly/chewy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Referly/chewy/labels{/name}","releases_url":"https://api.github.com/repos/Referly/chewy/releases{/id}","created_at":"2015-05-28T01:31:48Z","updated_at":"2015-05-28T01:31:49Z","pushed_at":"2015-11-16T18:53:07Z","git_url":"git://github.com/Referly/chewy.git","ssh_url":"git@github.com:Referly/chewy.git","clone_url":"https://github.com/Referly/chewy.git","svn_url":"https://github.com/Referly/chewy","homepage":"","size":1470,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"toptal:master","ref":"master","sha":"a368290603abc73c6fd884c220762beeb9cb4b4c","user":{"login":"toptal","id":4004158,"avatar_url":"https://avatars.githubusercontent.com/u/4004158?v=3","gravatar_id":"","url":"https://api.github.com/users/toptal","html_url":"https://github.com/toptal","followers_url":"https://api.github.com/users/toptal/followers","following_url":"https://api.github.com/users/toptal/following{/other_user}","gists_url":"https://api.github.com/users/toptal/gists{/gist_id}","starred_url":"https://api.github.com/users/toptal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toptal/subscriptions","organizations_url":"https://api.github.com/users/toptal/orgs","repos_url":"https://api.github.com/users/toptal/repos","events_url":"https://api.github.com/users/toptal/events{/privacy}","received_events_url":"https://api.github.com/users/toptal/received_events","type":"Organization","site_admin":false},"repo":{"id":15042048,"name":"chewy","full_name":"toptal/chewy","owner":{"login":"toptal","id":4004158,"avatar_url":"https://avatars.githubusercontent.com/u/4004158?v=3","gravatar_id":"","url":"https://api.github.com/users/toptal","html_url":"https://github.com/toptal","followers_url":"https://api.github.com/users/toptal/followers","following_url":"https://api.github.com/users/toptal/following{/other_user}","gists_url":"https://api.github.com/users/toptal/gists{/gist_id}","starred_url":"https://api.github.com/users/toptal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toptal/subscriptions","organizations_url":"https://api.github.com/users/toptal/orgs","repos_url":"https://api.github.com/users/toptal/repos","events_url":"https://api.github.com/users/toptal/events{/privacy}","received_events_url":"https://api.github.com/users/toptal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/toptal/chewy","description":"High-level Elasticsearch Ruby framework based on the official elasticsearch-ruby client","fork":false,"url":"https://api.github.com/repos/toptal/chewy","forks_url":"https://api.github.com/repos/toptal/chewy/forks","keys_url":"https://api.github.com/repos/toptal/chewy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/toptal/chewy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/toptal/chewy/teams","hooks_url":"https://api.github.com/repos/toptal/chewy/hooks","issue_events_url":"https://api.github.com/repos/toptal/chewy/issues/events{/number}","events_url":"https://api.github.com/repos/toptal/chewy/events","assignees_url":"https://api.github.com/repos/toptal/chewy/assignees{/user}","branches_url":"https://api.github.com/repos/toptal/chewy/branches{/branch}","tags_url":"https://api.github.com/repos/toptal/chewy/tags","blobs_url":"https://api.github.com/repos/toptal/chewy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/toptal/chewy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/toptal/chewy/git/refs{/sha}","trees_url":"https://api.github.com/repos/toptal/chewy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/toptal/chewy/statuses/{sha}","languages_url":"https://api.github.com/repos/toptal/chewy/languages","stargazers_url":"https://api.github.com/repos/toptal/chewy/stargazers","contributors_url":"https://api.github.com/repos/toptal/chewy/contributors","subscribers_url":"https://api.github.com/repos/toptal/chewy/subscribers","subscription_url":"https://api.github.com/repos/toptal/chewy/subscription","commits_url":"https://api.github.com/repos/toptal/chewy/commits{/sha}","git_commits_url":"https://api.github.com/repos/toptal/chewy/git/commits{/sha}","comments_url":"https://api.github.com/repos/toptal/chewy/comments{/number}","issue_comment_url":"https://api.github.com/repos/toptal/chewy/issues/comments{/number}","contents_url":"https://api.github.com/repos/toptal/chewy/contents/{+path}","compare_url":"https://api.github.com/repos/toptal/chewy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/toptal/chewy/merges","archive_url":"https://api.github.com/repos/toptal/chewy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/toptal/chewy/downloads","issues_url":"https://api.github.com/repos/toptal/chewy/issues{/number}","pulls_url":"https://api.github.com/repos/toptal/chewy/pulls{/number}","milestones_url":"https://api.github.com/repos/toptal/chewy/milestones{/number}","notifications_url":"https://api.github.com/repos/toptal/chewy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/toptal/chewy/labels{/name}","releases_url":"https://api.github.com/repos/toptal/chewy/releases{/id}","created_at":"2013-12-09T08:33:03Z","updated_at":"2015-11-16T19:44:05Z","pushed_at":"2015-11-16T18:53:08Z","git_url":"git://github.com/toptal/chewy.git","ssh_url":"git@github.com:toptal/chewy.git","clone_url":"https://github.com/toptal/chewy.git","svn_url":"https://github.com/toptal/chewy","homepage":"","size":3179,"stargazers_count":649,"watchers_count":649,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":106,"mirror_url":null,"open_issues_count":43,"forks":106,"open_issues":43,"watchers":649,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/toptal/chewy/pulls/282"},"html":{"href":"https://github.com/toptal/chewy/pull/282"},"issue":{"href":"https://api.github.com/repos/toptal/chewy/issues/282"},"comments":{"href":"https://api.github.com/repos/toptal/chewy/issues/282/comments"},"review_comments":{"href":"https://api.github.com/repos/toptal/chewy/pulls/282/comments"},"review_comment":{"href":"https://api.github.com/repos/toptal/chewy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/toptal/chewy/pulls/282/commits"},"statuses":{"href":"https://api.github.com/repos/toptal/chewy/statuses/4dc3d32638b71bfa7f238236304b7b38c32461c9"}}}}