{"action":"created","comment":{"url":"https://api.github.com/repos/DirectEmployers/MyJobs/pulls/comments/68120031","id":68120031,"diff_hunk":"@@ -106,6 +106,11 @@ backgroundstop() {\n     docker rm revproxy || true\n }\n \n+bgrst() {\n+    backgroundstop || true\n+    background || true\n+}\n+","path":"dk2/dockerdev.sh","position":8,"original_position":8,"commit_id":"e2d66cf34e96c626c38eb6e3697645ad668d8d6c","original_commit_id":"e2d66cf34e96c626c38eb6e3697645ad668d8d6c","user":{"login":"koonsies","id":13458770,"avatar_url":"https://avatars.githubusercontent.com/u/13458770?v=3","gravatar_id":"","url":"https://api.github.com/users/koonsies","html_url":"https://github.com/koonsies","followers_url":"https://api.github.com/users/koonsies/followers","following_url":"https://api.github.com/users/koonsies/following{/other_user}","gists_url":"https://api.github.com/users/koonsies/gists{/gist_id}","starred_url":"https://api.github.com/users/koonsies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koonsies/subscriptions","organizations_url":"https://api.github.com/users/koonsies/orgs","repos_url":"https://api.github.com/users/koonsies/repos","events_url":"https://api.github.com/users/koonsies/events{/privacy}","received_events_url":"https://api.github.com/users/koonsies/received_events","type":"User","site_admin":false},"body":"New command for DK2.. Just stop background and start it again. I find myself doing this constantly.","created_at":"2016-06-22T19:35:41Z","updated_at":"2016-06-22T19:35:41Z","html_url":"https://github.com/DirectEmployers/MyJobs/pull/2391#discussion_r68120031","pull_request_url":"https://api.github.com/repos/DirectEmployers/MyJobs/pulls/2391","_links":{"self":{"href":"https://api.github.com/repos/DirectEmployers/MyJobs/pulls/comments/68120031"},"html":{"href":"https://github.com/DirectEmployers/MyJobs/pull/2391#discussion_r68120031"},"pull_request":{"href":"https://api.github.com/repos/DirectEmployers/MyJobs/pulls/2391"}}},"pull_request":{"url":"https://api.github.com/repos/DirectEmployers/MyJobs/pulls/2391","id":74843335,"html_url":"https://github.com/DirectEmployers/MyJobs/pull/2391","diff_url":"https://github.com/DirectEmployers/MyJobs/pull/2391.diff","patch_url":"https://github.com/DirectEmployers/MyJobs/pull/2391.patch","issue_url":"https://api.github.com/repos/DirectEmployers/MyJobs/issues/2391","number":2391,"state":"open","locked":false,"title":"[PD-1842] NUO Record Conversion API","user":{"login":"koonsies","id":13458770,"avatar_url":"https://avatars.githubusercontent.com/u/13458770?v=3","gravatar_id":"","url":"https://api.github.com/users/koonsies","html_url":"https://github.com/koonsies","followers_url":"https://api.github.com/users/koonsies/followers","following_url":"https://api.github.com/users/koonsies/following{/other_user}","gists_url":"https://api.github.com/users/koonsies/gists{/gist_id}","starred_url":"https://api.github.com/users/koonsies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koonsies/subscriptions","organizations_url":"https://api.github.com/users/koonsies/orgs","repos_url":"https://api.github.com/users/koonsies/repos","events_url":"https://api.github.com/users/koonsies/events{/privacy}","received_events_url":"https://api.github.com/users/koonsies/received_events","type":"User","site_admin":false},"body":"## Overview\r\n\r\nThis PR covers the API that will be used to convert non user outreach records into contact, partner, and contactrecord entries. The API accepts a dictionary of data and returns an error object if there are any issues with it.\r\n\r\n## Testing\r\n\r\nTesting is fairly straightforward, but without a front end, it can only be tested via a REST client. Keep in mind, this API requires a user to be logged in and have certain privileges. I used the Postman client for Chrome, along with the Postman Interceptor to snag the session cookie info.\r\n\r\nhttps://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en\r\n\r\nhttps://chrome.google.com/webstore/detail/postman-interceptor/aicmkgpgakddgnaphhhpliifpcfhicfo?hl=en\r\n\r\nOnce you set Postman set up (or if you have a similar way to make REST requests), simply make a POST request to \r\n\r\n`/prm/api/nonuseroutreach/records/convert`\r\n\r\nwith a data object such as... (keep in mind, there are some PKs below that need to be replaced with PKs that exist in your environment) \r\n\r\n```\r\n{\r\n    \"outreachrecord\":{\"pk\":\"101\", \"current_workflow_state\":\"33\"},\r\n\r\n    \"partner\": {\"pk\":\"\", \"name\":\"James B\", \"data_source\":\"email\", \"uri\":\"http://www.example.com\",\r\n    \"tags\":[\"12\", \"68\"], \"approval_status\": \"3\"},\r\n\r\n    \"contact\": {\"pk\":\"\", \"name\":\"Nicole J\", \"email\":\"nicolej@test.com\", \"phone\":\"7651234123\",\r\n    \"locations\":[{\"pk\":\"\", \"address_line_one\":\"\", \"address_line_two\":\"\",\r\n    \"city\":\"Newtoneous\", \"state\":\"AZ\", \"country_code\":\"1\",\r\n    \"label\":\"new place\"}, {\"pk\":\"2\"}], \"tags\":[\"54\", \"12\"], \"notes\": \"long note left here\",\r\n    \"approval_status\":\"3\"},\r\n\r\n    \"contactrecord\": {\"contact_type\":\"phone\", \"location\":\"dining hall\", \"length\":\"10:30\",\r\n    \"subject\":\"new job\", \"date_time\":\"2016-01-01 05:10\", \"notes\":\"dude was chill\",\r\n    \"job_id\":\"10\", \"job_applications\":\"20\", \"job_interviews\":\"10\", \"job_hires\":\"0\",\r\n    \"tags\":[\"10\", \"15\", \"3\"], \"approval_status\":\"1a\"}\r\n}\r\n```\r\n\r\n## Further Work\r\n\r\nSo, this code is pretty large and cumbersome. There is a lot going on here.. Parsing data from three different forms, some of which have subforms (contact->location). I am very open to input on how to simplify this code, but I wanted to get it out there to start the review process before I put any more time into it.","created_at":"2016-06-22T19:34:58Z","updated_at":"2016-06-22T19:35:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"198bde5bfe85a71103cfd8bb047120f327c0266e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DirectEmployers/MyJobs/pulls/2391/commits","review_comments_url":"https://api.github.com/repos/DirectEmployers/MyJobs/pulls/2391/comments","review_comment_url":"https://api.github.com/repos/DirectEmployers/MyJobs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DirectEmployers/MyJobs/issues/2391/comments","statuses_url":"https://api.github.com/repos/DirectEmployers/MyJobs/statuses/e2d66cf34e96c626c38eb6e3697645ad668d8d6c","head":{"label":"DirectEmployers:pd-1842_nuo_record_conversion_api","ref":"pd-1842_nuo_record_conversion_api","sha":"e2d66cf34e96c626c38eb6e3697645ad668d8d6c","user":{"login":"DirectEmployers","id":381171,"avatar_url":"https://avatars.githubusercontent.com/u/381171?v=3","gravatar_id":"","url":"https://api.github.com/users/DirectEmployers","html_url":"https://github.com/DirectEmployers","followers_url":"https://api.github.com/users/DirectEmployers/followers","following_url":"https://api.github.com/users/DirectEmployers/following{/other_user}","gists_url":"https://api.github.com/users/DirectEmployers/gists{/gist_id}","starred_url":"https://api.github.com/users/DirectEmployers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DirectEmployers/subscriptions","organizations_url":"https://api.github.com/users/DirectEmployers/orgs","repos_url":"https://api.github.com/users/DirectEmployers/repos","events_url":"https://api.github.com/users/DirectEmployers/events{/privacy}","received_events_url":"https://api.github.com/users/DirectEmployers/received_events","type":"Organization","site_admin":false},"repo":{"id":2867982,"name":"MyJobs","full_name":"DirectEmployers/MyJobs","owner":{"login":"DirectEmployers","id":381171,"avatar_url":"https://avatars.githubusercontent.com/u/381171?v=3","gravatar_id":"","url":"https://api.github.com/users/DirectEmployers","html_url":"https://github.com/DirectEmployers","followers_url":"https://api.github.com/users/DirectEmployers/followers","following_url":"https://api.github.com/users/DirectEmployers/following{/other_user}","gists_url":"https://api.github.com/users/DirectEmployers/gists{/gist_id}","starred_url":"https://api.github.com/users/DirectEmployers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DirectEmployers/subscriptions","organizations_url":"https://api.github.com/users/DirectEmployers/orgs","repos_url":"https://api.github.com/users/DirectEmployers/repos","events_url":"https://api.github.com/users/DirectEmployers/events{/privacy}","received_events_url":"https://api.github.com/users/DirectEmployers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DirectEmployers/MyJobs","description":"Multi-user website designed to assist job seekers in their search for employment","fork":false,"url":"https://api.github.com/repos/DirectEmployers/MyJobs","forks_url":"https://api.github.com/repos/DirectEmployers/MyJobs/forks","keys_url":"https://api.github.com/repos/DirectEmployers/MyJobs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DirectEmployers/MyJobs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DirectEmployers/MyJobs/teams","hooks_url":"https://api.github.com/repos/DirectEmployers/MyJobs/hooks","issue_events_url":"https://api.github.com/repos/DirectEmployers/MyJobs/issues/events{/number}","events_url":"https://api.github.com/repos/DirectEmployers/MyJobs/events","assignees_url":"https://api.github.com/repos/DirectEmployers/MyJobs/assignees{/user}","branches_url":"https://api.github.com/repos/DirectEmployers/MyJobs/branches{/branch}","tags_url":"https://api.github.com/repos/DirectEmployers/MyJobs/tags","blobs_url":"https://api.github.com/repos/DirectEmployers/MyJobs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DirectEmployers/MyJobs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DirectEmployers/MyJobs/git/refs{/sha}","trees_url":"https://api.github.com/repos/DirectEmployers/MyJobs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DirectEmployers/MyJobs/statuses/{sha}","languages_url":"https://api.github.com/repos/DirectEmployers/MyJobs/languages","stargazers_url":"https://api.github.com/repos/DirectEmployers/MyJobs/stargazers","contributors_url":"https://api.github.com/repos/DirectEmployers/MyJobs/contributors","subscribers_url":"https://api.github.com/repos/DirectEmployers/MyJobs/subscribers","subscription_url":"https://api.github.com/repos/DirectEmployers/MyJobs/subscription","commits_url":"https://api.github.com/repos/DirectEmployers/MyJobs/commits{/sha}","git_commits_url":"https://api.github.com/repos/DirectEmployers/MyJobs/git/commits{/sha}","comments_url":"https://api.github.com/repos/DirectEmployers/MyJobs/comments{/number}","issue_comment_url":"https://api.github.com/repos/DirectEmployers/MyJobs/issues/comments{/number}","contents_url":"https://api.github.com/repos/DirectEmployers/MyJobs/contents/{+path}","compare_url":"https://api.github.com/repos/DirectEmployers/MyJobs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DirectEmployers/MyJobs/merges","archive_url":"https://api.github.com/repos/DirectEmployers/MyJobs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DirectEmployers/MyJobs/downloads","issues_url":"https://api.github.com/repos/DirectEmployers/MyJobs/issues{/number}","pulls_url":"https://api.github.com/repos/DirectEmployers/MyJobs/pulls{/number}","milestones_url":"https://api.github.com/repos/DirectEmployers/MyJobs/milestones{/number}","notifications_url":"https://api.github.com/repos/DirectEmployers/MyJobs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DirectEmployers/MyJobs/labels{/name}","releases_url":"https://api.github.com/repos/DirectEmployers/MyJobs/releases{/id}","deployments_url":"https://api.github.com/repos/DirectEmployers/MyJobs/deployments","created_at":"2011-11-28T15:22:36Z","updated_at":"2016-06-08T17:13:36Z","pushed_at":"2016-06-22T19:34:59Z","git_url":"git://github.com/DirectEmployers/MyJobs.git","ssh_url":"git@github.com:DirectEmployers/MyJobs.git","clone_url":"https://github.com/DirectEmployers/MyJobs.git","svn_url":"https://github.com/DirectEmployers/MyJobs","homepage":"http://my.jobs","size":34967,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":5,"forks":11,"open_issues":5,"watchers":8,"default_branch":"quality-control"}},"base":{"label":"DirectEmployers:quality-control","ref":"quality-control","sha":"0edf357ca75cc4d24bd77a0882a59326a19a94f4","user":{"login":"DirectEmployers","id":381171,"avatar_url":"https://avatars.githubusercontent.com/u/381171?v=3","gravatar_id":"","url":"https://api.github.com/users/DirectEmployers","html_url":"https://github.com/DirectEmployers","followers_url":"https://api.github.com/users/DirectEmployers/followers","following_url":"https://api.github.com/users/DirectEmployers/following{/other_user}","gists_url":"https://api.github.com/users/DirectEmployers/gists{/gist_id}","starred_url":"https://api.github.com/users/DirectEmployers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DirectEmployers/subscriptions","organizations_url":"https://api.github.com/users/DirectEmployers/orgs","repos_url":"https://api.github.com/users/DirectEmployers/repos","events_url":"https://api.github.com/users/DirectEmployers/events{/privacy}","received_events_url":"https://api.github.com/users/DirectEmployers/received_events","type":"Organization","site_admin":false},"repo":{"id":2867982,"name":"MyJobs","full_name":"DirectEmployers/MyJobs","owner":{"login":"DirectEmployers","id":381171,"avatar_url":"https://avatars.githubusercontent.com/u/381171?v=3","gravatar_id":"","url":"https://api.github.com/users/DirectEmployers","html_url":"https://github.com/DirectEmployers","followers_url":"https://api.github.com/users/DirectEmployers/followers","following_url":"https://api.github.com/users/DirectEmployers/following{/other_user}","gists_url":"https://api.github.com/users/DirectEmployers/gists{/gist_id}","starred_url":"https://api.github.com/users/DirectEmployers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DirectEmployers/subscriptions","organizations_url":"https://api.github.com/users/DirectEmployers/orgs","repos_url":"https://api.github.com/users/DirectEmployers/repos","events_url":"https://api.github.com/users/DirectEmployers/events{/privacy}","received_events_url":"https://api.github.com/users/DirectEmployers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DirectEmployers/MyJobs","description":"Multi-user website designed to assist job seekers in their search for employment","fork":false,"url":"https://api.github.com/repos/DirectEmployers/MyJobs","forks_url":"https://api.github.com/repos/DirectEmployers/MyJobs/forks","keys_url":"https://api.github.com/repos/DirectEmployers/MyJobs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DirectEmployers/MyJobs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DirectEmployers/MyJobs/teams","hooks_url":"https://api.github.com/repos/DirectEmployers/MyJobs/hooks","issue_events_url":"https://api.github.com/repos/DirectEmployers/MyJobs/issues/events{/number}","events_url":"https://api.github.com/repos/DirectEmployers/MyJobs/events","assignees_url":"https://api.github.com/repos/DirectEmployers/MyJobs/assignees{/user}","branches_url":"https://api.github.com/repos/DirectEmployers/MyJobs/branches{/branch}","tags_url":"https://api.github.com/repos/DirectEmployers/MyJobs/tags","blobs_url":"https://api.github.com/repos/DirectEmployers/MyJobs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DirectEmployers/MyJobs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DirectEmployers/MyJobs/git/refs{/sha}","trees_url":"https://api.github.com/repos/DirectEmployers/MyJobs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DirectEmployers/MyJobs/statuses/{sha}","languages_url":"https://api.github.com/repos/DirectEmployers/MyJobs/languages","stargazers_url":"https://api.github.com/repos/DirectEmployers/MyJobs/stargazers","contributors_url":"https://api.github.com/repos/DirectEmployers/MyJobs/contributors","subscribers_url":"https://api.github.com/repos/DirectEmployers/MyJobs/subscribers","subscription_url":"https://api.github.com/repos/DirectEmployers/MyJobs/subscription","commits_url":"https://api.github.com/repos/DirectEmployers/MyJobs/commits{/sha}","git_commits_url":"https://api.github.com/repos/DirectEmployers/MyJobs/git/commits{/sha}","comments_url":"https://api.github.com/repos/DirectEmployers/MyJobs/comments{/number}","issue_comment_url":"https://api.github.com/repos/DirectEmployers/MyJobs/issues/comments{/number}","contents_url":"https://api.github.com/repos/DirectEmployers/MyJobs/contents/{+path}","compare_url":"https://api.github.com/repos/DirectEmployers/MyJobs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DirectEmployers/MyJobs/merges","archive_url":"https://api.github.com/repos/DirectEmployers/MyJobs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DirectEmployers/MyJobs/downloads","issues_url":"https://api.github.com/repos/DirectEmployers/MyJobs/issues{/number}","pulls_url":"https://api.github.com/repos/DirectEmployers/MyJobs/pulls{/number}","milestones_url":"https://api.github.com/repos/DirectEmployers/MyJobs/milestones{/number}","notifications_url":"https://api.github.com/repos/DirectEmployers/MyJobs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DirectEmployers/MyJobs/labels{/name}","releases_url":"https://api.github.com/repos/DirectEmployers/MyJobs/releases{/id}","deployments_url":"https://api.github.com/repos/DirectEmployers/MyJobs/deployments","created_at":"2011-11-28T15:22:36Z","updated_at":"2016-06-08T17:13:36Z","pushed_at":"2016-06-22T19:34:59Z","git_url":"git://github.com/DirectEmployers/MyJobs.git","ssh_url":"git@github.com:DirectEmployers/MyJobs.git","clone_url":"https://github.com/DirectEmployers/MyJobs.git","svn_url":"https://github.com/DirectEmployers/MyJobs","homepage":"http://my.jobs","size":34967,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":11,"mirror_url":null,"open_issues_count":5,"forks":11,"open_issues":5,"watchers":8,"default_branch":"quality-control"}},"_links":{"self":{"href":"https://api.github.com/repos/DirectEmployers/MyJobs/pulls/2391"},"html":{"href":"https://github.com/DirectEmployers/MyJobs/pull/2391"},"issue":{"href":"https://api.github.com/repos/DirectEmployers/MyJobs/issues/2391"},"comments":{"href":"https://api.github.com/repos/DirectEmployers/MyJobs/issues/2391/comments"},"review_comments":{"href":"https://api.github.com/repos/DirectEmployers/MyJobs/pulls/2391/comments"},"review_comment":{"href":"https://api.github.com/repos/DirectEmployers/MyJobs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DirectEmployers/MyJobs/pulls/2391/commits"},"statuses":{"href":"https://api.github.com/repos/DirectEmployers/MyJobs/statuses/e2d66cf34e96c626c38eb6e3697645ad668d8d6c"}}}}
{"actor":{"display_login":"koonsies"}}