{"action":"opened","number":755,"pull_request":{"url":"https://api.github.com/repos/18F/fec-cms/pulls/755","id":102568708,"html_url":"https://github.com/18F/fec-cms/pull/755","diff_url":"https://github.com/18F/fec-cms/pull/755.diff","patch_url":"https://github.com/18F/fec-cms/pull/755.patch","issue_url":"https://api.github.com/repos/18F/fec-cms/issues/755","number":755,"state":"open","locked":false,"title":"Feature/rad form","user":{"login":"noahmanger","id":1696495,"avatar_url":"https://avatars.githubusercontent.com/u/1696495?v=3","gravatar_id":"","url":"https://api.github.com/users/noahmanger","html_url":"https://github.com/noahmanger","followers_url":"https://api.github.com/users/noahmanger/followers","following_url":"https://api.github.com/users/noahmanger/following{/other_user}","gists_url":"https://api.github.com/users/noahmanger/gists{/gist_id}","starred_url":"https://api.github.com/users/noahmanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahmanger/subscriptions","organizations_url":"https://api.github.com/users/noahmanger/orgs","repos_url":"https://api.github.com/users/noahmanger/repos","events_url":"https://api.github.com/users/noahmanger/events{/privacy}","received_events_url":"https://api.github.com/users/noahmanger/received_events","type":"User","site_admin":false},"body":"This implements a very basic proof of concept for the RAD contact form from #612 . This makes use of Django's built-in [forms API](https://docs.djangoproject.com/en/1.10/ref/forms/) to do all of the required / validation / cleaning / etc. This is my first time using this API, though, so please let me know if I did anything wrong.\r\n\r\n![contact rad - fec](https://cloud.githubusercontent.com/assets/1696495/22171576/dcf8266a-df45-11e6-89a7-1756564b2ea5.png)\r\n\r\nThis includes all of the required (and optional) fields as specified. \r\n\r\nSome notes:\r\n\r\nThe committee field uses the typeahead pulling from api.open.fec.gov to supply a committee ID to a hidden input:\r\n![typeahead](http://g.recordit.co/r6RzWIDxTN.gif)\r\n\r\nWhen choosing the \"other\" category, an optional text field appears:\r\n![other](http://g.recordit.co/4UOjzM4Ydj.gif)\r\n\r\nThe original issue requested that this certification appear as a popup after submitting the form. That's still possible, but for this first iteration I just included it on the initial screen before the submit button:\r\n![image](https://cloud.githubusercontent.com/assets/1696495/22171616/92e7ae6e-df46-11e6-992e-399e8e3ed9c1.png)\r\n\r\n---\r\n\r\n## Connecting to ServiceNow\r\nThis introduces a few new env variables to connect to the ServiceNow API. This API is used to generate a list of the categories and it's also what we submit to. @patphongs has the details from ServiceNow for this endpoint.\r\n\r\nI was able to connect to the point where I could get the data. When I try to `post`, though, I get a 415 error. I'm emailing our contact there to see what to do about that. \r\n\r\n## Remaining to do:\r\n- [ ] Get the form to post to ServiceNow\r\n- [ ] Add ServiceNow creds to environments\r\n\r\nHoping that @patphongs can pick up this remaining work with help from other Django folks at 18F.","created_at":"2017-01-21T03:33:17Z","updated_at":"2017-01-21T03:33:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/18F/fec-cms/pulls/755/commits","review_comments_url":"https://api.github.com/repos/18F/fec-cms/pulls/755/comments","review_comment_url":"https://api.github.com/repos/18F/fec-cms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/18F/fec-cms/issues/755/comments","statuses_url":"https://api.github.com/repos/18F/fec-cms/statuses/5ae1f0dd0d39da426603c9bc2e95f49b182d1fcb","head":{"label":"18F:feature/rad-form","ref":"feature/rad-form","sha":"5ae1f0dd0d39da426603c9bc2e95f49b182d1fcb","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":40841283,"name":"fec-cms","full_name":"18F/fec-cms","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/fec-cms","description":"The content management system (CMS) for the new Federal Election Commission website.","fork":false,"url":"https://api.github.com/repos/18F/fec-cms","forks_url":"https://api.github.com/repos/18F/fec-cms/forks","keys_url":"https://api.github.com/repos/18F/fec-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/fec-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/fec-cms/teams","hooks_url":"https://api.github.com/repos/18F/fec-cms/hooks","issue_events_url":"https://api.github.com/repos/18F/fec-cms/issues/events{/number}","events_url":"https://api.github.com/repos/18F/fec-cms/events","assignees_url":"https://api.github.com/repos/18F/fec-cms/assignees{/user}","branches_url":"https://api.github.com/repos/18F/fec-cms/branches{/branch}","tags_url":"https://api.github.com/repos/18F/fec-cms/tags","blobs_url":"https://api.github.com/repos/18F/fec-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/fec-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/fec-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/fec-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/fec-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/fec-cms/languages","stargazers_url":"https://api.github.com/repos/18F/fec-cms/stargazers","contributors_url":"https://api.github.com/repos/18F/fec-cms/contributors","subscribers_url":"https://api.github.com/repos/18F/fec-cms/subscribers","subscription_url":"https://api.github.com/repos/18F/fec-cms/subscription","commits_url":"https://api.github.com/repos/18F/fec-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/fec-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/fec-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/fec-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/fec-cms/contents/{+path}","compare_url":"https://api.github.com/repos/18F/fec-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/fec-cms/merges","archive_url":"https://api.github.com/repos/18F/fec-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/fec-cms/downloads","issues_url":"https://api.github.com/repos/18F/fec-cms/issues{/number}","pulls_url":"https://api.github.com/repos/18F/fec-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/fec-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/fec-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/fec-cms/labels{/name}","releases_url":"https://api.github.com/repos/18F/fec-cms/releases{/id}","deployments_url":"https://api.github.com/repos/18F/fec-cms/deployments","created_at":"2015-08-16T21:11:22Z","updated_at":"2017-01-10T22:51:11Z","pushed_at":"2017-01-21T03:25:58Z","git_url":"git://github.com/18F/fec-cms.git","ssh_url":"git@github.com:18F/fec-cms.git","clone_url":"https://github.com/18F/fec-cms.git","svn_url":"https://github.com/18F/fec-cms","homepage":"https://beta.fec.gov","size":8033,"stargazers_count":24,"watchers_count":24,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":92,"forks":13,"open_issues":92,"watchers":24,"default_branch":"develop"}},"base":{"label":"18F:develop","ref":"develop","sha":"f733615b0a4799af9aa36e4d4230c5182f66d4ec","user":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"repo":{"id":40841283,"name":"fec-cms","full_name":"18F/fec-cms","owner":{"login":"18F","id":6233994,"avatar_url":"https://avatars.githubusercontent.com/u/6233994?v=3","gravatar_id":"","url":"https://api.github.com/users/18F","html_url":"https://github.com/18F","followers_url":"https://api.github.com/users/18F/followers","following_url":"https://api.github.com/users/18F/following{/other_user}","gists_url":"https://api.github.com/users/18F/gists{/gist_id}","starred_url":"https://api.github.com/users/18F/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18F/subscriptions","organizations_url":"https://api.github.com/users/18F/orgs","repos_url":"https://api.github.com/users/18F/repos","events_url":"https://api.github.com/users/18F/events{/privacy}","received_events_url":"https://api.github.com/users/18F/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/18F/fec-cms","description":"The content management system (CMS) for the new Federal Election Commission website.","fork":false,"url":"https://api.github.com/repos/18F/fec-cms","forks_url":"https://api.github.com/repos/18F/fec-cms/forks","keys_url":"https://api.github.com/repos/18F/fec-cms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/18F/fec-cms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/18F/fec-cms/teams","hooks_url":"https://api.github.com/repos/18F/fec-cms/hooks","issue_events_url":"https://api.github.com/repos/18F/fec-cms/issues/events{/number}","events_url":"https://api.github.com/repos/18F/fec-cms/events","assignees_url":"https://api.github.com/repos/18F/fec-cms/assignees{/user}","branches_url":"https://api.github.com/repos/18F/fec-cms/branches{/branch}","tags_url":"https://api.github.com/repos/18F/fec-cms/tags","blobs_url":"https://api.github.com/repos/18F/fec-cms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/18F/fec-cms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/18F/fec-cms/git/refs{/sha}","trees_url":"https://api.github.com/repos/18F/fec-cms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/18F/fec-cms/statuses/{sha}","languages_url":"https://api.github.com/repos/18F/fec-cms/languages","stargazers_url":"https://api.github.com/repos/18F/fec-cms/stargazers","contributors_url":"https://api.github.com/repos/18F/fec-cms/contributors","subscribers_url":"https://api.github.com/repos/18F/fec-cms/subscribers","subscription_url":"https://api.github.com/repos/18F/fec-cms/subscription","commits_url":"https://api.github.com/repos/18F/fec-cms/commits{/sha}","git_commits_url":"https://api.github.com/repos/18F/fec-cms/git/commits{/sha}","comments_url":"https://api.github.com/repos/18F/fec-cms/comments{/number}","issue_comment_url":"https://api.github.com/repos/18F/fec-cms/issues/comments{/number}","contents_url":"https://api.github.com/repos/18F/fec-cms/contents/{+path}","compare_url":"https://api.github.com/repos/18F/fec-cms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/18F/fec-cms/merges","archive_url":"https://api.github.com/repos/18F/fec-cms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/18F/fec-cms/downloads","issues_url":"https://api.github.com/repos/18F/fec-cms/issues{/number}","pulls_url":"https://api.github.com/repos/18F/fec-cms/pulls{/number}","milestones_url":"https://api.github.com/repos/18F/fec-cms/milestones{/number}","notifications_url":"https://api.github.com/repos/18F/fec-cms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/18F/fec-cms/labels{/name}","releases_url":"https://api.github.com/repos/18F/fec-cms/releases{/id}","deployments_url":"https://api.github.com/repos/18F/fec-cms/deployments","created_at":"2015-08-16T21:11:22Z","updated_at":"2017-01-10T22:51:11Z","pushed_at":"2017-01-21T03:25:58Z","git_url":"git://github.com/18F/fec-cms.git","ssh_url":"git@github.com:18F/fec-cms.git","clone_url":"https://github.com/18F/fec-cms.git","svn_url":"https://github.com/18F/fec-cms","homepage":"https://beta.fec.gov","size":8033,"stargazers_count":24,"watchers_count":24,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":92,"forks":13,"open_issues":92,"watchers":24,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/18F/fec-cms/pulls/755"},"html":{"href":"https://github.com/18F/fec-cms/pull/755"},"issue":{"href":"https://api.github.com/repos/18F/fec-cms/issues/755"},"comments":{"href":"https://api.github.com/repos/18F/fec-cms/issues/755/comments"},"review_comments":{"href":"https://api.github.com/repos/18F/fec-cms/pulls/755/comments"},"review_comment":{"href":"https://api.github.com/repos/18F/fec-cms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/18F/fec-cms/pulls/755/commits"},"statuses":{"href":"https://api.github.com/repos/18F/fec-cms/statuses/5ae1f0dd0d39da426603c9bc2e95f49b182d1fcb"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":6,"additions":185,"deletions":7,"changed_files":7}}
{"actor":{"display_login":"noahmanger"}}