{"action":"created","comment":{"url":"https://api.github.com/repos/Continuous-Security/discourse_reports/pulls/comments/27133540","id":27133540,"diff_hunk":"@@ -0,0 +1,9 @@\n+TopicListItemSerializer.class_eval do\n+  attributes :tags\n+  has_one :category, serializer: BasicCategorySerializer\n+  has_one :user, serializer: BasicUserSerializer, embed: :object\n+\n+  def tags\n+    object.respond_to?(:tags) && object.try(:tags) ? object.tags : []","path":"app/serializers/topic_list_item_serializer.rb","position":7,"original_position":7,"commit_id":"f63620e53f545b937cf6cf6699c295c509e0acb9","original_commit_id":"f63620e53f545b937cf6cf6699c295c509e0acb9","user":{"login":"ArthurZaharov","id":230929,"avatar_url":"https://avatars.githubusercontent.com/u/230929?v=3","gravatar_id":"","url":"https://api.github.com/users/ArthurZaharov","html_url":"https://github.com/ArthurZaharov","followers_url":"https://api.github.com/users/ArthurZaharov/followers","following_url":"https://api.github.com/users/ArthurZaharov/following{/other_user}","gists_url":"https://api.github.com/users/ArthurZaharov/gists{/gist_id}","starred_url":"https://api.github.com/users/ArthurZaharov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArthurZaharov/subscriptions","organizations_url":"https://api.github.com/users/ArthurZaharov/orgs","repos_url":"https://api.github.com/users/ArthurZaharov/repos","events_url":"https://api.github.com/users/ArthurZaharov/events{/privacy}","received_events_url":"https://api.github.com/users/ArthurZaharov/received_events","type":"User","site_admin":false},"body":"I will get nil without this check. But I need always an Array.","created_at":"2015-03-25T15:46:26Z","updated_at":"2015-03-25T15:46:26Z","html_url":"https://github.com/Continuous-Security/discourse_reports/pull/169#discussion_r27133540","pull_request_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/pulls/169","_links":{"self":{"href":"https://api.github.com/repos/Continuous-Security/discourse_reports/pulls/comments/27133540"},"html":{"href":"https://github.com/Continuous-Security/discourse_reports/pull/169#discussion_r27133540"},"pull_request":{"href":"https://api.github.com/repos/Continuous-Security/discourse_reports/pulls/169"}}},"pull_request":{"url":"https://api.github.com/repos/Continuous-Security/discourse_reports/pulls/169","id":31933239,"html_url":"https://github.com/Continuous-Security/discourse_reports/pull/169","diff_url":"https://github.com/Continuous-Security/discourse_reports/pull/169.diff","patch_url":"https://github.com/Continuous-Security/discourse_reports/pull/169.patch","issue_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/issues/169","number":169,"state":"open","locked":false,"title":"[#FLAT-34] Add search to recipes list","user":{"login":"ArthurZaharov","id":230929,"avatar_url":"https://avatars.githubusercontent.com/u/230929?v=3","gravatar_id":"","url":"https://api.github.com/users/ArthurZaharov","html_url":"https://github.com/ArthurZaharov","followers_url":"https://api.github.com/users/ArthurZaharov/followers","following_url":"https://api.github.com/users/ArthurZaharov/following{/other_user}","gists_url":"https://api.github.com/users/ArthurZaharov/gists{/gist_id}","starred_url":"https://api.github.com/users/ArthurZaharov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArthurZaharov/subscriptions","organizations_url":"https://api.github.com/users/ArthurZaharov/orgs","repos_url":"https://api.github.com/users/ArthurZaharov/repos","events_url":"https://api.github.com/users/ArthurZaharov/events{/privacy}","received_events_url":"https://api.github.com/users/ArthurZaharov/received_events","type":"User","site_admin":false},"body":"https://sourceclear.atlassian.net/browse/FLAT-34","created_at":"2015-03-25T15:28:51Z","updated_at":"2015-03-25T15:46:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"78fb87959d04c49e64cffbe2d806eb1c8b6465ab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/pulls/169/commits","review_comments_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/pulls/169/comments","review_comment_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/issues/169/comments","statuses_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/statuses/f63620e53f545b937cf6cf6699c295c509e0acb9","head":{"label":"Continuous-Security:add-search-to-recipes-list-flat-34","ref":"add-search-to-recipes-list-flat-34","sha":"f63620e53f545b937cf6cf6699c295c509e0acb9","user":{"login":"Continuous-Security","id":9541655,"avatar_url":"https://avatars.githubusercontent.com/u/9541655?v=3","gravatar_id":"","url":"https://api.github.com/users/Continuous-Security","html_url":"https://github.com/Continuous-Security","followers_url":"https://api.github.com/users/Continuous-Security/followers","following_url":"https://api.github.com/users/Continuous-Security/following{/other_user}","gists_url":"https://api.github.com/users/Continuous-Security/gists{/gist_id}","starred_url":"https://api.github.com/users/Continuous-Security/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Continuous-Security/subscriptions","organizations_url":"https://api.github.com/users/Continuous-Security/orgs","repos_url":"https://api.github.com/users/Continuous-Security/repos","events_url":"https://api.github.com/users/Continuous-Security/events{/privacy}","received_events_url":"https://api.github.com/users/Continuous-Security/received_events","type":"Organization","site_admin":false},"repo":{"id":28943866,"name":"discourse_reports","full_name":"Continuous-Security/discourse_reports","owner":{"login":"Continuous-Security","id":9541655,"avatar_url":"https://avatars.githubusercontent.com/u/9541655?v=3","gravatar_id":"","url":"https://api.github.com/users/Continuous-Security","html_url":"https://github.com/Continuous-Security","followers_url":"https://api.github.com/users/Continuous-Security/followers","following_url":"https://api.github.com/users/Continuous-Security/following{/other_user}","gists_url":"https://api.github.com/users/Continuous-Security/gists{/gist_id}","starred_url":"https://api.github.com/users/Continuous-Security/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Continuous-Security/subscriptions","organizations_url":"https://api.github.com/users/Continuous-Security/orgs","repos_url":"https://api.github.com/users/Continuous-Security/repos","events_url":"https://api.github.com/users/Continuous-Security/events{/privacy}","received_events_url":"https://api.github.com/users/Continuous-Security/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Continuous-Security/discourse_reports","description":"This the main project for the development of the CS Community Website","fork":false,"url":"https://api.github.com/repos/Continuous-Security/discourse_reports","forks_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/forks","keys_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/teams","hooks_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/hooks","issue_events_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/issues/events{/number}","events_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/events","assignees_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/assignees{/user}","branches_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/branches{/branch}","tags_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/tags","blobs_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/git/refs{/sha}","trees_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/statuses/{sha}","languages_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/languages","stargazers_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/stargazers","contributors_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/contributors","subscribers_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/subscribers","subscription_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/subscription","commits_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/commits{/sha}","git_commits_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/git/commits{/sha}","comments_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/comments{/number}","issue_comment_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/issues/comments{/number}","contents_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/contents/{+path}","compare_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/merges","archive_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/downloads","issues_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/issues{/number}","pulls_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/pulls{/number}","milestones_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/milestones{/number}","notifications_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/labels{/name}","releases_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/releases{/id}","created_at":"2015-01-08T01:59:25Z","updated_at":"2015-03-25T15:30:22Z","pushed_at":"2015-03-25T15:30:21Z","git_url":"git://github.com/Continuous-Security/discourse_reports.git","ssh_url":"git@github.com:Continuous-Security/discourse_reports.git","clone_url":"https://github.com/Continuous-Security/discourse_reports.git","svn_url":"https://github.com/Continuous-Security/discourse_reports","homepage":null,"size":28161,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Continuous-Security:master","ref":"master","sha":"def1a53a571a8f7555b67f8fc777866322909559","user":{"login":"Continuous-Security","id":9541655,"avatar_url":"https://avatars.githubusercontent.com/u/9541655?v=3","gravatar_id":"","url":"https://api.github.com/users/Continuous-Security","html_url":"https://github.com/Continuous-Security","followers_url":"https://api.github.com/users/Continuous-Security/followers","following_url":"https://api.github.com/users/Continuous-Security/following{/other_user}","gists_url":"https://api.github.com/users/Continuous-Security/gists{/gist_id}","starred_url":"https://api.github.com/users/Continuous-Security/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Continuous-Security/subscriptions","organizations_url":"https://api.github.com/users/Continuous-Security/orgs","repos_url":"https://api.github.com/users/Continuous-Security/repos","events_url":"https://api.github.com/users/Continuous-Security/events{/privacy}","received_events_url":"https://api.github.com/users/Continuous-Security/received_events","type":"Organization","site_admin":false},"repo":{"id":28943866,"name":"discourse_reports","full_name":"Continuous-Security/discourse_reports","owner":{"login":"Continuous-Security","id":9541655,"avatar_url":"https://avatars.githubusercontent.com/u/9541655?v=3","gravatar_id":"","url":"https://api.github.com/users/Continuous-Security","html_url":"https://github.com/Continuous-Security","followers_url":"https://api.github.com/users/Continuous-Security/followers","following_url":"https://api.github.com/users/Continuous-Security/following{/other_user}","gists_url":"https://api.github.com/users/Continuous-Security/gists{/gist_id}","starred_url":"https://api.github.com/users/Continuous-Security/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Continuous-Security/subscriptions","organizations_url":"https://api.github.com/users/Continuous-Security/orgs","repos_url":"https://api.github.com/users/Continuous-Security/repos","events_url":"https://api.github.com/users/Continuous-Security/events{/privacy}","received_events_url":"https://api.github.com/users/Continuous-Security/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Continuous-Security/discourse_reports","description":"This the main project for the development of the CS Community Website","fork":false,"url":"https://api.github.com/repos/Continuous-Security/discourse_reports","forks_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/forks","keys_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/teams","hooks_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/hooks","issue_events_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/issues/events{/number}","events_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/events","assignees_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/assignees{/user}","branches_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/branches{/branch}","tags_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/tags","blobs_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/git/refs{/sha}","trees_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/statuses/{sha}","languages_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/languages","stargazers_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/stargazers","contributors_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/contributors","subscribers_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/subscribers","subscription_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/subscription","commits_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/commits{/sha}","git_commits_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/git/commits{/sha}","comments_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/comments{/number}","issue_comment_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/issues/comments{/number}","contents_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/contents/{+path}","compare_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/merges","archive_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/downloads","issues_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/issues{/number}","pulls_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/pulls{/number}","milestones_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/milestones{/number}","notifications_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/labels{/name}","releases_url":"https://api.github.com/repos/Continuous-Security/discourse_reports/releases{/id}","created_at":"2015-01-08T01:59:25Z","updated_at":"2015-03-25T15:30:22Z","pushed_at":"2015-03-25T15:30:21Z","git_url":"git://github.com/Continuous-Security/discourse_reports.git","ssh_url":"git@github.com:Continuous-Security/discourse_reports.git","clone_url":"https://github.com/Continuous-Security/discourse_reports.git","svn_url":"https://github.com/Continuous-Security/discourse_reports","homepage":null,"size":28161,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Continuous-Security/discourse_reports/pulls/169"},"html":{"href":"https://github.com/Continuous-Security/discourse_reports/pull/169"},"issue":{"href":"https://api.github.com/repos/Continuous-Security/discourse_reports/issues/169"},"comments":{"href":"https://api.github.com/repos/Continuous-Security/discourse_reports/issues/169/comments"},"review_comments":{"href":"https://api.github.com/repos/Continuous-Security/discourse_reports/pulls/169/comments"},"review_comment":{"href":"https://api.github.com/repos/Continuous-Security/discourse_reports/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Continuous-Security/discourse_reports/pulls/169/commits"},"statuses":{"href":"https://api.github.com/repos/Continuous-Security/discourse_reports/statuses/f63620e53f545b937cf6cf6699c295c509e0acb9"}}}}