{"action":"created","comment":{"url":"https://api.github.com/repos/ctsit/qipr_approver/pulls/comments/82829709","pull_request_review_id":3709149,"id":82829709,"diff_hunk":"@@ -0,0 +1,30 @@\n+from django.http import JsonResponse, HttpResponse, QueryDict\n+from approver.utils import get_model_from_string\n+\n+def tags(request):\n+    if request.method == 'POST':\n+        #Get the string passed back and search for the right data\n+        search_value = request.POST.get('tagString')\n+        filter_field = request.POST.get('filter_field')\n+        exclude_tags = request.POST.get('exclude_tags').split(\";\")\n+        model_name = request.POST.get('model_name')\n+        model = get_model_from_string(model_name)\n+\n+        #call out and search the model database for values that are similar to passed string\n+        ten_matches = list_top_ten_matches(model, search_value, filter_field, exclude_tags)\n+        listv=[]\n+        for matches in ten_matches:\n+            listv.append(matches.get(filter_field))\n+\n+        return JsonResponse(listv, safe=False)","path":"qipr_approver/approver/api/tags.py","position":19,"original_position":19,"commit_id":"768851d893b5027f20fc1dd70b2dbf4d548812b8","original_commit_id":"768851d893b5027f20fc1dd70b2dbf4d548812b8","user":{"login":"PFWhite","id":8636934,"avatar_url":"https://avatars.githubusercontent.com/u/8636934?v=3","gravatar_id":"","url":"https://api.github.com/users/PFWhite","html_url":"https://github.com/PFWhite","followers_url":"https://api.github.com/users/PFWhite/followers","following_url":"https://api.github.com/users/PFWhite/following{/other_user}","gists_url":"https://api.github.com/users/PFWhite/gists{/gist_id}","starred_url":"https://api.github.com/users/PFWhite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PFWhite/subscriptions","organizations_url":"https://api.github.com/users/PFWhite/orgs","repos_url":"https://api.github.com/users/PFWhite/repos","events_url":"https://api.github.com/users/PFWhite/events{/privacy}","received_events_url":"https://api.github.com/users/PFWhite/received_events","type":"User","site_admin":false},"body":"Whats this safe parameter for?","created_at":"2016-10-11T16:11:05Z","updated_at":"2016-10-11T16:34:16Z","html_url":"https://github.com/ctsit/qipr_approver/pull/87#discussion_r82829709","pull_request_url":"https://api.github.com/repos/ctsit/qipr_approver/pulls/87","_links":{"self":{"href":"https://api.github.com/repos/ctsit/qipr_approver/pulls/comments/82829709"},"html":{"href":"https://github.com/ctsit/qipr_approver/pull/87#discussion_r82829709"},"pull_request":{"href":"https://api.github.com/repos/ctsit/qipr_approver/pulls/87"}}},"pull_request":{"url":"https://api.github.com/repos/ctsit/qipr_approver/pulls/87","id":88852902,"html_url":"https://github.com/ctsit/qipr_approver/pull/87","diff_url":"https://github.com/ctsit/qipr_approver/pull/87.diff","patch_url":"https://github.com/ctsit/qipr_approver/pull/87.patch","issue_url":"https://api.github.com/repos/ctsit/qipr_approver/issues/87","number":87,"state":"open","locked":false,"title":"Feature/mm tags revision","user":{"login":"DevMattM","id":18493126,"avatar_url":"https://avatars.githubusercontent.com/u/18493126?v=3","gravatar_id":"","url":"https://api.github.com/users/DevMattM","html_url":"https://github.com/DevMattM","followers_url":"https://api.github.com/users/DevMattM/followers","following_url":"https://api.github.com/users/DevMattM/following{/other_user}","gists_url":"https://api.github.com/users/DevMattM/gists{/gist_id}","starred_url":"https://api.github.com/users/DevMattM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevMattM/subscriptions","organizations_url":"https://api.github.com/users/DevMattM/orgs","repos_url":"https://api.github.com/users/DevMattM/repos","events_url":"https://api.github.com/users/DevMattM/events{/privacy}","received_events_url":"https://api.github.com/users/DevMattM/received_events","type":"User","site_admin":false},"body":"Still need to do some work, but a pull request to start code review","created_at":"2016-10-11T15:19:11Z","updated_at":"2016-10-11T16:34:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"afefa207f051677ef6ae96ea1b4f928ca9e91de4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ctsit/qipr_approver/pulls/87/commits","review_comments_url":"https://api.github.com/repos/ctsit/qipr_approver/pulls/87/comments","review_comment_url":"https://api.github.com/repos/ctsit/qipr_approver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ctsit/qipr_approver/issues/87/comments","statuses_url":"https://api.github.com/repos/ctsit/qipr_approver/statuses/768851d893b5027f20fc1dd70b2dbf4d548812b8","head":{"label":"DevMattM:feature/MM_tags_revision","ref":"feature/MM_tags_revision","sha":"768851d893b5027f20fc1dd70b2dbf4d548812b8","user":{"login":"DevMattM","id":18493126,"avatar_url":"https://avatars.githubusercontent.com/u/18493126?v=3","gravatar_id":"","url":"https://api.github.com/users/DevMattM","html_url":"https://github.com/DevMattM","followers_url":"https://api.github.com/users/DevMattM/followers","following_url":"https://api.github.com/users/DevMattM/following{/other_user}","gists_url":"https://api.github.com/users/DevMattM/gists{/gist_id}","starred_url":"https://api.github.com/users/DevMattM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevMattM/subscriptions","organizations_url":"https://api.github.com/users/DevMattM/orgs","repos_url":"https://api.github.com/users/DevMattM/repos","events_url":"https://api.github.com/users/DevMattM/events{/privacy}","received_events_url":"https://api.github.com/users/DevMattM/received_events","type":"User","site_admin":false},"repo":{"id":64253328,"name":"qipr_approver","full_name":"DevMattM/qipr_approver","owner":{"login":"DevMattM","id":18493126,"avatar_url":"https://avatars.githubusercontent.com/u/18493126?v=3","gravatar_id":"","url":"https://api.github.com/users/DevMattM","html_url":"https://github.com/DevMattM","followers_url":"https://api.github.com/users/DevMattM/followers","following_url":"https://api.github.com/users/DevMattM/following{/other_user}","gists_url":"https://api.github.com/users/DevMattM/gists{/gist_id}","starred_url":"https://api.github.com/users/DevMattM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevMattM/subscriptions","organizations_url":"https://api.github.com/users/DevMattM/orgs","repos_url":"https://api.github.com/users/DevMattM/repos","events_url":"https://api.github.com/users/DevMattM/events{/privacy}","received_events_url":"https://api.github.com/users/DevMattM/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DevMattM/qipr_approver","description":"Quality Improvement Project Registry Approver ","fork":true,"url":"https://api.github.com/repos/DevMattM/qipr_approver","forks_url":"https://api.github.com/repos/DevMattM/qipr_approver/forks","keys_url":"https://api.github.com/repos/DevMattM/qipr_approver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DevMattM/qipr_approver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DevMattM/qipr_approver/teams","hooks_url":"https://api.github.com/repos/DevMattM/qipr_approver/hooks","issue_events_url":"https://api.github.com/repos/DevMattM/qipr_approver/issues/events{/number}","events_url":"https://api.github.com/repos/DevMattM/qipr_approver/events","assignees_url":"https://api.github.com/repos/DevMattM/qipr_approver/assignees{/user}","branches_url":"https://api.github.com/repos/DevMattM/qipr_approver/branches{/branch}","tags_url":"https://api.github.com/repos/DevMattM/qipr_approver/tags","blobs_url":"https://api.github.com/repos/DevMattM/qipr_approver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DevMattM/qipr_approver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DevMattM/qipr_approver/git/refs{/sha}","trees_url":"https://api.github.com/repos/DevMattM/qipr_approver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DevMattM/qipr_approver/statuses/{sha}","languages_url":"https://api.github.com/repos/DevMattM/qipr_approver/languages","stargazers_url":"https://api.github.com/repos/DevMattM/qipr_approver/stargazers","contributors_url":"https://api.github.com/repos/DevMattM/qipr_approver/contributors","subscribers_url":"https://api.github.com/repos/DevMattM/qipr_approver/subscribers","subscription_url":"https://api.github.com/repos/DevMattM/qipr_approver/subscription","commits_url":"https://api.github.com/repos/DevMattM/qipr_approver/commits{/sha}","git_commits_url":"https://api.github.com/repos/DevMattM/qipr_approver/git/commits{/sha}","comments_url":"https://api.github.com/repos/DevMattM/qipr_approver/comments{/number}","issue_comment_url":"https://api.github.com/repos/DevMattM/qipr_approver/issues/comments{/number}","contents_url":"https://api.github.com/repos/DevMattM/qipr_approver/contents/{+path}","compare_url":"https://api.github.com/repos/DevMattM/qipr_approver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DevMattM/qipr_approver/merges","archive_url":"https://api.github.com/repos/DevMattM/qipr_approver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DevMattM/qipr_approver/downloads","issues_url":"https://api.github.com/repos/DevMattM/qipr_approver/issues{/number}","pulls_url":"https://api.github.com/repos/DevMattM/qipr_approver/pulls{/number}","milestones_url":"https://api.github.com/repos/DevMattM/qipr_approver/milestones{/number}","notifications_url":"https://api.github.com/repos/DevMattM/qipr_approver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DevMattM/qipr_approver/labels{/name}","releases_url":"https://api.github.com/repos/DevMattM/qipr_approver/releases{/id}","deployments_url":"https://api.github.com/repos/DevMattM/qipr_approver/deployments","created_at":"2016-07-26T20:45:04Z","updated_at":"2016-09-21T13:21:41Z","pushed_at":"2016-10-11T12:20:38Z","git_url":"git://github.com/DevMattM/qipr_approver.git","ssh_url":"git@github.com:DevMattM/qipr_approver.git","clone_url":"https://github.com/DevMattM/qipr_approver.git","svn_url":"https://github.com/DevMattM/qipr_approver","homepage":null,"size":10496,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ctsit:develop","ref":"develop","sha":"f457b02707f94147fd03a1a545e7bcfc596db55a","user":{"login":"ctsit","id":6988716,"avatar_url":"https://avatars.githubusercontent.com/u/6988716?v=3","gravatar_id":"","url":"https://api.github.com/users/ctsit","html_url":"https://github.com/ctsit","followers_url":"https://api.github.com/users/ctsit/followers","following_url":"https://api.github.com/users/ctsit/following{/other_user}","gists_url":"https://api.github.com/users/ctsit/gists{/gist_id}","starred_url":"https://api.github.com/users/ctsit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctsit/subscriptions","organizations_url":"https://api.github.com/users/ctsit/orgs","repos_url":"https://api.github.com/users/ctsit/repos","events_url":"https://api.github.com/users/ctsit/events{/privacy}","received_events_url":"https://api.github.com/users/ctsit/received_events","type":"Organization","site_admin":false},"repo":{"id":63101692,"name":"qipr_approver","full_name":"ctsit/qipr_approver","owner":{"login":"ctsit","id":6988716,"avatar_url":"https://avatars.githubusercontent.com/u/6988716?v=3","gravatar_id":"","url":"https://api.github.com/users/ctsit","html_url":"https://github.com/ctsit","followers_url":"https://api.github.com/users/ctsit/followers","following_url":"https://api.github.com/users/ctsit/following{/other_user}","gists_url":"https://api.github.com/users/ctsit/gists{/gist_id}","starred_url":"https://api.github.com/users/ctsit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctsit/subscriptions","organizations_url":"https://api.github.com/users/ctsit/orgs","repos_url":"https://api.github.com/users/ctsit/repos","events_url":"https://api.github.com/users/ctsit/events{/privacy}","received_events_url":"https://api.github.com/users/ctsit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ctsit/qipr_approver","description":"Quality Improvement Project Registry Approver ","fork":false,"url":"https://api.github.com/repos/ctsit/qipr_approver","forks_url":"https://api.github.com/repos/ctsit/qipr_approver/forks","keys_url":"https://api.github.com/repos/ctsit/qipr_approver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ctsit/qipr_approver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ctsit/qipr_approver/teams","hooks_url":"https://api.github.com/repos/ctsit/qipr_approver/hooks","issue_events_url":"https://api.github.com/repos/ctsit/qipr_approver/issues/events{/number}","events_url":"https://api.github.com/repos/ctsit/qipr_approver/events","assignees_url":"https://api.github.com/repos/ctsit/qipr_approver/assignees{/user}","branches_url":"https://api.github.com/repos/ctsit/qipr_approver/branches{/branch}","tags_url":"https://api.github.com/repos/ctsit/qipr_approver/tags","blobs_url":"https://api.github.com/repos/ctsit/qipr_approver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ctsit/qipr_approver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ctsit/qipr_approver/git/refs{/sha}","trees_url":"https://api.github.com/repos/ctsit/qipr_approver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ctsit/qipr_approver/statuses/{sha}","languages_url":"https://api.github.com/repos/ctsit/qipr_approver/languages","stargazers_url":"https://api.github.com/repos/ctsit/qipr_approver/stargazers","contributors_url":"https://api.github.com/repos/ctsit/qipr_approver/contributors","subscribers_url":"https://api.github.com/repos/ctsit/qipr_approver/subscribers","subscription_url":"https://api.github.com/repos/ctsit/qipr_approver/subscription","commits_url":"https://api.github.com/repos/ctsit/qipr_approver/commits{/sha}","git_commits_url":"https://api.github.com/repos/ctsit/qipr_approver/git/commits{/sha}","comments_url":"https://api.github.com/repos/ctsit/qipr_approver/comments{/number}","issue_comment_url":"https://api.github.com/repos/ctsit/qipr_approver/issues/comments{/number}","contents_url":"https://api.github.com/repos/ctsit/qipr_approver/contents/{+path}","compare_url":"https://api.github.com/repos/ctsit/qipr_approver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ctsit/qipr_approver/merges","archive_url":"https://api.github.com/repos/ctsit/qipr_approver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ctsit/qipr_approver/downloads","issues_url":"https://api.github.com/repos/ctsit/qipr_approver/issues{/number}","pulls_url":"https://api.github.com/repos/ctsit/qipr_approver/pulls{/number}","milestones_url":"https://api.github.com/repos/ctsit/qipr_approver/milestones{/number}","notifications_url":"https://api.github.com/repos/ctsit/qipr_approver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ctsit/qipr_approver/labels{/name}","releases_url":"https://api.github.com/repos/ctsit/qipr_approver/releases{/id}","deployments_url":"https://api.github.com/repos/ctsit/qipr_approver/deployments","created_at":"2016-07-11T20:57:57Z","updated_at":"2016-08-18T14:55:44Z","pushed_at":"2016-10-11T15:19:11Z","git_url":"git://github.com/ctsit/qipr_approver.git","ssh_url":"git@github.com:ctsit/qipr_approver.git","clone_url":"https://github.com/ctsit/qipr_approver.git","svn_url":"https://github.com/ctsit/qipr_approver","homepage":null,"size":83489,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":15,"forks":8,"open_issues":15,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ctsit/qipr_approver/pulls/87"},"html":{"href":"https://github.com/ctsit/qipr_approver/pull/87"},"issue":{"href":"https://api.github.com/repos/ctsit/qipr_approver/issues/87"},"comments":{"href":"https://api.github.com/repos/ctsit/qipr_approver/issues/87/comments"},"review_comments":{"href":"https://api.github.com/repos/ctsit/qipr_approver/pulls/87/comments"},"review_comment":{"href":"https://api.github.com/repos/ctsit/qipr_approver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ctsit/qipr_approver/pulls/87/commits"},"statuses":{"href":"https://api.github.com/repos/ctsit/qipr_approver/statuses/768851d893b5027f20fc1dd70b2dbf4d548812b8"}}}}
{"actor":{"display_login":"PFWhite"}}