{"action":"created","comment":{"url":"https://api.github.com/repos/lewagon/alumni/pulls/comments/65687034","id":65687034,"diff_hunk":"@@ -1,5 +1,8 @@\n class Api::V1::TestimonialsController < Api::V1::BaseController\n   def index\n     @testimonials = Testimonial.where locale: params[:locale]\n+    if params[:city]\n+      @testimonials.to_a.select!{ |testimonial| testimonial.user.batch.city.name.downcase == params[:city] }","path":"app/controllers/api/v1/testimonials_controller.rb","position":5,"original_position":5,"commit_id":"926c14022610238e40d8c8c76860a14535f4c878","original_commit_id":"926c14022610238e40d8c8c76860a14535f4c878","user":{"login":"ssaunier","id":414418,"avatar_url":"https://avatars.githubusercontent.com/u/414418?v=3","gravatar_id":"","url":"https://api.github.com/users/ssaunier","html_url":"https://github.com/ssaunier","followers_url":"https://api.github.com/users/ssaunier/followers","following_url":"https://api.github.com/users/ssaunier/following{/other_user}","gists_url":"https://api.github.com/users/ssaunier/gists{/gist_id}","starred_url":"https://api.github.com/users/ssaunier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssaunier/subscriptions","organizations_url":"https://api.github.com/users/ssaunier/orgs","repos_url":"https://api.github.com/users/ssaunier/repos","events_url":"https://api.github.com/users/ssaunier/events{/privacy}","received_events_url":"https://api.github.com/users/ssaunier/received_events","type":"User","site_admin":false},"body":"Utilise plutôt le slug de la ville. ","created_at":"2016-06-03T10:23:39Z","updated_at":"2016-06-03T10:23:39Z","html_url":"https://github.com/lewagon/alumni/pull/234#discussion_r65687034","pull_request_url":"https://api.github.com/repos/lewagon/alumni/pulls/234","_links":{"self":{"href":"https://api.github.com/repos/lewagon/alumni/pulls/comments/65687034"},"html":{"href":"https://github.com/lewagon/alumni/pull/234#discussion_r65687034"},"pull_request":{"href":"https://api.github.com/repos/lewagon/alumni/pulls/234"}}},"pull_request":{"url":"https://api.github.com/repos/lewagon/alumni/pulls/234","id":72485066,"html_url":"https://github.com/lewagon/alumni/pull/234","diff_url":"https://github.com/lewagon/alumni/pull/234.diff","patch_url":"https://github.com/lewagon/alumni/pull/234.patch","issue_url":"https://api.github.com/repos/lewagon/alumni/issues/234","number":234,"state":"open","locked":false,"title":"Testimonials by city","user":{"login":"Papillard","id":2471555,"avatar_url":"https://avatars.githubusercontent.com/u/2471555?v=3","gravatar_id":"","url":"https://api.github.com/users/Papillard","html_url":"https://github.com/Papillard","followers_url":"https://api.github.com/users/Papillard/followers","following_url":"https://api.github.com/users/Papillard/following{/other_user}","gists_url":"https://api.github.com/users/Papillard/gists{/gist_id}","starred_url":"https://api.github.com/users/Papillard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Papillard/subscriptions","organizations_url":"https://api.github.com/users/Papillard/orgs","repos_url":"https://api.github.com/users/Papillard/repos","events_url":"https://api.github.com/users/Papillard/events{/privacy}","received_events_url":"https://api.github.com/users/Papillard/received_events","type":"User","site_admin":false},"body":"@ssaunier les villes m'ont envoyé des testimonials du coup je vais ajouter des témoignages **par ville** sur les cities#show sur www. ","created_at":"2016-06-03T10:20:14Z","updated_at":"2016-06-03T10:23:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ebae309058c258809f5c7853f9d8eb9e0e3e259f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lewagon/alumni/pulls/234/commits","review_comments_url":"https://api.github.com/repos/lewagon/alumni/pulls/234/comments","review_comment_url":"https://api.github.com/repos/lewagon/alumni/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lewagon/alumni/issues/234/comments","statuses_url":"https://api.github.com/repos/lewagon/alumni/statuses/926c14022610238e40d8c8c76860a14535f4c878","head":{"label":"lewagon:testimonials-by-city","ref":"testimonials-by-city","sha":"926c14022610238e40d8c8c76860a14535f4c878","user":{"login":"lewagon","id":5470001,"avatar_url":"https://avatars.githubusercontent.com/u/5470001?v=3","gravatar_id":"","url":"https://api.github.com/users/lewagon","html_url":"https://github.com/lewagon","followers_url":"https://api.github.com/users/lewagon/followers","following_url":"https://api.github.com/users/lewagon/following{/other_user}","gists_url":"https://api.github.com/users/lewagon/gists{/gist_id}","starred_url":"https://api.github.com/users/lewagon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewagon/subscriptions","organizations_url":"https://api.github.com/users/lewagon/orgs","repos_url":"https://api.github.com/users/lewagon/repos","events_url":"https://api.github.com/users/lewagon/events{/privacy}","received_events_url":"https://api.github.com/users/lewagon/received_events","type":"Organization","site_admin":false},"repo":{"id":39722941,"name":"alumni","full_name":"lewagon/alumni","owner":{"login":"lewagon","id":5470001,"avatar_url":"https://avatars.githubusercontent.com/u/5470001?v=3","gravatar_id":"","url":"https://api.github.com/users/lewagon","html_url":"https://github.com/lewagon","followers_url":"https://api.github.com/users/lewagon/followers","following_url":"https://api.github.com/users/lewagon/following{/other_user}","gists_url":"https://api.github.com/users/lewagon/gists{/gist_id}","starred_url":"https://api.github.com/users/lewagon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewagon/subscriptions","organizations_url":"https://api.github.com/users/lewagon/orgs","repos_url":"https://api.github.com/users/lewagon/repos","events_url":"https://api.github.com/users/lewagon/events{/privacy}","received_events_url":"https://api.github.com/users/lewagon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lewagon/alumni","description":"#resources / #help / #jobs / #milestones","fork":false,"url":"https://api.github.com/repos/lewagon/alumni","forks_url":"https://api.github.com/repos/lewagon/alumni/forks","keys_url":"https://api.github.com/repos/lewagon/alumni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lewagon/alumni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lewagon/alumni/teams","hooks_url":"https://api.github.com/repos/lewagon/alumni/hooks","issue_events_url":"https://api.github.com/repos/lewagon/alumni/issues/events{/number}","events_url":"https://api.github.com/repos/lewagon/alumni/events","assignees_url":"https://api.github.com/repos/lewagon/alumni/assignees{/user}","branches_url":"https://api.github.com/repos/lewagon/alumni/branches{/branch}","tags_url":"https://api.github.com/repos/lewagon/alumni/tags","blobs_url":"https://api.github.com/repos/lewagon/alumni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lewagon/alumni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lewagon/alumni/git/refs{/sha}","trees_url":"https://api.github.com/repos/lewagon/alumni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lewagon/alumni/statuses/{sha}","languages_url":"https://api.github.com/repos/lewagon/alumni/languages","stargazers_url":"https://api.github.com/repos/lewagon/alumni/stargazers","contributors_url":"https://api.github.com/repos/lewagon/alumni/contributors","subscribers_url":"https://api.github.com/repos/lewagon/alumni/subscribers","subscription_url":"https://api.github.com/repos/lewagon/alumni/subscription","commits_url":"https://api.github.com/repos/lewagon/alumni/commits{/sha}","git_commits_url":"https://api.github.com/repos/lewagon/alumni/git/commits{/sha}","comments_url":"https://api.github.com/repos/lewagon/alumni/comments{/number}","issue_comment_url":"https://api.github.com/repos/lewagon/alumni/issues/comments{/number}","contents_url":"https://api.github.com/repos/lewagon/alumni/contents/{+path}","compare_url":"https://api.github.com/repos/lewagon/alumni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lewagon/alumni/merges","archive_url":"https://api.github.com/repos/lewagon/alumni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lewagon/alumni/downloads","issues_url":"https://api.github.com/repos/lewagon/alumni/issues{/number}","pulls_url":"https://api.github.com/repos/lewagon/alumni/pulls{/number}","milestones_url":"https://api.github.com/repos/lewagon/alumni/milestones{/number}","notifications_url":"https://api.github.com/repos/lewagon/alumni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lewagon/alumni/labels{/name}","releases_url":"https://api.github.com/repos/lewagon/alumni/releases{/id}","deployments_url":"https://api.github.com/repos/lewagon/alumni/deployments","created_at":"2015-07-26T11:15:06Z","updated_at":"2016-04-29T10:38:18Z","pushed_at":"2016-06-03T10:20:14Z","git_url":"git://github.com/lewagon/alumni.git","ssh_url":"git@github.com:lewagon/alumni.git","clone_url":"https://github.com/lewagon/alumni.git","svn_url":"https://github.com/lewagon/alumni","homepage":"http://alumni.lewagon.org","size":1994,"stargazers_count":9,"watchers_count":9,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":14,"forks":4,"open_issues":14,"watchers":9,"default_branch":"master"}},"base":{"label":"lewagon:master","ref":"master","sha":"354f12d78a022cf488bd53c6841d6acb1b5a838d","user":{"login":"lewagon","id":5470001,"avatar_url":"https://avatars.githubusercontent.com/u/5470001?v=3","gravatar_id":"","url":"https://api.github.com/users/lewagon","html_url":"https://github.com/lewagon","followers_url":"https://api.github.com/users/lewagon/followers","following_url":"https://api.github.com/users/lewagon/following{/other_user}","gists_url":"https://api.github.com/users/lewagon/gists{/gist_id}","starred_url":"https://api.github.com/users/lewagon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewagon/subscriptions","organizations_url":"https://api.github.com/users/lewagon/orgs","repos_url":"https://api.github.com/users/lewagon/repos","events_url":"https://api.github.com/users/lewagon/events{/privacy}","received_events_url":"https://api.github.com/users/lewagon/received_events","type":"Organization","site_admin":false},"repo":{"id":39722941,"name":"alumni","full_name":"lewagon/alumni","owner":{"login":"lewagon","id":5470001,"avatar_url":"https://avatars.githubusercontent.com/u/5470001?v=3","gravatar_id":"","url":"https://api.github.com/users/lewagon","html_url":"https://github.com/lewagon","followers_url":"https://api.github.com/users/lewagon/followers","following_url":"https://api.github.com/users/lewagon/following{/other_user}","gists_url":"https://api.github.com/users/lewagon/gists{/gist_id}","starred_url":"https://api.github.com/users/lewagon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewagon/subscriptions","organizations_url":"https://api.github.com/users/lewagon/orgs","repos_url":"https://api.github.com/users/lewagon/repos","events_url":"https://api.github.com/users/lewagon/events{/privacy}","received_events_url":"https://api.github.com/users/lewagon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lewagon/alumni","description":"#resources / #help / #jobs / #milestones","fork":false,"url":"https://api.github.com/repos/lewagon/alumni","forks_url":"https://api.github.com/repos/lewagon/alumni/forks","keys_url":"https://api.github.com/repos/lewagon/alumni/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lewagon/alumni/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lewagon/alumni/teams","hooks_url":"https://api.github.com/repos/lewagon/alumni/hooks","issue_events_url":"https://api.github.com/repos/lewagon/alumni/issues/events{/number}","events_url":"https://api.github.com/repos/lewagon/alumni/events","assignees_url":"https://api.github.com/repos/lewagon/alumni/assignees{/user}","branches_url":"https://api.github.com/repos/lewagon/alumni/branches{/branch}","tags_url":"https://api.github.com/repos/lewagon/alumni/tags","blobs_url":"https://api.github.com/repos/lewagon/alumni/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lewagon/alumni/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lewagon/alumni/git/refs{/sha}","trees_url":"https://api.github.com/repos/lewagon/alumni/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lewagon/alumni/statuses/{sha}","languages_url":"https://api.github.com/repos/lewagon/alumni/languages","stargazers_url":"https://api.github.com/repos/lewagon/alumni/stargazers","contributors_url":"https://api.github.com/repos/lewagon/alumni/contributors","subscribers_url":"https://api.github.com/repos/lewagon/alumni/subscribers","subscription_url":"https://api.github.com/repos/lewagon/alumni/subscription","commits_url":"https://api.github.com/repos/lewagon/alumni/commits{/sha}","git_commits_url":"https://api.github.com/repos/lewagon/alumni/git/commits{/sha}","comments_url":"https://api.github.com/repos/lewagon/alumni/comments{/number}","issue_comment_url":"https://api.github.com/repos/lewagon/alumni/issues/comments{/number}","contents_url":"https://api.github.com/repos/lewagon/alumni/contents/{+path}","compare_url":"https://api.github.com/repos/lewagon/alumni/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lewagon/alumni/merges","archive_url":"https://api.github.com/repos/lewagon/alumni/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lewagon/alumni/downloads","issues_url":"https://api.github.com/repos/lewagon/alumni/issues{/number}","pulls_url":"https://api.github.com/repos/lewagon/alumni/pulls{/number}","milestones_url":"https://api.github.com/repos/lewagon/alumni/milestones{/number}","notifications_url":"https://api.github.com/repos/lewagon/alumni/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lewagon/alumni/labels{/name}","releases_url":"https://api.github.com/repos/lewagon/alumni/releases{/id}","deployments_url":"https://api.github.com/repos/lewagon/alumni/deployments","created_at":"2015-07-26T11:15:06Z","updated_at":"2016-04-29T10:38:18Z","pushed_at":"2016-06-03T10:20:14Z","git_url":"git://github.com/lewagon/alumni.git","ssh_url":"git@github.com:lewagon/alumni.git","clone_url":"https://github.com/lewagon/alumni.git","svn_url":"https://github.com/lewagon/alumni","homepage":"http://alumni.lewagon.org","size":1994,"stargazers_count":9,"watchers_count":9,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":14,"forks":4,"open_issues":14,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lewagon/alumni/pulls/234"},"html":{"href":"https://github.com/lewagon/alumni/pull/234"},"issue":{"href":"https://api.github.com/repos/lewagon/alumni/issues/234"},"comments":{"href":"https://api.github.com/repos/lewagon/alumni/issues/234/comments"},"review_comments":{"href":"https://api.github.com/repos/lewagon/alumni/pulls/234/comments"},"review_comment":{"href":"https://api.github.com/repos/lewagon/alumni/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lewagon/alumni/pulls/234/commits"},"statuses":{"href":"https://api.github.com/repos/lewagon/alumni/statuses/926c14022610238e40d8c8c76860a14535f4c878"}}}}
{"actor":{"display_login":"ssaunier"}}