{"action":"created","comment":{"url":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/comments/42357510","id":42357510,"diff_hunk":"@@ -0,0 +1,45 @@\n+class Dashboard::FlickrSearchController < Dashboard::BaseController\n+  respond_to :js\n+\n+  def search_flickr\n+    @search_term = params[:search]\n+\n+    list = if @search_term.blank?\n+             # Rails.logger.warn(\"Search term is blank\")\n+             recent_photos\n+           else\n+             # Rails.logger.warn(\"Search term provided\")\n+             search_with(@search_term)\n+           end\n+    # Rails.logger.warn \"++++++++++++++++++++++++++++++++\"\n+    # Rails.logger.warn \"list should be assigned\"\n+    # Rails.logger.warn list.inspect\n+    @photos = url_for_photos(list)\n+    # Rails.logger.warn \"++++++++++++++++++++++++++++++++\"\n+    # Rails.logger.warn \"@photos should be assigned\"\n+    # Rails.logger.warn @photos.inspect\n+    # Rails.logger.warn \"==================================\"\n+    # Rails.logger.warn \"Template should be rendered\"\n+  end\n+\n+  private\n+\n+  def recent_photos\n+    Rails.logger.warn(\"Flickrie.get_recent_photos called\")\n+    Flickrie.get_recent_photos per_page: 10\n+  end\n+\n+  def search_with(search_term)\n+    Rails.logger.warn(\"Flickrie.search_photos called\")\n+    Flickrie.search_photos text: @search_term, per_page: 10\n+  end\n+\n+  def url_for_photos(list)\n+    photos = []\n+    list.each do |photo|\n+      url = \"https://farm#{photo.farm}.static.flickr.com/#{photo.server}/#{photo.id}_#{photo.secret}_q.jpg\"","path":"app/controllers/dashboard/flickr_search_controller.rb","position":40,"original_position":40,"commit_id":"927ef375d00bed8fa5fabafb54a3d2b3ac0e43d6","original_commit_id":"927ef375d00bed8fa5fabafb54a3d2b3ac0e43d6","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [107/80]","created_at":"2015-10-19T10:48:20Z","updated_at":"2015-10-19T10:48:20Z","html_url":"https://github.com/ArmadilloXX/flashcards/pull/6#discussion_r42357510","pull_request_url":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/comments/42357510"},"html":{"href":"https://github.com/ArmadilloXX/flashcards/pull/6#discussion_r42357510"},"pull_request":{"href":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/6","id":47369743,"html_url":"https://github.com/ArmadilloXX/flashcards/pull/6","diff_url":"https://github.com/ArmadilloXX/flashcards/pull/6.diff","patch_url":"https://github.com/ArmadilloXX/flashcards/pull/6.patch","issue_url":"https://api.github.com/repos/ArmadilloXX/flashcards/issues/6","number":6,"state":"open","locked":false,"title":"Fourth task","user":{"login":"ArmadilloXX","id":6916657,"avatar_url":"https://avatars.githubusercontent.com/u/6916657?v=3","gravatar_id":"","url":"https://api.github.com/users/ArmadilloXX","html_url":"https://github.com/ArmadilloXX","followers_url":"https://api.github.com/users/ArmadilloXX/followers","following_url":"https://api.github.com/users/ArmadilloXX/following{/other_user}","gists_url":"https://api.github.com/users/ArmadilloXX/gists{/gist_id}","starred_url":"https://api.github.com/users/ArmadilloXX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArmadilloXX/subscriptions","organizations_url":"https://api.github.com/users/ArmadilloXX/orgs","repos_url":"https://api.github.com/users/ArmadilloXX/repos","events_url":"https://api.github.com/users/ArmadilloXX/events{/privacy}","received_events_url":"https://api.github.com/users/ArmadilloXX/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-11T16:00:27Z","updated_at":"2015-10-19T10:48:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ebe132d0633995c4f551c110d07ee7f43f7e04e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/6/commits","review_comments_url":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/6/comments","review_comment_url":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ArmadilloXX/flashcards/issues/6/comments","statuses_url":"https://api.github.com/repos/ArmadilloXX/flashcards/statuses/927ef375d00bed8fa5fabafb54a3d2b3ac0e43d6","head":{"label":"ArmadilloXX:fourth_task","ref":"fourth_task","sha":"927ef375d00bed8fa5fabafb54a3d2b3ac0e43d6","user":{"login":"ArmadilloXX","id":6916657,"avatar_url":"https://avatars.githubusercontent.com/u/6916657?v=3","gravatar_id":"","url":"https://api.github.com/users/ArmadilloXX","html_url":"https://github.com/ArmadilloXX","followers_url":"https://api.github.com/users/ArmadilloXX/followers","following_url":"https://api.github.com/users/ArmadilloXX/following{/other_user}","gists_url":"https://api.github.com/users/ArmadilloXX/gists{/gist_id}","starred_url":"https://api.github.com/users/ArmadilloXX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArmadilloXX/subscriptions","organizations_url":"https://api.github.com/users/ArmadilloXX/orgs","repos_url":"https://api.github.com/users/ArmadilloXX/repos","events_url":"https://api.github.com/users/ArmadilloXX/events{/privacy}","received_events_url":"https://api.github.com/users/ArmadilloXX/received_events","type":"User","site_admin":false},"repo":{"id":42848111,"name":"flashcards","full_name":"ArmadilloXX/flashcards","owner":{"login":"ArmadilloXX","id":6916657,"avatar_url":"https://avatars.githubusercontent.com/u/6916657?v=3","gravatar_id":"","url":"https://api.github.com/users/ArmadilloXX","html_url":"https://github.com/ArmadilloXX","followers_url":"https://api.github.com/users/ArmadilloXX/followers","following_url":"https://api.github.com/users/ArmadilloXX/following{/other_user}","gists_url":"https://api.github.com/users/ArmadilloXX/gists{/gist_id}","starred_url":"https://api.github.com/users/ArmadilloXX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArmadilloXX/subscriptions","organizations_url":"https://api.github.com/users/ArmadilloXX/orgs","repos_url":"https://api.github.com/users/ArmadilloXX/repos","events_url":"https://api.github.com/users/ArmadilloXX/events{/privacy}","received_events_url":"https://api.github.com/users/ArmadilloXX/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ArmadilloXX/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/ArmadilloXX/flashcards","forks_url":"https://api.github.com/repos/ArmadilloXX/flashcards/forks","keys_url":"https://api.github.com/repos/ArmadilloXX/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ArmadilloXX/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ArmadilloXX/flashcards/teams","hooks_url":"https://api.github.com/repos/ArmadilloXX/flashcards/hooks","issue_events_url":"https://api.github.com/repos/ArmadilloXX/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/ArmadilloXX/flashcards/events","assignees_url":"https://api.github.com/repos/ArmadilloXX/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/ArmadilloXX/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/ArmadilloXX/flashcards/tags","blobs_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ArmadilloXX/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/ArmadilloXX/flashcards/languages","stargazers_url":"https://api.github.com/repos/ArmadilloXX/flashcards/stargazers","contributors_url":"https://api.github.com/repos/ArmadilloXX/flashcards/contributors","subscribers_url":"https://api.github.com/repos/ArmadilloXX/flashcards/subscribers","subscription_url":"https://api.github.com/repos/ArmadilloXX/flashcards/subscription","commits_url":"https://api.github.com/repos/ArmadilloXX/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/ArmadilloXX/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/ArmadilloXX/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/ArmadilloXX/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/ArmadilloXX/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ArmadilloXX/flashcards/merges","archive_url":"https://api.github.com/repos/ArmadilloXX/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ArmadilloXX/flashcards/downloads","issues_url":"https://api.github.com/repos/ArmadilloXX/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/ArmadilloXX/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/ArmadilloXX/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ArmadilloXX/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/ArmadilloXX/flashcards/releases{/id}","created_at":"2015-09-21T06:32:52Z","updated_at":"2015-09-21T06:34:53Z","pushed_at":"2015-10-19T10:48:13Z","git_url":"git://github.com/ArmadilloXX/flashcards.git","ssh_url":"git@github.com:ArmadilloXX/flashcards.git","clone_url":"https://github.com/ArmadilloXX/flashcards.git","svn_url":"https://github.com/ArmadilloXX/flashcards","homepage":null,"size":530,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"ArmadilloXX:master","ref":"master","sha":"c627569a352ca1c1df62b54656536aa3012e502d","user":{"login":"ArmadilloXX","id":6916657,"avatar_url":"https://avatars.githubusercontent.com/u/6916657?v=3","gravatar_id":"","url":"https://api.github.com/users/ArmadilloXX","html_url":"https://github.com/ArmadilloXX","followers_url":"https://api.github.com/users/ArmadilloXX/followers","following_url":"https://api.github.com/users/ArmadilloXX/following{/other_user}","gists_url":"https://api.github.com/users/ArmadilloXX/gists{/gist_id}","starred_url":"https://api.github.com/users/ArmadilloXX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArmadilloXX/subscriptions","organizations_url":"https://api.github.com/users/ArmadilloXX/orgs","repos_url":"https://api.github.com/users/ArmadilloXX/repos","events_url":"https://api.github.com/users/ArmadilloXX/events{/privacy}","received_events_url":"https://api.github.com/users/ArmadilloXX/received_events","type":"User","site_admin":false},"repo":{"id":42848111,"name":"flashcards","full_name":"ArmadilloXX/flashcards","owner":{"login":"ArmadilloXX","id":6916657,"avatar_url":"https://avatars.githubusercontent.com/u/6916657?v=3","gravatar_id":"","url":"https://api.github.com/users/ArmadilloXX","html_url":"https://github.com/ArmadilloXX","followers_url":"https://api.github.com/users/ArmadilloXX/followers","following_url":"https://api.github.com/users/ArmadilloXX/following{/other_user}","gists_url":"https://api.github.com/users/ArmadilloXX/gists{/gist_id}","starred_url":"https://api.github.com/users/ArmadilloXX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ArmadilloXX/subscriptions","organizations_url":"https://api.github.com/users/ArmadilloXX/orgs","repos_url":"https://api.github.com/users/ArmadilloXX/repos","events_url":"https://api.github.com/users/ArmadilloXX/events{/privacy}","received_events_url":"https://api.github.com/users/ArmadilloXX/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ArmadilloXX/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/ArmadilloXX/flashcards","forks_url":"https://api.github.com/repos/ArmadilloXX/flashcards/forks","keys_url":"https://api.github.com/repos/ArmadilloXX/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ArmadilloXX/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ArmadilloXX/flashcards/teams","hooks_url":"https://api.github.com/repos/ArmadilloXX/flashcards/hooks","issue_events_url":"https://api.github.com/repos/ArmadilloXX/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/ArmadilloXX/flashcards/events","assignees_url":"https://api.github.com/repos/ArmadilloXX/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/ArmadilloXX/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/ArmadilloXX/flashcards/tags","blobs_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ArmadilloXX/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/ArmadilloXX/flashcards/languages","stargazers_url":"https://api.github.com/repos/ArmadilloXX/flashcards/stargazers","contributors_url":"https://api.github.com/repos/ArmadilloXX/flashcards/contributors","subscribers_url":"https://api.github.com/repos/ArmadilloXX/flashcards/subscribers","subscription_url":"https://api.github.com/repos/ArmadilloXX/flashcards/subscription","commits_url":"https://api.github.com/repos/ArmadilloXX/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/ArmadilloXX/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/ArmadilloXX/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/ArmadilloXX/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/ArmadilloXX/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/ArmadilloXX/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ArmadilloXX/flashcards/merges","archive_url":"https://api.github.com/repos/ArmadilloXX/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ArmadilloXX/flashcards/downloads","issues_url":"https://api.github.com/repos/ArmadilloXX/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/ArmadilloXX/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/ArmadilloXX/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ArmadilloXX/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/ArmadilloXX/flashcards/releases{/id}","created_at":"2015-09-21T06:32:52Z","updated_at":"2015-09-21T06:34:53Z","pushed_at":"2015-10-19T10:48:13Z","git_url":"git://github.com/ArmadilloXX/flashcards.git","ssh_url":"git@github.com:ArmadilloXX/flashcards.git","clone_url":"https://github.com/ArmadilloXX/flashcards.git","svn_url":"https://github.com/ArmadilloXX/flashcards","homepage":null,"size":530,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/6"},"html":{"href":"https://github.com/ArmadilloXX/flashcards/pull/6"},"issue":{"href":"https://api.github.com/repos/ArmadilloXX/flashcards/issues/6"},"comments":{"href":"https://api.github.com/repos/ArmadilloXX/flashcards/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ArmadilloXX/flashcards/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/ArmadilloXX/flashcards/statuses/927ef375d00bed8fa5fabafb54a3d2b3ac0e43d6"}}}}