{"action":"opened","number":1333,"pull_request":{"url":"https://api.github.com/repos/sparc-request/sparc-request/pulls/1333","id":190924380,"html_url":"https://github.com/sparc-request/sparc-request/pull/1333","diff_url":"https://github.com/sparc-request/sparc-request/pull/1333.diff","patch_url":"https://github.com/sparc-request/sparc-request/pull/1333.patch","issue_url":"https://api.github.com/repos/sparc-request/sparc-request/issues/1333","number":1333,"state":"open","locked":false,"title":"fix to LIV subject counts of zero being updated on submit [#157736871]","user":{"login":"amcates","id":14888,"avatar_url":"https://avatars0.githubusercontent.com/u/14888?v=4","gravatar_id":"","url":"https://api.github.com/users/amcates","html_url":"https://github.com/amcates","followers_url":"https://api.github.com/users/amcates/followers","following_url":"https://api.github.com/users/amcates/following{/other_user}","gists_url":"https://api.github.com/users/amcates/gists{/gist_id}","starred_url":"https://api.github.com/users/amcates/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amcates/subscriptions","organizations_url":"https://api.github.com/users/amcates/orgs","repos_url":"https://api.github.com/users/amcates/repos","events_url":"https://api.github.com/users/amcates/events{/privacy}","received_events_url":"https://api.github.com/users/amcates/received_events","type":"User","site_admin":false},"body":"Using just ```liv.subject_count?``` produced false for nil and zero.  ```liv.subject_count.present?``` produces true unless nil\r\n\r\nhttps://www.pivotaltracker.com/story/show/157736871","created_at":"2018-05-28T12:57:50Z","updated_at":"2018-05-28T12:57:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sparc-request/sparc-request/pulls/1333/commits","review_comments_url":"https://api.github.com/repos/sparc-request/sparc-request/pulls/1333/comments","review_comment_url":"https://api.github.com/repos/sparc-request/sparc-request/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sparc-request/sparc-request/issues/1333/comments","statuses_url":"https://api.github.com/repos/sparc-request/sparc-request/statuses/4ae127c282eed0d5e568933a13f5b72dd78aed08","head":{"label":"sparc-request:ac-fix-subject-count","ref":"ac-fix-subject-count","sha":"4ae127c282eed0d5e568933a13f5b72dd78aed08","user":{"login":"sparc-request","id":8311757,"avatar_url":"https://avatars1.githubusercontent.com/u/8311757?v=4","gravatar_id":"","url":"https://api.github.com/users/sparc-request","html_url":"https://github.com/sparc-request","followers_url":"https://api.github.com/users/sparc-request/followers","following_url":"https://api.github.com/users/sparc-request/following{/other_user}","gists_url":"https://api.github.com/users/sparc-request/gists{/gist_id}","starred_url":"https://api.github.com/users/sparc-request/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparc-request/subscriptions","organizations_url":"https://api.github.com/users/sparc-request/orgs","repos_url":"https://api.github.com/users/sparc-request/repos","events_url":"https://api.github.com/users/sparc-request/events{/privacy}","received_events_url":"https://api.github.com/users/sparc-request/received_events","type":"User","site_admin":false},"repo":{"id":22610009,"name":"sparc-request","full_name":"sparc-request/sparc-request","owner":{"login":"sparc-request","id":8311757,"avatar_url":"https://avatars1.githubusercontent.com/u/8311757?v=4","gravatar_id":"","url":"https://api.github.com/users/sparc-request","html_url":"https://github.com/sparc-request","followers_url":"https://api.github.com/users/sparc-request/followers","following_url":"https://api.github.com/users/sparc-request/following{/other_user}","gists_url":"https://api.github.com/users/sparc-request/gists{/gist_id}","starred_url":"https://api.github.com/users/sparc-request/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparc-request/subscriptions","organizations_url":"https://api.github.com/users/sparc-request/orgs","repos_url":"https://api.github.com/users/sparc-request/repos","events_url":"https://api.github.com/users/sparc-request/events{/privacy}","received_events_url":"https://api.github.com/users/sparc-request/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sparc-request/sparc-request","description":null,"fork":false,"url":"https://api.github.com/repos/sparc-request/sparc-request","forks_url":"https://api.github.com/repos/sparc-request/sparc-request/forks","keys_url":"https://api.github.com/repos/sparc-request/sparc-request/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sparc-request/sparc-request/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sparc-request/sparc-request/teams","hooks_url":"https://api.github.com/repos/sparc-request/sparc-request/hooks","issue_events_url":"https://api.github.com/repos/sparc-request/sparc-request/issues/events{/number}","events_url":"https://api.github.com/repos/sparc-request/sparc-request/events","assignees_url":"https://api.github.com/repos/sparc-request/sparc-request/assignees{/user}","branches_url":"https://api.github.com/repos/sparc-request/sparc-request/branches{/branch}","tags_url":"https://api.github.com/repos/sparc-request/sparc-request/tags","blobs_url":"https://api.github.com/repos/sparc-request/sparc-request/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sparc-request/sparc-request/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sparc-request/sparc-request/git/refs{/sha}","trees_url":"https://api.github.com/repos/sparc-request/sparc-request/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sparc-request/sparc-request/statuses/{sha}","languages_url":"https://api.github.com/repos/sparc-request/sparc-request/languages","stargazers_url":"https://api.github.com/repos/sparc-request/sparc-request/stargazers","contributors_url":"https://api.github.com/repos/sparc-request/sparc-request/contributors","subscribers_url":"https://api.github.com/repos/sparc-request/sparc-request/subscribers","subscription_url":"https://api.github.com/repos/sparc-request/sparc-request/subscription","commits_url":"https://api.github.com/repos/sparc-request/sparc-request/commits{/sha}","git_commits_url":"https://api.github.com/repos/sparc-request/sparc-request/git/commits{/sha}","comments_url":"https://api.github.com/repos/sparc-request/sparc-request/comments{/number}","issue_comment_url":"https://api.github.com/repos/sparc-request/sparc-request/issues/comments{/number}","contents_url":"https://api.github.com/repos/sparc-request/sparc-request/contents/{+path}","compare_url":"https://api.github.com/repos/sparc-request/sparc-request/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sparc-request/sparc-request/merges","archive_url":"https://api.github.com/repos/sparc-request/sparc-request/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sparc-request/sparc-request/downloads","issues_url":"https://api.github.com/repos/sparc-request/sparc-request/issues{/number}","pulls_url":"https://api.github.com/repos/sparc-request/sparc-request/pulls{/number}","milestones_url":"https://api.github.com/repos/sparc-request/sparc-request/milestones{/number}","notifications_url":"https://api.github.com/repos/sparc-request/sparc-request/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sparc-request/sparc-request/labels{/name}","releases_url":"https://api.github.com/repos/sparc-request/sparc-request/releases{/id}","deployments_url":"https://api.github.com/repos/sparc-request/sparc-request/deployments","created_at":"2014-08-04T15:47:11Z","updated_at":"2018-05-21T14:40:26Z","pushed_at":"2018-05-28T12:55:23Z","git_url":"git://github.com/sparc-request/sparc-request.git","ssh_url":"git@github.com:sparc-request/sparc-request.git","clone_url":"https://github.com/sparc-request/sparc-request.git","svn_url":"https://github.com/sparc-request/sparc-request","homepage":null,"size":30681,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"archived":false,"open_issues_count":28,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":21,"open_issues":28,"watchers":8,"default_branch":"master"}},"base":{"label":"sparc-request:v3.3.0","ref":"v3.3.0","sha":"23b470667d13c28058882c7143c66bd46c002673","user":{"login":"sparc-request","id":8311757,"avatar_url":"https://avatars1.githubusercontent.com/u/8311757?v=4","gravatar_id":"","url":"https://api.github.com/users/sparc-request","html_url":"https://github.com/sparc-request","followers_url":"https://api.github.com/users/sparc-request/followers","following_url":"https://api.github.com/users/sparc-request/following{/other_user}","gists_url":"https://api.github.com/users/sparc-request/gists{/gist_id}","starred_url":"https://api.github.com/users/sparc-request/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparc-request/subscriptions","organizations_url":"https://api.github.com/users/sparc-request/orgs","repos_url":"https://api.github.com/users/sparc-request/repos","events_url":"https://api.github.com/users/sparc-request/events{/privacy}","received_events_url":"https://api.github.com/users/sparc-request/received_events","type":"User","site_admin":false},"repo":{"id":22610009,"name":"sparc-request","full_name":"sparc-request/sparc-request","owner":{"login":"sparc-request","id":8311757,"avatar_url":"https://avatars1.githubusercontent.com/u/8311757?v=4","gravatar_id":"","url":"https://api.github.com/users/sparc-request","html_url":"https://github.com/sparc-request","followers_url":"https://api.github.com/users/sparc-request/followers","following_url":"https://api.github.com/users/sparc-request/following{/other_user}","gists_url":"https://api.github.com/users/sparc-request/gists{/gist_id}","starred_url":"https://api.github.com/users/sparc-request/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparc-request/subscriptions","organizations_url":"https://api.github.com/users/sparc-request/orgs","repos_url":"https://api.github.com/users/sparc-request/repos","events_url":"https://api.github.com/users/sparc-request/events{/privacy}","received_events_url":"https://api.github.com/users/sparc-request/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sparc-request/sparc-request","description":null,"fork":false,"url":"https://api.github.com/repos/sparc-request/sparc-request","forks_url":"https://api.github.com/repos/sparc-request/sparc-request/forks","keys_url":"https://api.github.com/repos/sparc-request/sparc-request/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sparc-request/sparc-request/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sparc-request/sparc-request/teams","hooks_url":"https://api.github.com/repos/sparc-request/sparc-request/hooks","issue_events_url":"https://api.github.com/repos/sparc-request/sparc-request/issues/events{/number}","events_url":"https://api.github.com/repos/sparc-request/sparc-request/events","assignees_url":"https://api.github.com/repos/sparc-request/sparc-request/assignees{/user}","branches_url":"https://api.github.com/repos/sparc-request/sparc-request/branches{/branch}","tags_url":"https://api.github.com/repos/sparc-request/sparc-request/tags","blobs_url":"https://api.github.com/repos/sparc-request/sparc-request/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sparc-request/sparc-request/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sparc-request/sparc-request/git/refs{/sha}","trees_url":"https://api.github.com/repos/sparc-request/sparc-request/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sparc-request/sparc-request/statuses/{sha}","languages_url":"https://api.github.com/repos/sparc-request/sparc-request/languages","stargazers_url":"https://api.github.com/repos/sparc-request/sparc-request/stargazers","contributors_url":"https://api.github.com/repos/sparc-request/sparc-request/contributors","subscribers_url":"https://api.github.com/repos/sparc-request/sparc-request/subscribers","subscription_url":"https://api.github.com/repos/sparc-request/sparc-request/subscription","commits_url":"https://api.github.com/repos/sparc-request/sparc-request/commits{/sha}","git_commits_url":"https://api.github.com/repos/sparc-request/sparc-request/git/commits{/sha}","comments_url":"https://api.github.com/repos/sparc-request/sparc-request/comments{/number}","issue_comment_url":"https://api.github.com/repos/sparc-request/sparc-request/issues/comments{/number}","contents_url":"https://api.github.com/repos/sparc-request/sparc-request/contents/{+path}","compare_url":"https://api.github.com/repos/sparc-request/sparc-request/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sparc-request/sparc-request/merges","archive_url":"https://api.github.com/repos/sparc-request/sparc-request/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sparc-request/sparc-request/downloads","issues_url":"https://api.github.com/repos/sparc-request/sparc-request/issues{/number}","pulls_url":"https://api.github.com/repos/sparc-request/sparc-request/pulls{/number}","milestones_url":"https://api.github.com/repos/sparc-request/sparc-request/milestones{/number}","notifications_url":"https://api.github.com/repos/sparc-request/sparc-request/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sparc-request/sparc-request/labels{/name}","releases_url":"https://api.github.com/repos/sparc-request/sparc-request/releases{/id}","deployments_url":"https://api.github.com/repos/sparc-request/sparc-request/deployments","created_at":"2014-08-04T15:47:11Z","updated_at":"2018-05-21T14:40:26Z","pushed_at":"2018-05-28T12:55:23Z","git_url":"git://github.com/sparc-request/sparc-request.git","ssh_url":"git@github.com:sparc-request/sparc-request.git","clone_url":"https://github.com/sparc-request/sparc-request.git","svn_url":"https://github.com/sparc-request/sparc-request","homepage":null,"size":30681,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"archived":false,"open_issues_count":28,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":21,"open_issues":28,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sparc-request/sparc-request/pulls/1333"},"html":{"href":"https://github.com/sparc-request/sparc-request/pull/1333"},"issue":{"href":"https://api.github.com/repos/sparc-request/sparc-request/issues/1333"},"comments":{"href":"https://api.github.com/repos/sparc-request/sparc-request/issues/1333/comments"},"review_comments":{"href":"https://api.github.com/repos/sparc-request/sparc-request/pulls/1333/comments"},"review_comment":{"href":"https://api.github.com/repos/sparc-request/sparc-request/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sparc-request/sparc-request/pulls/1333/commits"},"statuses":{"href":"https://api.github.com/repos/sparc-request/sparc-request/statuses/4ae127c282eed0d5e568933a13f5b72dd78aed08"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"amcates"}}