{"action":"created","comment":{"url":"https://api.github.com/repos/clio/lib-themisui/pulls/comments/60511967","id":60511967,"diff_hunk":"@@ -0,0 +1,40 @@\n+angular.module \"ThemisComponents\"\n+.directive \"thCustomFilters\", ->\n+  restrict: \"E\"\n+  scope:\n+    options: \"=\"\n+  bindToController: true\n+  controllerAs: \"thCustomFilters\"\n+  template: require \"./thCustomFilters.template.html\"\n+  controller: ->\n+    unless @options?\n+      throw new Error \"thCustomFilters: must specify options.\"\n+\n+    {\n+      filterSet\n+      customFilterTypes\n+    } = @options\n+\n+    unless filterSet instanceof Array\n+      throw new Error \"thStaticFilters: must specify 'filterSet' attribute.\"\n+\n+    unless customFilterTypes instanceof Array\n+      throw new Error \"thCustomFilters: filter options not valid.\"\n+\n+    @filterSet = filterSet\n+    @customFilterRows = []\n+    nextIdentifer = 0\n+\n+    @addCustomFilterRow = =>\n+      @customFilterRows.push nextIdentifer\n+      nextIdentifer = nextIdentifer + 1\n+\n+    @removeCustomFilterRow = (identifer) =>\n+      index = @customFilterRows.indexOf parseInt(identifer, 10)\n+      unless index > -1\n+        throw new Error \"thCustomFilters: Cannot find custom filter\" + \\","path":"themis_components/thFilter/thCustomFilters.directive.coffee","position":35,"original_position":35,"commit_id":"f1d68af3eac9b5a9395f3079bdc97f0fc686d80d","original_commit_id":"f1d68af3eac9b5a9395f3079bdc97f0fc686d80d","user":{"login":"JeffMarvin","id":6612596,"avatar_url":"https://avatars.githubusercontent.com/u/6612596?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffMarvin","html_url":"https://github.com/JeffMarvin","followers_url":"https://api.github.com/users/JeffMarvin/followers","following_url":"https://api.github.com/users/JeffMarvin/following{/other_user}","gists_url":"https://api.github.com/users/JeffMarvin/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffMarvin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffMarvin/subscriptions","organizations_url":"https://api.github.com/users/JeffMarvin/orgs","repos_url":"https://api.github.com/users/JeffMarvin/repos","events_url":"https://api.github.com/users/JeffMarvin/events{/privacy}","received_events_url":"https://api.github.com/users/JeffMarvin/received_events","type":"User","site_admin":false},"body":"I like all the error checking you are doing!","created_at":"2016-04-21T00:50:39Z","updated_at":"2016-04-21T00:50:39Z","html_url":"https://github.com/clio/lib-themisui/pull/120#discussion_r60511967","pull_request_url":"https://api.github.com/repos/clio/lib-themisui/pulls/120","_links":{"self":{"href":"https://api.github.com/repos/clio/lib-themisui/pulls/comments/60511967"},"html":{"href":"https://github.com/clio/lib-themisui/pull/120#discussion_r60511967"},"pull_request":{"href":"https://api.github.com/repos/clio/lib-themisui/pulls/120"}}},"pull_request":{"url":"https://api.github.com/repos/clio/lib-themisui/pulls/120","id":66060918,"html_url":"https://github.com/clio/lib-themisui/pull/120","diff_url":"https://github.com/clio/lib-themisui/pull/120.diff","patch_url":"https://github.com/clio/lib-themisui/pull/120.patch","issue_url":"https://api.github.com/repos/clio/lib-themisui/issues/120","number":120,"state":"open","locked":false,"title":"Clio 33980 th filter","user":{"login":"dtomalty","id":14664303,"avatar_url":"https://avatars.githubusercontent.com/u/14664303?v=3","gravatar_id":"","url":"https://api.github.com/users/dtomalty","html_url":"https://github.com/dtomalty","followers_url":"https://api.github.com/users/dtomalty/followers","following_url":"https://api.github.com/users/dtomalty/following{/other_user}","gists_url":"https://api.github.com/users/dtomalty/gists{/gist_id}","starred_url":"https://api.github.com/users/dtomalty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtomalty/subscriptions","organizations_url":"https://api.github.com/users/dtomalty/orgs","repos_url":"https://api.github.com/users/dtomalty/repos","events_url":"https://api.github.com/users/dtomalty/events{/privacy}","received_events_url":"https://api.github.com/users/dtomalty/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-11T20:56:11Z","updated_at":"2016-04-21T00:50:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"73b54427dfa286cf407c8f8c8793b407c098eeca","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/clio/lib-themisui/pulls/120/commits","review_comments_url":"https://api.github.com/repos/clio/lib-themisui/pulls/120/comments","review_comment_url":"https://api.github.com/repos/clio/lib-themisui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/clio/lib-themisui/issues/120/comments","statuses_url":"https://api.github.com/repos/clio/lib-themisui/statuses/f1d68af3eac9b5a9395f3079bdc97f0fc686d80d","head":{"label":"dtomalty:clio-33980-th-filter","ref":"clio-33980-th-filter","sha":"f1d68af3eac9b5a9395f3079bdc97f0fc686d80d","user":{"login":"dtomalty","id":14664303,"avatar_url":"https://avatars.githubusercontent.com/u/14664303?v=3","gravatar_id":"","url":"https://api.github.com/users/dtomalty","html_url":"https://github.com/dtomalty","followers_url":"https://api.github.com/users/dtomalty/followers","following_url":"https://api.github.com/users/dtomalty/following{/other_user}","gists_url":"https://api.github.com/users/dtomalty/gists{/gist_id}","starred_url":"https://api.github.com/users/dtomalty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtomalty/subscriptions","organizations_url":"https://api.github.com/users/dtomalty/orgs","repos_url":"https://api.github.com/users/dtomalty/repos","events_url":"https://api.github.com/users/dtomalty/events{/privacy}","received_events_url":"https://api.github.com/users/dtomalty/received_events","type":"User","site_admin":false},"repo":{"id":46951447,"name":"lib-themisui","full_name":"dtomalty/lib-themisui","owner":{"login":"dtomalty","id":14664303,"avatar_url":"https://avatars.githubusercontent.com/u/14664303?v=3","gravatar_id":"","url":"https://api.github.com/users/dtomalty","html_url":"https://github.com/dtomalty","followers_url":"https://api.github.com/users/dtomalty/followers","following_url":"https://api.github.com/users/dtomalty/following{/other_user}","gists_url":"https://api.github.com/users/dtomalty/gists{/gist_id}","starred_url":"https://api.github.com/users/dtomalty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtomalty/subscriptions","organizations_url":"https://api.github.com/users/dtomalty/orgs","repos_url":"https://api.github.com/users/dtomalty/repos","events_url":"https://api.github.com/users/dtomalty/events{/privacy}","received_events_url":"https://api.github.com/users/dtomalty/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dtomalty/lib-themisui","description":"","fork":true,"url":"https://api.github.com/repos/dtomalty/lib-themisui","forks_url":"https://api.github.com/repos/dtomalty/lib-themisui/forks","keys_url":"https://api.github.com/repos/dtomalty/lib-themisui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dtomalty/lib-themisui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dtomalty/lib-themisui/teams","hooks_url":"https://api.github.com/repos/dtomalty/lib-themisui/hooks","issue_events_url":"https://api.github.com/repos/dtomalty/lib-themisui/issues/events{/number}","events_url":"https://api.github.com/repos/dtomalty/lib-themisui/events","assignees_url":"https://api.github.com/repos/dtomalty/lib-themisui/assignees{/user}","branches_url":"https://api.github.com/repos/dtomalty/lib-themisui/branches{/branch}","tags_url":"https://api.github.com/repos/dtomalty/lib-themisui/tags","blobs_url":"https://api.github.com/repos/dtomalty/lib-themisui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dtomalty/lib-themisui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dtomalty/lib-themisui/git/refs{/sha}","trees_url":"https://api.github.com/repos/dtomalty/lib-themisui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dtomalty/lib-themisui/statuses/{sha}","languages_url":"https://api.github.com/repos/dtomalty/lib-themisui/languages","stargazers_url":"https://api.github.com/repos/dtomalty/lib-themisui/stargazers","contributors_url":"https://api.github.com/repos/dtomalty/lib-themisui/contributors","subscribers_url":"https://api.github.com/repos/dtomalty/lib-themisui/subscribers","subscription_url":"https://api.github.com/repos/dtomalty/lib-themisui/subscription","commits_url":"https://api.github.com/repos/dtomalty/lib-themisui/commits{/sha}","git_commits_url":"https://api.github.com/repos/dtomalty/lib-themisui/git/commits{/sha}","comments_url":"https://api.github.com/repos/dtomalty/lib-themisui/comments{/number}","issue_comment_url":"https://api.github.com/repos/dtomalty/lib-themisui/issues/comments{/number}","contents_url":"https://api.github.com/repos/dtomalty/lib-themisui/contents/{+path}","compare_url":"https://api.github.com/repos/dtomalty/lib-themisui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dtomalty/lib-themisui/merges","archive_url":"https://api.github.com/repos/dtomalty/lib-themisui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dtomalty/lib-themisui/downloads","issues_url":"https://api.github.com/repos/dtomalty/lib-themisui/issues{/number}","pulls_url":"https://api.github.com/repos/dtomalty/lib-themisui/pulls{/number}","milestones_url":"https://api.github.com/repos/dtomalty/lib-themisui/milestones{/number}","notifications_url":"https://api.github.com/repos/dtomalty/lib-themisui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dtomalty/lib-themisui/labels{/name}","releases_url":"https://api.github.com/repos/dtomalty/lib-themisui/releases{/id}","deployments_url":"https://api.github.com/repos/dtomalty/lib-themisui/deployments","created_at":"2015-11-27T00:05:05Z","updated_at":"2015-11-27T00:05:06Z","pushed_at":"2016-04-20T18:01:34Z","git_url":"git://github.com/dtomalty/lib-themisui.git","ssh_url":"git@github.com:dtomalty/lib-themisui.git","clone_url":"https://github.com/dtomalty/lib-themisui.git","svn_url":"https://github.com/dtomalty/lib-themisui","homepage":null,"size":1435,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"clio:master","ref":"master","sha":"29bcb276b0e2d205295b6ee3db8abc9b2926489d","user":{"login":"clio","id":30769,"avatar_url":"https://avatars.githubusercontent.com/u/30769?v=3","gravatar_id":"","url":"https://api.github.com/users/clio","html_url":"https://github.com/clio","followers_url":"https://api.github.com/users/clio/followers","following_url":"https://api.github.com/users/clio/following{/other_user}","gists_url":"https://api.github.com/users/clio/gists{/gist_id}","starred_url":"https://api.github.com/users/clio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clio/subscriptions","organizations_url":"https://api.github.com/users/clio/orgs","repos_url":"https://api.github.com/users/clio/repos","events_url":"https://api.github.com/users/clio/events{/privacy}","received_events_url":"https://api.github.com/users/clio/received_events","type":"Organization","site_admin":false},"repo":{"id":32031641,"name":"lib-themisui","full_name":"clio/lib-themisui","owner":{"login":"clio","id":30769,"avatar_url":"https://avatars.githubusercontent.com/u/30769?v=3","gravatar_id":"","url":"https://api.github.com/users/clio","html_url":"https://github.com/clio","followers_url":"https://api.github.com/users/clio/followers","following_url":"https://api.github.com/users/clio/following{/other_user}","gists_url":"https://api.github.com/users/clio/gists{/gist_id}","starred_url":"https://api.github.com/users/clio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clio/subscriptions","organizations_url":"https://api.github.com/users/clio/orgs","repos_url":"https://api.github.com/users/clio/repos","events_url":"https://api.github.com/users/clio/events{/privacy}","received_events_url":"https://api.github.com/users/clio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/clio/lib-themisui","description":"","fork":false,"url":"https://api.github.com/repos/clio/lib-themisui","forks_url":"https://api.github.com/repos/clio/lib-themisui/forks","keys_url":"https://api.github.com/repos/clio/lib-themisui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/clio/lib-themisui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/clio/lib-themisui/teams","hooks_url":"https://api.github.com/repos/clio/lib-themisui/hooks","issue_events_url":"https://api.github.com/repos/clio/lib-themisui/issues/events{/number}","events_url":"https://api.github.com/repos/clio/lib-themisui/events","assignees_url":"https://api.github.com/repos/clio/lib-themisui/assignees{/user}","branches_url":"https://api.github.com/repos/clio/lib-themisui/branches{/branch}","tags_url":"https://api.github.com/repos/clio/lib-themisui/tags","blobs_url":"https://api.github.com/repos/clio/lib-themisui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/clio/lib-themisui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/clio/lib-themisui/git/refs{/sha}","trees_url":"https://api.github.com/repos/clio/lib-themisui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/clio/lib-themisui/statuses/{sha}","languages_url":"https://api.github.com/repos/clio/lib-themisui/languages","stargazers_url":"https://api.github.com/repos/clio/lib-themisui/stargazers","contributors_url":"https://api.github.com/repos/clio/lib-themisui/contributors","subscribers_url":"https://api.github.com/repos/clio/lib-themisui/subscribers","subscription_url":"https://api.github.com/repos/clio/lib-themisui/subscription","commits_url":"https://api.github.com/repos/clio/lib-themisui/commits{/sha}","git_commits_url":"https://api.github.com/repos/clio/lib-themisui/git/commits{/sha}","comments_url":"https://api.github.com/repos/clio/lib-themisui/comments{/number}","issue_comment_url":"https://api.github.com/repos/clio/lib-themisui/issues/comments{/number}","contents_url":"https://api.github.com/repos/clio/lib-themisui/contents/{+path}","compare_url":"https://api.github.com/repos/clio/lib-themisui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/clio/lib-themisui/merges","archive_url":"https://api.github.com/repos/clio/lib-themisui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/clio/lib-themisui/downloads","issues_url":"https://api.github.com/repos/clio/lib-themisui/issues{/number}","pulls_url":"https://api.github.com/repos/clio/lib-themisui/pulls{/number}","milestones_url":"https://api.github.com/repos/clio/lib-themisui/milestones{/number}","notifications_url":"https://api.github.com/repos/clio/lib-themisui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/clio/lib-themisui/labels{/name}","releases_url":"https://api.github.com/repos/clio/lib-themisui/releases{/id}","deployments_url":"https://api.github.com/repos/clio/lib-themisui/deployments","created_at":"2015-03-11T17:32:40Z","updated_at":"2016-02-23T06:07:35Z","pushed_at":"2016-04-20T18:01:35Z","git_url":"git://github.com/clio/lib-themisui.git","ssh_url":"git@github.com:clio/lib-themisui.git","clone_url":"https://github.com/clio/lib-themisui.git","svn_url":"https://github.com/clio/lib-themisui","homepage":null,"size":1380,"stargazers_count":2,"watchers_count":2,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":14,"forks":8,"open_issues":14,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/clio/lib-themisui/pulls/120"},"html":{"href":"https://github.com/clio/lib-themisui/pull/120"},"issue":{"href":"https://api.github.com/repos/clio/lib-themisui/issues/120"},"comments":{"href":"https://api.github.com/repos/clio/lib-themisui/issues/120/comments"},"review_comments":{"href":"https://api.github.com/repos/clio/lib-themisui/pulls/120/comments"},"review_comment":{"href":"https://api.github.com/repos/clio/lib-themisui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/clio/lib-themisui/pulls/120/commits"},"statuses":{"href":"https://api.github.com/repos/clio/lib-themisui/statuses/f1d68af3eac9b5a9395f3079bdc97f0fc686d80d"}}}}