{"action":"created","comment":{"url":"https://api.github.com/repos/incuna/djangular-rest-framework/pulls/comments/67143558","id":67143558,"diff_hunk":"@@ -0,0 +1,54 @@\n+/* global describe, it, expect, module, inject, beforeEach */\n+\n+(function (_) {\n+\n+    'use strict';\n+\n+    describe('Module filter', function () {\n+        var displayNameFilter;\n+\n+        beforeEach(module('drf-display-name-filter'));\n+\n+        beforeEach(function () {\n+\n+            inject(function (_drfDisplayNameFilter_) {\n+                displayNameFilter = _drfDisplayNameFilter_;\n+\n+                this.mockSelected = 'choice 1';\n+                // jscs:disable requireCamelCaseOrUpperCaseIdentifiers\n+                /* jshint camelcase: false  */\n+                this.mockData = [\n+                    {\n+                        value: 'choice 1',\n+                        display_name: 'Choice 1'\n+                    },\n+                    {\n+                        value: 'choice 2',\n+                        display_name: 'Choice 2'\n+                    },\n+                    {\n+                        value: 'choice 3',\n+                        display_name: 'Choice 3'\n+                    }\n+                ];\n+                // jscs:enable requireCamelCaseOrUpperCaseIdentifiers\n+                /* jshint camelcase: true */\n+            });\n+\n+        });\n+\n+        it('should return origional data when it has not been found', function () {","path":"tests/unit/display-name-filter-spec.js","position":40,"original_position":40,"commit_id":"6582f0c3b2708396aecab476e6d003ed8e4d9a0a","original_commit_id":"6582f0c3b2708396aecab476e6d003ed8e4d9a0a","user":{"login":"wytrych","id":10600101,"avatar_url":"https://avatars.githubusercontent.com/u/10600101?v=3","gravatar_id":"","url":"https://api.github.com/users/wytrych","html_url":"https://github.com/wytrych","followers_url":"https://api.github.com/users/wytrych/followers","following_url":"https://api.github.com/users/wytrych/following{/other_user}","gists_url":"https://api.github.com/users/wytrych/gists{/gist_id}","starred_url":"https://api.github.com/users/wytrych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wytrych/subscriptions","organizations_url":"https://api.github.com/users/wytrych/orgs","repos_url":"https://api.github.com/users/wytrych/repos","events_url":"https://api.github.com/users/wytrych/events{/privacy}","received_events_url":"https://api.github.com/users/wytrych/received_events","type":"User","site_admin":false},"body":"original","created_at":"2016-06-15T11:20:12Z","updated_at":"2016-06-15T11:20:12Z","html_url":"https://github.com/incuna/djangular-rest-framework/pull/20#discussion_r67143558","pull_request_url":"https://api.github.com/repos/incuna/djangular-rest-framework/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/incuna/djangular-rest-framework/pulls/comments/67143558"},"html":{"href":"https://github.com/incuna/djangular-rest-framework/pull/20#discussion_r67143558"},"pull_request":{"href":"https://api.github.com/repos/incuna/djangular-rest-framework/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/incuna/djangular-rest-framework/pulls/20","id":73893632,"html_url":"https://github.com/incuna/djangular-rest-framework/pull/20","diff_url":"https://github.com/incuna/djangular-rest-framework/pull/20.diff","patch_url":"https://github.com/incuna/djangular-rest-framework/pull/20.patch","issue_url":"https://api.github.com/repos/incuna/djangular-rest-framework/issues/20","number":20,"state":"open","locked":false,"title":"Add filter","user":{"login":"Minglee01","id":10808373,"avatar_url":"https://avatars.githubusercontent.com/u/10808373?v=3","gravatar_id":"","url":"https://api.github.com/users/Minglee01","html_url":"https://github.com/Minglee01","followers_url":"https://api.github.com/users/Minglee01/followers","following_url":"https://api.github.com/users/Minglee01/following{/other_user}","gists_url":"https://api.github.com/users/Minglee01/gists{/gist_id}","starred_url":"https://api.github.com/users/Minglee01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Minglee01/subscriptions","organizations_url":"https://api.github.com/users/Minglee01/orgs","repos_url":"https://api.github.com/users/Minglee01/repos","events_url":"https://api.github.com/users/Minglee01/events{/privacy}","received_events_url":"https://api.github.com/users/Minglee01/received_events","type":"User","site_admin":false},"body":"@incuna/js add filter function to return the display name.","created_at":"2016-06-15T11:17:20Z","updated_at":"2016-06-15T11:20:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"32312a1351c2faa7c5856c4b460170bb1efe882d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/incuna/djangular-rest-framework/pulls/20/commits","review_comments_url":"https://api.github.com/repos/incuna/djangular-rest-framework/pulls/20/comments","review_comment_url":"https://api.github.com/repos/incuna/djangular-rest-framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/incuna/djangular-rest-framework/issues/20/comments","statuses_url":"https://api.github.com/repos/incuna/djangular-rest-framework/statuses/6582f0c3b2708396aecab476e6d003ed8e4d9a0a","head":{"label":"incuna:add-filter","ref":"add-filter","sha":"6582f0c3b2708396aecab476e6d003ed8e4d9a0a","user":{"login":"incuna","id":55510,"avatar_url":"https://avatars.githubusercontent.com/u/55510?v=3","gravatar_id":"","url":"https://api.github.com/users/incuna","html_url":"https://github.com/incuna","followers_url":"https://api.github.com/users/incuna/followers","following_url":"https://api.github.com/users/incuna/following{/other_user}","gists_url":"https://api.github.com/users/incuna/gists{/gist_id}","starred_url":"https://api.github.com/users/incuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incuna/subscriptions","organizations_url":"https://api.github.com/users/incuna/orgs","repos_url":"https://api.github.com/users/incuna/repos","events_url":"https://api.github.com/users/incuna/events{/privacy}","received_events_url":"https://api.github.com/users/incuna/received_events","type":"Organization","site_admin":false},"repo":{"id":16071560,"name":"djangular-rest-framework","full_name":"incuna/djangular-rest-framework","owner":{"login":"incuna","id":55510,"avatar_url":"https://avatars.githubusercontent.com/u/55510?v=3","gravatar_id":"","url":"https://api.github.com/users/incuna","html_url":"https://github.com/incuna","followers_url":"https://api.github.com/users/incuna/followers","following_url":"https://api.github.com/users/incuna/following{/other_user}","gists_url":"https://api.github.com/users/incuna/gists{/gist_id}","starred_url":"https://api.github.com/users/incuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incuna/subscriptions","organizations_url":"https://api.github.com/users/incuna/orgs","repos_url":"https://api.github.com/users/incuna/repos","events_url":"https://api.github.com/users/incuna/events{/privacy}","received_events_url":"https://api.github.com/users/incuna/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/incuna/djangular-rest-framework","description":"AngularJS interface for Django Rest Framework (DRF)","fork":false,"url":"https://api.github.com/repos/incuna/djangular-rest-framework","forks_url":"https://api.github.com/repos/incuna/djangular-rest-framework/forks","keys_url":"https://api.github.com/repos/incuna/djangular-rest-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/incuna/djangular-rest-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/incuna/djangular-rest-framework/teams","hooks_url":"https://api.github.com/repos/incuna/djangular-rest-framework/hooks","issue_events_url":"https://api.github.com/repos/incuna/djangular-rest-framework/issues/events{/number}","events_url":"https://api.github.com/repos/incuna/djangular-rest-framework/events","assignees_url":"https://api.github.com/repos/incuna/djangular-rest-framework/assignees{/user}","branches_url":"https://api.github.com/repos/incuna/djangular-rest-framework/branches{/branch}","tags_url":"https://api.github.com/repos/incuna/djangular-rest-framework/tags","blobs_url":"https://api.github.com/repos/incuna/djangular-rest-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/incuna/djangular-rest-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/incuna/djangular-rest-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/incuna/djangular-rest-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/incuna/djangular-rest-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/incuna/djangular-rest-framework/languages","stargazers_url":"https://api.github.com/repos/incuna/djangular-rest-framework/stargazers","contributors_url":"https://api.github.com/repos/incuna/djangular-rest-framework/contributors","subscribers_url":"https://api.github.com/repos/incuna/djangular-rest-framework/subscribers","subscription_url":"https://api.github.com/repos/incuna/djangular-rest-framework/subscription","commits_url":"https://api.github.com/repos/incuna/djangular-rest-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/incuna/djangular-rest-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/incuna/djangular-rest-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/incuna/djangular-rest-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/incuna/djangular-rest-framework/contents/{+path}","compare_url":"https://api.github.com/repos/incuna/djangular-rest-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/incuna/djangular-rest-framework/merges","archive_url":"https://api.github.com/repos/incuna/djangular-rest-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/incuna/djangular-rest-framework/downloads","issues_url":"https://api.github.com/repos/incuna/djangular-rest-framework/issues{/number}","pulls_url":"https://api.github.com/repos/incuna/djangular-rest-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/incuna/djangular-rest-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/incuna/djangular-rest-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/incuna/djangular-rest-framework/labels{/name}","releases_url":"https://api.github.com/repos/incuna/djangular-rest-framework/releases{/id}","deployments_url":"https://api.github.com/repos/incuna/djangular-rest-framework/deployments","created_at":"2014-01-20T13:35:54Z","updated_at":"2016-04-07T13:57:16Z","pushed_at":"2016-06-15T11:17:20Z","git_url":"git://github.com/incuna/djangular-rest-framework.git","ssh_url":"git@github.com:incuna/djangular-rest-framework.git","clone_url":"https://github.com/incuna/djangular-rest-framework.git","svn_url":"https://github.com/incuna/djangular-rest-framework","homepage":"","size":67,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":4,"default_branch":"master"}},"base":{"label":"incuna:master","ref":"master","sha":"7f0496f41126384c139645371013aaec2092236b","user":{"login":"incuna","id":55510,"avatar_url":"https://avatars.githubusercontent.com/u/55510?v=3","gravatar_id":"","url":"https://api.github.com/users/incuna","html_url":"https://github.com/incuna","followers_url":"https://api.github.com/users/incuna/followers","following_url":"https://api.github.com/users/incuna/following{/other_user}","gists_url":"https://api.github.com/users/incuna/gists{/gist_id}","starred_url":"https://api.github.com/users/incuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incuna/subscriptions","organizations_url":"https://api.github.com/users/incuna/orgs","repos_url":"https://api.github.com/users/incuna/repos","events_url":"https://api.github.com/users/incuna/events{/privacy}","received_events_url":"https://api.github.com/users/incuna/received_events","type":"Organization","site_admin":false},"repo":{"id":16071560,"name":"djangular-rest-framework","full_name":"incuna/djangular-rest-framework","owner":{"login":"incuna","id":55510,"avatar_url":"https://avatars.githubusercontent.com/u/55510?v=3","gravatar_id":"","url":"https://api.github.com/users/incuna","html_url":"https://github.com/incuna","followers_url":"https://api.github.com/users/incuna/followers","following_url":"https://api.github.com/users/incuna/following{/other_user}","gists_url":"https://api.github.com/users/incuna/gists{/gist_id}","starred_url":"https://api.github.com/users/incuna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/incuna/subscriptions","organizations_url":"https://api.github.com/users/incuna/orgs","repos_url":"https://api.github.com/users/incuna/repos","events_url":"https://api.github.com/users/incuna/events{/privacy}","received_events_url":"https://api.github.com/users/incuna/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/incuna/djangular-rest-framework","description":"AngularJS interface for Django Rest Framework (DRF)","fork":false,"url":"https://api.github.com/repos/incuna/djangular-rest-framework","forks_url":"https://api.github.com/repos/incuna/djangular-rest-framework/forks","keys_url":"https://api.github.com/repos/incuna/djangular-rest-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/incuna/djangular-rest-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/incuna/djangular-rest-framework/teams","hooks_url":"https://api.github.com/repos/incuna/djangular-rest-framework/hooks","issue_events_url":"https://api.github.com/repos/incuna/djangular-rest-framework/issues/events{/number}","events_url":"https://api.github.com/repos/incuna/djangular-rest-framework/events","assignees_url":"https://api.github.com/repos/incuna/djangular-rest-framework/assignees{/user}","branches_url":"https://api.github.com/repos/incuna/djangular-rest-framework/branches{/branch}","tags_url":"https://api.github.com/repos/incuna/djangular-rest-framework/tags","blobs_url":"https://api.github.com/repos/incuna/djangular-rest-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/incuna/djangular-rest-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/incuna/djangular-rest-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/incuna/djangular-rest-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/incuna/djangular-rest-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/incuna/djangular-rest-framework/languages","stargazers_url":"https://api.github.com/repos/incuna/djangular-rest-framework/stargazers","contributors_url":"https://api.github.com/repos/incuna/djangular-rest-framework/contributors","subscribers_url":"https://api.github.com/repos/incuna/djangular-rest-framework/subscribers","subscription_url":"https://api.github.com/repos/incuna/djangular-rest-framework/subscription","commits_url":"https://api.github.com/repos/incuna/djangular-rest-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/incuna/djangular-rest-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/incuna/djangular-rest-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/incuna/djangular-rest-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/incuna/djangular-rest-framework/contents/{+path}","compare_url":"https://api.github.com/repos/incuna/djangular-rest-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/incuna/djangular-rest-framework/merges","archive_url":"https://api.github.com/repos/incuna/djangular-rest-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/incuna/djangular-rest-framework/downloads","issues_url":"https://api.github.com/repos/incuna/djangular-rest-framework/issues{/number}","pulls_url":"https://api.github.com/repos/incuna/djangular-rest-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/incuna/djangular-rest-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/incuna/djangular-rest-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/incuna/djangular-rest-framework/labels{/name}","releases_url":"https://api.github.com/repos/incuna/djangular-rest-framework/releases{/id}","deployments_url":"https://api.github.com/repos/incuna/djangular-rest-framework/deployments","created_at":"2014-01-20T13:35:54Z","updated_at":"2016-04-07T13:57:16Z","pushed_at":"2016-06-15T11:17:20Z","git_url":"git://github.com/incuna/djangular-rest-framework.git","ssh_url":"git@github.com:incuna/djangular-rest-framework.git","clone_url":"https://github.com/incuna/djangular-rest-framework.git","svn_url":"https://github.com/incuna/djangular-rest-framework","homepage":"","size":67,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/incuna/djangular-rest-framework/pulls/20"},"html":{"href":"https://github.com/incuna/djangular-rest-framework/pull/20"},"issue":{"href":"https://api.github.com/repos/incuna/djangular-rest-framework/issues/20"},"comments":{"href":"https://api.github.com/repos/incuna/djangular-rest-framework/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/incuna/djangular-rest-framework/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/incuna/djangular-rest-framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/incuna/djangular-rest-framework/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/incuna/djangular-rest-framework/statuses/6582f0c3b2708396aecab476e6d003ed8e4d9a0a"}}}}
{"actor":{"display_login":"wytrych"}}