{"action":"created","comment":{"url":"https://api.github.com/repos/tablexi/restforce-db/pulls/comments/33472305","id":33472305,"diff_hunk":"@@ -43,30 +62,45 @@ def process(sobject_type, attributes, write_type = :update)\n       #\n       # sobject_type - A String name of an SObject Type in Salesforce.\n       # field        - A String Salesforce field API name.\n-      # write_type   - A Symbol reflecting the type of write operation. Accepted\n-      #                values are :create and :update.\n+      # write_type   - A Symbol reflecting the action to perform. Accepted\n+      #                values are :read, :create, and :update.\n       #\n       # Returns a Boolean.\n-      def writable?(sobject_type, field, write_type)\n-        permissions = field_permissions(sobject_type)[field]\n+      def available?(sobject_type, field, action)","path":"lib/restforce/db/field_processor.rb","position":66,"original_position":66,"commit_id":"ca6651f75a40b02ddc0112ae85544c0214aed85f","original_commit_id":"ca6651f75a40b02ddc0112ae85544c0214aed85f","user":{"login":"danhodos","id":10109,"avatar_url":"https://avatars.githubusercontent.com/u/10109?v=3","gravatar_id":"","url":"https://api.github.com/users/danhodos","html_url":"https://github.com/danhodos","followers_url":"https://api.github.com/users/danhodos/followers","following_url":"https://api.github.com/users/danhodos/following{/other_user}","gists_url":"https://api.github.com/users/danhodos/gists{/gist_id}","starred_url":"https://api.github.com/users/danhodos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danhodos/subscriptions","organizations_url":"https://api.github.com/users/danhodos/orgs","repos_url":"https://api.github.com/users/danhodos/repos","events_url":"https://api.github.com/users/danhodos/events{/privacy}","received_events_url":"https://api.github.com/users/danhodos/received_events","type":"User","site_admin":false},"body":"This method has the wrong documentation description.","created_at":"2015-06-29T14:58:53Z","updated_at":"2015-06-29T14:58:53Z","html_url":"https://github.com/tablexi/restforce-db/pull/50#discussion_r33472305","pull_request_url":"https://api.github.com/repos/tablexi/restforce-db/pulls/50","_links":{"self":{"href":"https://api.github.com/repos/tablexi/restforce-db/pulls/comments/33472305"},"html":{"href":"https://github.com/tablexi/restforce-db/pull/50#discussion_r33472305"},"pull_request":{"href":"https://api.github.com/repos/tablexi/restforce-db/pulls/50"}}},"pull_request":{"url":"https://api.github.com/repos/tablexi/restforce-db/pulls/50","id":38684586,"html_url":"https://github.com/tablexi/restforce-db/pull/50","diff_url":"https://github.com/tablexi/restforce-db/pull/50.diff","patch_url":"https://github.com/tablexi/restforce-db/pull/50.patch","issue_url":"https://api.github.com/repos/tablexi/restforce-db/issues/50","number":50,"state":"open","locked":false,"title":"Introduce Attacher task to handle records orphaned after upsert","user":{"login":"ahorner","id":116396,"avatar_url":"https://avatars.githubusercontent.com/u/116396?v=3","gravatar_id":"","url":"https://api.github.com/users/ahorner","html_url":"https://github.com/ahorner","followers_url":"https://api.github.com/users/ahorner/followers","following_url":"https://api.github.com/users/ahorner/following{/other_user}","gists_url":"https://api.github.com/users/ahorner/gists{/gist_id}","starred_url":"https://api.github.com/users/ahorner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahorner/subscriptions","organizations_url":"https://api.github.com/users/ahorner/orgs","repos_url":"https://api.github.com/users/ahorner/repos","events_url":"https://api.github.com/users/ahorner/events{/privacy}","received_events_url":"https://api.github.com/users/ahorner/received_events","type":"User","site_admin":false},"body":"If an upsert request from the Initializer succeeds without properly \r\nlinking the database record to the created Salesforce record (an\r\nunfortunate situation which can happen any number of silly ways), we\r\nneed to identify the situation and properly link the Salesforce record\r\nto the database record responsible for its creation.\r\n\r\nThe Attacher fills this role, identifying Salesforce records with \r\nlingering upsert IDs and locating their pair in the database.","created_at":"2015-06-26T20:08:16Z","updated_at":"2015-06-29T14:58:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4be97e94f54a10b6994dcb5e1f4bd6a4b03e607c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tablexi/restforce-db/pulls/50/commits","review_comments_url":"https://api.github.com/repos/tablexi/restforce-db/pulls/50/comments","review_comment_url":"https://api.github.com/repos/tablexi/restforce-db/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tablexi/restforce-db/issues/50/comments","statuses_url":"https://api.github.com/repos/tablexi/restforce-db/statuses/ca6651f75a40b02ddc0112ae85544c0214aed85f","head":{"label":"tablexi:prevent_out_of_band_upserted_record_propagation","ref":"prevent_out_of_band_upserted_record_propagation","sha":"ca6651f75a40b02ddc0112ae85544c0214aed85f","user":{"login":"tablexi","id":229702,"avatar_url":"https://avatars.githubusercontent.com/u/229702?v=3","gravatar_id":"","url":"https://api.github.com/users/tablexi","html_url":"https://github.com/tablexi","followers_url":"https://api.github.com/users/tablexi/followers","following_url":"https://api.github.com/users/tablexi/following{/other_user}","gists_url":"https://api.github.com/users/tablexi/gists{/gist_id}","starred_url":"https://api.github.com/users/tablexi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tablexi/subscriptions","organizations_url":"https://api.github.com/users/tablexi/orgs","repos_url":"https://api.github.com/users/tablexi/repos","events_url":"https://api.github.com/users/tablexi/events{/privacy}","received_events_url":"https://api.github.com/users/tablexi/received_events","type":"Organization","site_admin":false},"repo":{"id":32425520,"name":"restforce-db","full_name":"tablexi/restforce-db","owner":{"login":"tablexi","id":229702,"avatar_url":"https://avatars.githubusercontent.com/u/229702?v=3","gravatar_id":"","url":"https://api.github.com/users/tablexi","html_url":"https://github.com/tablexi","followers_url":"https://api.github.com/users/tablexi/followers","following_url":"https://api.github.com/users/tablexi/following{/other_user}","gists_url":"https://api.github.com/users/tablexi/gists{/gist_id}","starred_url":"https://api.github.com/users/tablexi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tablexi/subscriptions","organizations_url":"https://api.github.com/users/tablexi/orgs","repos_url":"https://api.github.com/users/tablexi/repos","events_url":"https://api.github.com/users/tablexi/events{/privacy}","received_events_url":"https://api.github.com/users/tablexi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tablexi/restforce-db","description":"Bind your database to Salesforce data","fork":false,"url":"https://api.github.com/repos/tablexi/restforce-db","forks_url":"https://api.github.com/repos/tablexi/restforce-db/forks","keys_url":"https://api.github.com/repos/tablexi/restforce-db/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tablexi/restforce-db/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tablexi/restforce-db/teams","hooks_url":"https://api.github.com/repos/tablexi/restforce-db/hooks","issue_events_url":"https://api.github.com/repos/tablexi/restforce-db/issues/events{/number}","events_url":"https://api.github.com/repos/tablexi/restforce-db/events","assignees_url":"https://api.github.com/repos/tablexi/restforce-db/assignees{/user}","branches_url":"https://api.github.com/repos/tablexi/restforce-db/branches{/branch}","tags_url":"https://api.github.com/repos/tablexi/restforce-db/tags","blobs_url":"https://api.github.com/repos/tablexi/restforce-db/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tablexi/restforce-db/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tablexi/restforce-db/git/refs{/sha}","trees_url":"https://api.github.com/repos/tablexi/restforce-db/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tablexi/restforce-db/statuses/{sha}","languages_url":"https://api.github.com/repos/tablexi/restforce-db/languages","stargazers_url":"https://api.github.com/repos/tablexi/restforce-db/stargazers","contributors_url":"https://api.github.com/repos/tablexi/restforce-db/contributors","subscribers_url":"https://api.github.com/repos/tablexi/restforce-db/subscribers","subscription_url":"https://api.github.com/repos/tablexi/restforce-db/subscription","commits_url":"https://api.github.com/repos/tablexi/restforce-db/commits{/sha}","git_commits_url":"https://api.github.com/repos/tablexi/restforce-db/git/commits{/sha}","comments_url":"https://api.github.com/repos/tablexi/restforce-db/comments{/number}","issue_comment_url":"https://api.github.com/repos/tablexi/restforce-db/issues/comments{/number}","contents_url":"https://api.github.com/repos/tablexi/restforce-db/contents/{+path}","compare_url":"https://api.github.com/repos/tablexi/restforce-db/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tablexi/restforce-db/merges","archive_url":"https://api.github.com/repos/tablexi/restforce-db/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tablexi/restforce-db/downloads","issues_url":"https://api.github.com/repos/tablexi/restforce-db/issues{/number}","pulls_url":"https://api.github.com/repos/tablexi/restforce-db/pulls{/number}","milestones_url":"https://api.github.com/repos/tablexi/restforce-db/milestones{/number}","notifications_url":"https://api.github.com/repos/tablexi/restforce-db/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tablexi/restforce-db/labels{/name}","releases_url":"https://api.github.com/repos/tablexi/restforce-db/releases{/id}","created_at":"2015-03-17T23:04:27Z","updated_at":"2015-05-07T21:05:06Z","pushed_at":"2015-06-26T21:46:34Z","git_url":"git://github.com/tablexi/restforce-db.git","ssh_url":"git@github.com:tablexi/restforce-db.git","clone_url":"https://github.com/tablexi/restforce-db.git","svn_url":"https://github.com/tablexi/restforce-db","homepage":null,"size":1646,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"tablexi:master","ref":"master","sha":"6a49626de1ab9f82b287345f51b2887a5a3e9f8a","user":{"login":"tablexi","id":229702,"avatar_url":"https://avatars.githubusercontent.com/u/229702?v=3","gravatar_id":"","url":"https://api.github.com/users/tablexi","html_url":"https://github.com/tablexi","followers_url":"https://api.github.com/users/tablexi/followers","following_url":"https://api.github.com/users/tablexi/following{/other_user}","gists_url":"https://api.github.com/users/tablexi/gists{/gist_id}","starred_url":"https://api.github.com/users/tablexi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tablexi/subscriptions","organizations_url":"https://api.github.com/users/tablexi/orgs","repos_url":"https://api.github.com/users/tablexi/repos","events_url":"https://api.github.com/users/tablexi/events{/privacy}","received_events_url":"https://api.github.com/users/tablexi/received_events","type":"Organization","site_admin":false},"repo":{"id":32425520,"name":"restforce-db","full_name":"tablexi/restforce-db","owner":{"login":"tablexi","id":229702,"avatar_url":"https://avatars.githubusercontent.com/u/229702?v=3","gravatar_id":"","url":"https://api.github.com/users/tablexi","html_url":"https://github.com/tablexi","followers_url":"https://api.github.com/users/tablexi/followers","following_url":"https://api.github.com/users/tablexi/following{/other_user}","gists_url":"https://api.github.com/users/tablexi/gists{/gist_id}","starred_url":"https://api.github.com/users/tablexi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tablexi/subscriptions","organizations_url":"https://api.github.com/users/tablexi/orgs","repos_url":"https://api.github.com/users/tablexi/repos","events_url":"https://api.github.com/users/tablexi/events{/privacy}","received_events_url":"https://api.github.com/users/tablexi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tablexi/restforce-db","description":"Bind your database to Salesforce data","fork":false,"url":"https://api.github.com/repos/tablexi/restforce-db","forks_url":"https://api.github.com/repos/tablexi/restforce-db/forks","keys_url":"https://api.github.com/repos/tablexi/restforce-db/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tablexi/restforce-db/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tablexi/restforce-db/teams","hooks_url":"https://api.github.com/repos/tablexi/restforce-db/hooks","issue_events_url":"https://api.github.com/repos/tablexi/restforce-db/issues/events{/number}","events_url":"https://api.github.com/repos/tablexi/restforce-db/events","assignees_url":"https://api.github.com/repos/tablexi/restforce-db/assignees{/user}","branches_url":"https://api.github.com/repos/tablexi/restforce-db/branches{/branch}","tags_url":"https://api.github.com/repos/tablexi/restforce-db/tags","blobs_url":"https://api.github.com/repos/tablexi/restforce-db/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tablexi/restforce-db/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tablexi/restforce-db/git/refs{/sha}","trees_url":"https://api.github.com/repos/tablexi/restforce-db/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tablexi/restforce-db/statuses/{sha}","languages_url":"https://api.github.com/repos/tablexi/restforce-db/languages","stargazers_url":"https://api.github.com/repos/tablexi/restforce-db/stargazers","contributors_url":"https://api.github.com/repos/tablexi/restforce-db/contributors","subscribers_url":"https://api.github.com/repos/tablexi/restforce-db/subscribers","subscription_url":"https://api.github.com/repos/tablexi/restforce-db/subscription","commits_url":"https://api.github.com/repos/tablexi/restforce-db/commits{/sha}","git_commits_url":"https://api.github.com/repos/tablexi/restforce-db/git/commits{/sha}","comments_url":"https://api.github.com/repos/tablexi/restforce-db/comments{/number}","issue_comment_url":"https://api.github.com/repos/tablexi/restforce-db/issues/comments{/number}","contents_url":"https://api.github.com/repos/tablexi/restforce-db/contents/{+path}","compare_url":"https://api.github.com/repos/tablexi/restforce-db/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tablexi/restforce-db/merges","archive_url":"https://api.github.com/repos/tablexi/restforce-db/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tablexi/restforce-db/downloads","issues_url":"https://api.github.com/repos/tablexi/restforce-db/issues{/number}","pulls_url":"https://api.github.com/repos/tablexi/restforce-db/pulls{/number}","milestones_url":"https://api.github.com/repos/tablexi/restforce-db/milestones{/number}","notifications_url":"https://api.github.com/repos/tablexi/restforce-db/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tablexi/restforce-db/labels{/name}","releases_url":"https://api.github.com/repos/tablexi/restforce-db/releases{/id}","created_at":"2015-03-17T23:04:27Z","updated_at":"2015-05-07T21:05:06Z","pushed_at":"2015-06-26T21:46:34Z","git_url":"git://github.com/tablexi/restforce-db.git","ssh_url":"git@github.com:tablexi/restforce-db.git","clone_url":"https://github.com/tablexi/restforce-db.git","svn_url":"https://github.com/tablexi/restforce-db","homepage":null,"size":1646,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tablexi/restforce-db/pulls/50"},"html":{"href":"https://github.com/tablexi/restforce-db/pull/50"},"issue":{"href":"https://api.github.com/repos/tablexi/restforce-db/issues/50"},"comments":{"href":"https://api.github.com/repos/tablexi/restforce-db/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/tablexi/restforce-db/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/tablexi/restforce-db/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tablexi/restforce-db/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/tablexi/restforce-db/statuses/ca6651f75a40b02ddc0112ae85544c0214aed85f"}}}}