{"action":"created","comment":{"url":"https://api.github.com/repos/activenetwork/actv/pulls/comments/61730779","id":61730779,"diff_hunk":"@@ -19,5 +19,10 @@ def find_outcome_by_id guid\n         outcome.assetGuid == guid\n       end\n     end\n+\n+    def thumbnail\n+      @thumbnail ||= image_by_name 'desktop'","path":"lib/actv/quiz.rb","position":6,"original_position":6,"commit_id":"1c27ca57a78e873f9ed6e4df64bd05c8a46a4094","original_commit_id":"1c27ca57a78e873f9ed6e4df64bd05c8a46a4094","user":{"login":"marvin-min","id":767117,"avatar_url":"https://avatars.githubusercontent.com/u/767117?v=3","gravatar_id":"","url":"https://api.github.com/users/marvin-min","html_url":"https://github.com/marvin-min","followers_url":"https://api.github.com/users/marvin-min/followers","following_url":"https://api.github.com/users/marvin-min/following{/other_user}","gists_url":"https://api.github.com/users/marvin-min/gists{/gist_id}","starred_url":"https://api.github.com/users/marvin-min/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marvin-min/subscriptions","organizations_url":"https://api.github.com/users/marvin-min/orgs","repos_url":"https://api.github.com/users/marvin-min/repos","events_url":"https://api.github.com/users/marvin-min/events{/privacy}","received_events_url":"https://api.github.com/users/marvin-min/received_events","type":"User","site_admin":false},"body":"Why do we need to add `thumbnail` in `Asset` class?\r\nIt's only used in `Quiz` and `Article` class. \r\nIf we add the `thumbnail` into `Asset` class, we have to overwrite it in the sub-class again. Is there any benefits from it?","created_at":"2016-05-02T12:03:47Z","updated_at":"2016-05-02T12:03:47Z","html_url":"https://github.com/activenetwork/actv/pull/54#discussion_r61730779","pull_request_url":"https://api.github.com/repos/activenetwork/actv/pulls/54","_links":{"self":{"href":"https://api.github.com/repos/activenetwork/actv/pulls/comments/61730779"},"html":{"href":"https://github.com/activenetwork/actv/pull/54#discussion_r61730779"},"pull_request":{"href":"https://api.github.com/repos/activenetwork/actv/pulls/54"}}},"pull_request":{"url":"https://api.github.com/repos/activenetwork/actv/pulls/54","id":68190069,"html_url":"https://github.com/activenetwork/actv/pull/54","diff_url":"https://github.com/activenetwork/actv/pull/54.diff","patch_url":"https://github.com/activenetwork/actv/pull/54.patch","issue_url":"https://api.github.com/repos/activenetwork/actv/issues/54","number":54,"state":"open","locked":false,"title":"ACOM-5679: Add thumbnail method to quiz","user":{"login":"marvin-min","id":767117,"avatar_url":"https://avatars.githubusercontent.com/u/767117?v=3","gravatar_id":"","url":"https://api.github.com/users/marvin-min","html_url":"https://github.com/marvin-min","followers_url":"https://api.github.com/users/marvin-min/followers","following_url":"https://api.github.com/users/marvin-min/following{/other_user}","gists_url":"https://api.github.com/users/marvin-min/gists{/gist_id}","starred_url":"https://api.github.com/users/marvin-min/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marvin-min/subscriptions","organizations_url":"https://api.github.com/users/marvin-min/orgs","repos_url":"https://api.github.com/users/marvin-min/repos","events_url":"https://api.github.com/users/marvin-min/events{/privacy}","received_events_url":"https://api.github.com/users/marvin-min/received_events","type":"User","site_admin":false},"body":"#### JIRA:\r\n\r\nhttps://jirafnd.dev.activenetwork.com/browse/ACOM-5679\r\n\r\n#### Description:\r\n\r\nProblem\r\nHere are examples of articles that all keep showing the same 3 recommended articles over and over again:\r\nhttp://www.active.com/running/articles/lactate-threshold-101-what-you-should-know\r\nhttp://www.active.com/running/articles/how-to-find-a-running-coach\r\nhttp://www.active.com/running/articles/how-to-run-with-spring-allergies\r\n#### Requirement\r\nWe'd like to refine the logic for recommended articles widget to make it more savvy, after ACOM-5086.\r\nAcceptance Criteria\r\n1. Demonstrate that logic for recommended articles change to: pick 15 articles matched topics/attributes with given one, then show 3 of them randomly.\r\n2. Demonstrate that [Recommended Articles] widgets support curating all kinds of content pieces article/media gallery/quiz.\r\n3. Demonstrate that the fallback logic will be updated to pick the candidates from article/MG/Quiz.\r\n\r\n#### TestLink\r\nReference with Quiz:\r\nhttp://a3coreint10.dev.activenetwork.com/outdoors/articles/5-common-spring-pests-and-how-to-avoid-them","created_at":"2016-04-28T09:30:55Z","updated_at":"2016-05-02T12:03:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a7c05dfa514700887570dfa73b232a06a240d0e4","assignee":{"login":"hlcfan","id":1140383,"avatar_url":"https://avatars.githubusercontent.com/u/1140383?v=3","gravatar_id":"","url":"https://api.github.com/users/hlcfan","html_url":"https://github.com/hlcfan","followers_url":"https://api.github.com/users/hlcfan/followers","following_url":"https://api.github.com/users/hlcfan/following{/other_user}","gists_url":"https://api.github.com/users/hlcfan/gists{/gist_id}","starred_url":"https://api.github.com/users/hlcfan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hlcfan/subscriptions","organizations_url":"https://api.github.com/users/hlcfan/orgs","repos_url":"https://api.github.com/users/hlcfan/repos","events_url":"https://api.github.com/users/hlcfan/events{/privacy}","received_events_url":"https://api.github.com/users/hlcfan/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/activenetwork/actv/pulls/54/commits","review_comments_url":"https://api.github.com/repos/activenetwork/actv/pulls/54/comments","review_comment_url":"https://api.github.com/repos/activenetwork/actv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/activenetwork/actv/issues/54/comments","statuses_url":"https://api.github.com/repos/activenetwork/actv/statuses/1c27ca57a78e873f9ed6e4df64bd05c8a46a4094","head":{"label":"activenetwork:ACOM-5679-Refine-recommand-articlesp-logic","ref":"ACOM-5679-Refine-recommand-articlesp-logic","sha":"1c27ca57a78e873f9ed6e4df64bd05c8a46a4094","user":{"login":"activenetwork","id":148571,"avatar_url":"https://avatars.githubusercontent.com/u/148571?v=3","gravatar_id":"","url":"https://api.github.com/users/activenetwork","html_url":"https://github.com/activenetwork","followers_url":"https://api.github.com/users/activenetwork/followers","following_url":"https://api.github.com/users/activenetwork/following{/other_user}","gists_url":"https://api.github.com/users/activenetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/activenetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activenetwork/subscriptions","organizations_url":"https://api.github.com/users/activenetwork/orgs","repos_url":"https://api.github.com/users/activenetwork/repos","events_url":"https://api.github.com/users/activenetwork/events{/privacy}","received_events_url":"https://api.github.com/users/activenetwork/received_events","type":"Organization","site_admin":false},"repo":{"id":12438386,"name":"actv","full_name":"activenetwork/actv","owner":{"login":"activenetwork","id":148571,"avatar_url":"https://avatars.githubusercontent.com/u/148571?v=3","gravatar_id":"","url":"https://api.github.com/users/activenetwork","html_url":"https://github.com/activenetwork","followers_url":"https://api.github.com/users/activenetwork/followers","following_url":"https://api.github.com/users/activenetwork/following{/other_user}","gists_url":"https://api.github.com/users/activenetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/activenetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activenetwork/subscriptions","organizations_url":"https://api.github.com/users/activenetwork/orgs","repos_url":"https://api.github.com/users/activenetwork/repos","events_url":"https://api.github.com/users/activenetwork/events{/privacy}","received_events_url":"https://api.github.com/users/activenetwork/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/activenetwork/actv","description":"Library for Using Active.com's v2 search API","fork":false,"url":"https://api.github.com/repos/activenetwork/actv","forks_url":"https://api.github.com/repos/activenetwork/actv/forks","keys_url":"https://api.github.com/repos/activenetwork/actv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/activenetwork/actv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/activenetwork/actv/teams","hooks_url":"https://api.github.com/repos/activenetwork/actv/hooks","issue_events_url":"https://api.github.com/repos/activenetwork/actv/issues/events{/number}","events_url":"https://api.github.com/repos/activenetwork/actv/events","assignees_url":"https://api.github.com/repos/activenetwork/actv/assignees{/user}","branches_url":"https://api.github.com/repos/activenetwork/actv/branches{/branch}","tags_url":"https://api.github.com/repos/activenetwork/actv/tags","blobs_url":"https://api.github.com/repos/activenetwork/actv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/activenetwork/actv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/activenetwork/actv/git/refs{/sha}","trees_url":"https://api.github.com/repos/activenetwork/actv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/activenetwork/actv/statuses/{sha}","languages_url":"https://api.github.com/repos/activenetwork/actv/languages","stargazers_url":"https://api.github.com/repos/activenetwork/actv/stargazers","contributors_url":"https://api.github.com/repos/activenetwork/actv/contributors","subscribers_url":"https://api.github.com/repos/activenetwork/actv/subscribers","subscription_url":"https://api.github.com/repos/activenetwork/actv/subscription","commits_url":"https://api.github.com/repos/activenetwork/actv/commits{/sha}","git_commits_url":"https://api.github.com/repos/activenetwork/actv/git/commits{/sha}","comments_url":"https://api.github.com/repos/activenetwork/actv/comments{/number}","issue_comment_url":"https://api.github.com/repos/activenetwork/actv/issues/comments{/number}","contents_url":"https://api.github.com/repos/activenetwork/actv/contents/{+path}","compare_url":"https://api.github.com/repos/activenetwork/actv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/activenetwork/actv/merges","archive_url":"https://api.github.com/repos/activenetwork/actv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/activenetwork/actv/downloads","issues_url":"https://api.github.com/repos/activenetwork/actv/issues{/number}","pulls_url":"https://api.github.com/repos/activenetwork/actv/pulls{/number}","milestones_url":"https://api.github.com/repos/activenetwork/actv/milestones{/number}","notifications_url":"https://api.github.com/repos/activenetwork/actv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/activenetwork/actv/labels{/name}","releases_url":"https://api.github.com/repos/activenetwork/actv/releases{/id}","deployments_url":"https://api.github.com/repos/activenetwork/actv/deployments","created_at":"2013-08-28T16:08:17Z","updated_at":"2016-05-02T04:44:28Z","pushed_at":"2016-04-28T09:33:35Z","git_url":"git://github.com/activenetwork/actv.git","ssh_url":"git@github.com:activenetwork/actv.git","clone_url":"https://github.com/activenetwork/actv.git","svn_url":"https://github.com/activenetwork/actv","homepage":null,"size":534,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"activenetwork:master","ref":"master","sha":"50dcd77fd9b7e105da3797691a3df86bfdabbc64","user":{"login":"activenetwork","id":148571,"avatar_url":"https://avatars.githubusercontent.com/u/148571?v=3","gravatar_id":"","url":"https://api.github.com/users/activenetwork","html_url":"https://github.com/activenetwork","followers_url":"https://api.github.com/users/activenetwork/followers","following_url":"https://api.github.com/users/activenetwork/following{/other_user}","gists_url":"https://api.github.com/users/activenetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/activenetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activenetwork/subscriptions","organizations_url":"https://api.github.com/users/activenetwork/orgs","repos_url":"https://api.github.com/users/activenetwork/repos","events_url":"https://api.github.com/users/activenetwork/events{/privacy}","received_events_url":"https://api.github.com/users/activenetwork/received_events","type":"Organization","site_admin":false},"repo":{"id":12438386,"name":"actv","full_name":"activenetwork/actv","owner":{"login":"activenetwork","id":148571,"avatar_url":"https://avatars.githubusercontent.com/u/148571?v=3","gravatar_id":"","url":"https://api.github.com/users/activenetwork","html_url":"https://github.com/activenetwork","followers_url":"https://api.github.com/users/activenetwork/followers","following_url":"https://api.github.com/users/activenetwork/following{/other_user}","gists_url":"https://api.github.com/users/activenetwork/gists{/gist_id}","starred_url":"https://api.github.com/users/activenetwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/activenetwork/subscriptions","organizations_url":"https://api.github.com/users/activenetwork/orgs","repos_url":"https://api.github.com/users/activenetwork/repos","events_url":"https://api.github.com/users/activenetwork/events{/privacy}","received_events_url":"https://api.github.com/users/activenetwork/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/activenetwork/actv","description":"Library for Using Active.com's v2 search API","fork":false,"url":"https://api.github.com/repos/activenetwork/actv","forks_url":"https://api.github.com/repos/activenetwork/actv/forks","keys_url":"https://api.github.com/repos/activenetwork/actv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/activenetwork/actv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/activenetwork/actv/teams","hooks_url":"https://api.github.com/repos/activenetwork/actv/hooks","issue_events_url":"https://api.github.com/repos/activenetwork/actv/issues/events{/number}","events_url":"https://api.github.com/repos/activenetwork/actv/events","assignees_url":"https://api.github.com/repos/activenetwork/actv/assignees{/user}","branches_url":"https://api.github.com/repos/activenetwork/actv/branches{/branch}","tags_url":"https://api.github.com/repos/activenetwork/actv/tags","blobs_url":"https://api.github.com/repos/activenetwork/actv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/activenetwork/actv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/activenetwork/actv/git/refs{/sha}","trees_url":"https://api.github.com/repos/activenetwork/actv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/activenetwork/actv/statuses/{sha}","languages_url":"https://api.github.com/repos/activenetwork/actv/languages","stargazers_url":"https://api.github.com/repos/activenetwork/actv/stargazers","contributors_url":"https://api.github.com/repos/activenetwork/actv/contributors","subscribers_url":"https://api.github.com/repos/activenetwork/actv/subscribers","subscription_url":"https://api.github.com/repos/activenetwork/actv/subscription","commits_url":"https://api.github.com/repos/activenetwork/actv/commits{/sha}","git_commits_url":"https://api.github.com/repos/activenetwork/actv/git/commits{/sha}","comments_url":"https://api.github.com/repos/activenetwork/actv/comments{/number}","issue_comment_url":"https://api.github.com/repos/activenetwork/actv/issues/comments{/number}","contents_url":"https://api.github.com/repos/activenetwork/actv/contents/{+path}","compare_url":"https://api.github.com/repos/activenetwork/actv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/activenetwork/actv/merges","archive_url":"https://api.github.com/repos/activenetwork/actv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/activenetwork/actv/downloads","issues_url":"https://api.github.com/repos/activenetwork/actv/issues{/number}","pulls_url":"https://api.github.com/repos/activenetwork/actv/pulls{/number}","milestones_url":"https://api.github.com/repos/activenetwork/actv/milestones{/number}","notifications_url":"https://api.github.com/repos/activenetwork/actv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/activenetwork/actv/labels{/name}","releases_url":"https://api.github.com/repos/activenetwork/actv/releases{/id}","deployments_url":"https://api.github.com/repos/activenetwork/actv/deployments","created_at":"2013-08-28T16:08:17Z","updated_at":"2016-05-02T04:44:28Z","pushed_at":"2016-04-28T09:33:35Z","git_url":"git://github.com/activenetwork/actv.git","ssh_url":"git@github.com:activenetwork/actv.git","clone_url":"https://github.com/activenetwork/actv.git","svn_url":"https://github.com/activenetwork/actv","homepage":null,"size":534,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/activenetwork/actv/pulls/54"},"html":{"href":"https://github.com/activenetwork/actv/pull/54"},"issue":{"href":"https://api.github.com/repos/activenetwork/actv/issues/54"},"comments":{"href":"https://api.github.com/repos/activenetwork/actv/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/activenetwork/actv/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/activenetwork/actv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/activenetwork/actv/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/activenetwork/actv/statuses/1c27ca57a78e873f9ed6e4df64bd05c8a46a4094"}}}}