{"action":"created","comment":{"url":"https://api.github.com/repos/crdschurch/crds-fred/pulls/comments/158993403","pull_request_review_id":85877026,"id":158993403,"diff_hunk":"@@ -0,0 +1,20 @@\n+USE MinistryPlatform\n+GO\n+\n+DECLARE @CRDS_FRED_ROLE_ID int;\n+SELECT @CRDS_FRED_ROLE_ID = Role_ID FROM dp_Roles WHERE Role_Name = 'FRED - CRDS';\n+\n+DECLARE @PRODUCTS_PAGE_ID int = 372;\n+\n+IF NOT EXISTS (SELECT 1 FROM dp_Role_Pages WHERE Role_ID = @CRDS_FRED_ROLE_ID and Page_ID = @PRODUCTS_PAGE_ID)\n+BEGIN\n+  INSERT INTO dp_Role_Pages (\n+    Role_ID,\n+    Page_ID,\n+    Access_Level\n+  ) VALUES (\n+    @CRDS_FRED_ROLE_ID,\n+    @PRODUCTS_PAGE_ID,\n+    0","path":"CI/SQL/20171228_110019_US10985-permissions-for-fred-to-read-products.sql","position":18,"original_position":18,"commit_id":"ab610aad9cf60d86469e16fb5b5b14be81db6ca2","original_commit_id":"ab610aad9cf60d86469e16fb5b5b14be81db6ca2","user":{"login":"vchtelmakh","id":22355063,"avatar_url":"https://avatars3.githubusercontent.com/u/22355063?v=4","gravatar_id":"","url":"https://api.github.com/users/vchtelmakh","html_url":"https://github.com/vchtelmakh","followers_url":"https://api.github.com/users/vchtelmakh/followers","following_url":"https://api.github.com/users/vchtelmakh/following{/other_user}","gists_url":"https://api.github.com/users/vchtelmakh/gists{/gist_id}","starred_url":"https://api.github.com/users/vchtelmakh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vchtelmakh/subscriptions","organizations_url":"https://api.github.com/users/vchtelmakh/orgs","repos_url":"https://api.github.com/users/vchtelmakh/repos","events_url":"https://api.github.com/users/vchtelmakh/events{/privacy}","received_events_url":"https://api.github.com/users/vchtelmakh/received_events","type":"User","site_admin":false},"body":"We should start putting access level codes into appropriately named vars- might be confusing for people in the future. Don't need to change, I did the same thing, just a thought.","created_at":"2017-12-28T20:08:51Z","updated_at":"2017-12-28T20:08:51Z","html_url":"https://github.com/crdschurch/crds-fred/pull/107#discussion_r158993403","pull_request_url":"https://api.github.com/repos/crdschurch/crds-fred/pulls/107","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/crdschurch/crds-fred/pulls/comments/158993403"},"html":{"href":"https://github.com/crdschurch/crds-fred/pull/107#discussion_r158993403"},"pull_request":{"href":"https://api.github.com/repos/crdschurch/crds-fred/pulls/107"}}},"pull_request":{"url":"https://api.github.com/repos/crdschurch/crds-fred/pulls/107","id":160436666,"html_url":"https://github.com/crdschurch/crds-fred/pull/107","diff_url":"https://github.com/crdschurch/crds-fred/pull/107.diff","patch_url":"https://github.com/crdschurch/crds-fred/pull/107.patch","issue_url":"https://api.github.com/repos/crdschurch/crds-fred/issues/107","number":107,"state":"open","locked":false,"title":"Feature/us10985 attach product to form","user":{"login":"andycanterbury","id":10052615,"avatar_url":"https://avatars2.githubusercontent.com/u/10052615?v=4","gravatar_id":"","url":"https://api.github.com/users/andycanterbury","html_url":"https://github.com/andycanterbury","followers_url":"https://api.github.com/users/andycanterbury/followers","following_url":"https://api.github.com/users/andycanterbury/following{/other_user}","gists_url":"https://api.github.com/users/andycanterbury/gists{/gist_id}","starred_url":"https://api.github.com/users/andycanterbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andycanterbury/subscriptions","organizations_url":"https://api.github.com/users/andycanterbury/orgs","repos_url":"https://api.github.com/users/andycanterbury/repos","events_url":"https://api.github.com/users/andycanterbury/events{/privacy}","received_events_url":"https://api.github.com/users/andycanterbury/received_events","type":"User","site_admin":false},"body":"## Purpose\r\nDisplay the base price of a product on the form that the product is attached to.\r\n\r\n## Approach\r\nThis approach leverages the existing pre-population methods for lookups and extends them to be able to fill in number fields. \r\n\r\n#### Open Questions and Pre-Merge TODOs\r\nThis directly access the Products table using the ID stored in the form metadata. This could get out of sync with the configuration in MP using Events to link Forms to Products.\r\n\r\n## Screenshot of completed work (if applicable)\r\n![image](https://user-images.githubusercontent.com/10052615/34421939-73549ff6-ebe0-11e7-94e9-b243abb2245e.png)\r\n","created_at":"2017-12-28T20:06:26Z","updated_at":"2017-12-28T20:08:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bfca2ecd7a9e067176b8317bae73d4133202be10","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/crdschurch/crds-fred/pulls/107/commits","review_comments_url":"https://api.github.com/repos/crdschurch/crds-fred/pulls/107/comments","review_comment_url":"https://api.github.com/repos/crdschurch/crds-fred/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crdschurch/crds-fred/issues/107/comments","statuses_url":"https://api.github.com/repos/crdschurch/crds-fred/statuses/ab610aad9cf60d86469e16fb5b5b14be81db6ca2","head":{"label":"crdschurch:feature/US10985-AttachProductToForm","ref":"feature/US10985-AttachProductToForm","sha":"ab610aad9cf60d86469e16fb5b5b14be81db6ca2","user":{"login":"crdschurch","id":1843144,"avatar_url":"https://avatars2.githubusercontent.com/u/1843144?v=4","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"repo":{"id":101102913,"name":"crds-fred","full_name":"crdschurch/crds-fred","owner":{"login":"crdschurch","id":1843144,"avatar_url":"https://avatars2.githubusercontent.com/u/1843144?v=4","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crdschurch/crds-fred","description":"Forms Real Easily Done","fork":false,"url":"https://api.github.com/repos/crdschurch/crds-fred","forks_url":"https://api.github.com/repos/crdschurch/crds-fred/forks","keys_url":"https://api.github.com/repos/crdschurch/crds-fred/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crdschurch/crds-fred/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crdschurch/crds-fred/teams","hooks_url":"https://api.github.com/repos/crdschurch/crds-fred/hooks","issue_events_url":"https://api.github.com/repos/crdschurch/crds-fred/issues/events{/number}","events_url":"https://api.github.com/repos/crdschurch/crds-fred/events","assignees_url":"https://api.github.com/repos/crdschurch/crds-fred/assignees{/user}","branches_url":"https://api.github.com/repos/crdschurch/crds-fred/branches{/branch}","tags_url":"https://api.github.com/repos/crdschurch/crds-fred/tags","blobs_url":"https://api.github.com/repos/crdschurch/crds-fred/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crdschurch/crds-fred/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crdschurch/crds-fred/git/refs{/sha}","trees_url":"https://api.github.com/repos/crdschurch/crds-fred/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crdschurch/crds-fred/statuses/{sha}","languages_url":"https://api.github.com/repos/crdschurch/crds-fred/languages","stargazers_url":"https://api.github.com/repos/crdschurch/crds-fred/stargazers","contributors_url":"https://api.github.com/repos/crdschurch/crds-fred/contributors","subscribers_url":"https://api.github.com/repos/crdschurch/crds-fred/subscribers","subscription_url":"https://api.github.com/repos/crdschurch/crds-fred/subscription","commits_url":"https://api.github.com/repos/crdschurch/crds-fred/commits{/sha}","git_commits_url":"https://api.github.com/repos/crdschurch/crds-fred/git/commits{/sha}","comments_url":"https://api.github.com/repos/crdschurch/crds-fred/comments{/number}","issue_comment_url":"https://api.github.com/repos/crdschurch/crds-fred/issues/comments{/number}","contents_url":"https://api.github.com/repos/crdschurch/crds-fred/contents/{+path}","compare_url":"https://api.github.com/repos/crdschurch/crds-fred/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crdschurch/crds-fred/merges","archive_url":"https://api.github.com/repos/crdschurch/crds-fred/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crdschurch/crds-fred/downloads","issues_url":"https://api.github.com/repos/crdschurch/crds-fred/issues{/number}","pulls_url":"https://api.github.com/repos/crdschurch/crds-fred/pulls{/number}","milestones_url":"https://api.github.com/repos/crdschurch/crds-fred/milestones{/number}","notifications_url":"https://api.github.com/repos/crdschurch/crds-fred/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crdschurch/crds-fred/labels{/name}","releases_url":"https://api.github.com/repos/crdschurch/crds-fred/releases{/id}","deployments_url":"https://api.github.com/repos/crdschurch/crds-fred/deployments","created_at":"2017-08-22T20:08:00Z","updated_at":"2017-10-19T19:39:53Z","pushed_at":"2017-12-28T20:06:26Z","git_url":"git://github.com/crdschurch/crds-fred.git","ssh_url":"git@github.com:crdschurch/crds-fred.git","clone_url":"https://github.com/crdschurch/crds-fred.git","svn_url":"https://github.com/crdschurch/crds-fred","homepage":null,"size":2410,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"bsd-3-clause","name":"BSD 3-clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"development"}},"base":{"label":"crdschurch:development","ref":"development","sha":"0c404f5720ba16b54c7126eeeb6aff1813b8acb5","user":{"login":"crdschurch","id":1843144,"avatar_url":"https://avatars2.githubusercontent.com/u/1843144?v=4","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"repo":{"id":101102913,"name":"crds-fred","full_name":"crdschurch/crds-fred","owner":{"login":"crdschurch","id":1843144,"avatar_url":"https://avatars2.githubusercontent.com/u/1843144?v=4","gravatar_id":"","url":"https://api.github.com/users/crdschurch","html_url":"https://github.com/crdschurch","followers_url":"https://api.github.com/users/crdschurch/followers","following_url":"https://api.github.com/users/crdschurch/following{/other_user}","gists_url":"https://api.github.com/users/crdschurch/gists{/gist_id}","starred_url":"https://api.github.com/users/crdschurch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crdschurch/subscriptions","organizations_url":"https://api.github.com/users/crdschurch/orgs","repos_url":"https://api.github.com/users/crdschurch/repos","events_url":"https://api.github.com/users/crdschurch/events{/privacy}","received_events_url":"https://api.github.com/users/crdschurch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crdschurch/crds-fred","description":"Forms Real Easily Done","fork":false,"url":"https://api.github.com/repos/crdschurch/crds-fred","forks_url":"https://api.github.com/repos/crdschurch/crds-fred/forks","keys_url":"https://api.github.com/repos/crdschurch/crds-fred/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crdschurch/crds-fred/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crdschurch/crds-fred/teams","hooks_url":"https://api.github.com/repos/crdschurch/crds-fred/hooks","issue_events_url":"https://api.github.com/repos/crdschurch/crds-fred/issues/events{/number}","events_url":"https://api.github.com/repos/crdschurch/crds-fred/events","assignees_url":"https://api.github.com/repos/crdschurch/crds-fred/assignees{/user}","branches_url":"https://api.github.com/repos/crdschurch/crds-fred/branches{/branch}","tags_url":"https://api.github.com/repos/crdschurch/crds-fred/tags","blobs_url":"https://api.github.com/repos/crdschurch/crds-fred/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crdschurch/crds-fred/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crdschurch/crds-fred/git/refs{/sha}","trees_url":"https://api.github.com/repos/crdschurch/crds-fred/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crdschurch/crds-fred/statuses/{sha}","languages_url":"https://api.github.com/repos/crdschurch/crds-fred/languages","stargazers_url":"https://api.github.com/repos/crdschurch/crds-fred/stargazers","contributors_url":"https://api.github.com/repos/crdschurch/crds-fred/contributors","subscribers_url":"https://api.github.com/repos/crdschurch/crds-fred/subscribers","subscription_url":"https://api.github.com/repos/crdschurch/crds-fred/subscription","commits_url":"https://api.github.com/repos/crdschurch/crds-fred/commits{/sha}","git_commits_url":"https://api.github.com/repos/crdschurch/crds-fred/git/commits{/sha}","comments_url":"https://api.github.com/repos/crdschurch/crds-fred/comments{/number}","issue_comment_url":"https://api.github.com/repos/crdschurch/crds-fred/issues/comments{/number}","contents_url":"https://api.github.com/repos/crdschurch/crds-fred/contents/{+path}","compare_url":"https://api.github.com/repos/crdschurch/crds-fred/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crdschurch/crds-fred/merges","archive_url":"https://api.github.com/repos/crdschurch/crds-fred/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crdschurch/crds-fred/downloads","issues_url":"https://api.github.com/repos/crdschurch/crds-fred/issues{/number}","pulls_url":"https://api.github.com/repos/crdschurch/crds-fred/pulls{/number}","milestones_url":"https://api.github.com/repos/crdschurch/crds-fred/milestones{/number}","notifications_url":"https://api.github.com/repos/crdschurch/crds-fred/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crdschurch/crds-fred/labels{/name}","releases_url":"https://api.github.com/repos/crdschurch/crds-fred/releases{/id}","deployments_url":"https://api.github.com/repos/crdschurch/crds-fred/deployments","created_at":"2017-08-22T20:08:00Z","updated_at":"2017-10-19T19:39:53Z","pushed_at":"2017-12-28T20:06:26Z","git_url":"git://github.com/crdschurch/crds-fred.git","ssh_url":"git@github.com:crdschurch/crds-fred.git","clone_url":"https://github.com/crdschurch/crds-fred.git","svn_url":"https://github.com/crdschurch/crds-fred","homepage":null,"size":2410,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"bsd-3-clause","name":"BSD 3-clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/crdschurch/crds-fred/pulls/107"},"html":{"href":"https://github.com/crdschurch/crds-fred/pull/107"},"issue":{"href":"https://api.github.com/repos/crdschurch/crds-fred/issues/107"},"comments":{"href":"https://api.github.com/repos/crdschurch/crds-fred/issues/107/comments"},"review_comments":{"href":"https://api.github.com/repos/crdschurch/crds-fred/pulls/107/comments"},"review_comment":{"href":"https://api.github.com/repos/crdschurch/crds-fred/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crdschurch/crds-fred/pulls/107/commits"},"statuses":{"href":"https://api.github.com/repos/crdschurch/crds-fred/statuses/ab610aad9cf60d86469e16fb5b5b14be81db6ca2"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"vchtelmakh"}}