{"action":"created","comment":{"url":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/comments/43666815","id":43666815,"diff_hunk":"@@ -163,23 +163,32 @@ class ApplicationController @Inject()(\n     })\n   }\n \n-\n   /**\n    * Service for upvoting a guide\n    *\n    * @param owner Owner of the repository on the repo system (GitHub)\n    * @param repositoryName repository name on the repo system (GitHub)\n-   * @param title title of the guide\n+   * @param id id of the guide\n    * @param voteType if the vote is upvote or downvote\n    * @return the guide\n    */\n-  def upVote(owner: String, repositoryName: String, title: String, voteType: String) = SecuredAction.async { implicit request =>\n+  def upVote(owner: String, repositoryName: String, id: Int, voteType: String) = SecuredAction.async { implicit request =>\n     val repoName: String = owner + \"/\" + repositoryName\n     repoService.getFromNeoOrGitHub(Some(request.identity), repoName).flatMap({\n       case Some(repository) =>\n         voteType match {\n-          case \"upvote\" => quickstartService.updateVote(repository, true, title, request.identity).map(guide => Ok(Json.toJson(guide)))\n-          case _ => quickstartService.updateVote(repository, false, title,request.identity).map(guide => Ok(Json.toJson(guide)))\n+          case \"upvote\" => quickstartService.updateVote(repository, true, id, request.identity)\n+            .map({\n+              case Some(guide) => Ok(Json.toJson(guide))\n+              case None => NotFound(views.html.error(\"notFound\", 404, \"Not Found\",\n+                \"We cannot find the guide, it is likely that you misspelled it, try something else !\"))\n+            })\n+          case _ => quickstartService.updateVote(repository, false, id,request.identity)\n+            .map({\n+              case Some(guide) => Ok(Json.toJson(guide))\n+              case None => println(\"===>test2\");NotFound(views.html.error(\"notFound\", 404, \"Not Found\",\n+                \"We cannot find the guide, it is likely that you misspelled it, try something else !\"))\n+            })\n         }\n       case None => Future(NotFound(views.html.error(\"notFound\", 404, \"Not Found\",\n         \"We cannot find the repository feedback page, it is likely that you misspelled it, try something else !\")))","path":"app/controllers/ApplicationController.scala","position":46,"original_position":46,"commit_id":"9daf91f789a4da99a34aff07649b6397814f24a9","original_commit_id":"9daf91f789a4da99a34aff07649b6397814f24a9","user":{"login":"jacobtardieu","id":3583628,"avatar_url":"https://avatars.githubusercontent.com/u/3583628?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobtardieu","html_url":"https://github.com/jacobtardieu","followers_url":"https://api.github.com/users/jacobtardieu/followers","following_url":"https://api.github.com/users/jacobtardieu/following{/other_user}","gists_url":"https://api.github.com/users/jacobtardieu/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobtardieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobtardieu/subscriptions","organizations_url":"https://api.github.com/users/jacobtardieu/orgs","repos_url":"https://api.github.com/users/jacobtardieu/repos","events_url":"https://api.github.com/users/jacobtardieu/events{/privacy}","received_events_url":"https://api.github.com/users/jacobtardieu/received_events","type":"User","site_admin":false},"body":"Same as above.","created_at":"2015-11-02T19:06:07Z","updated_at":"2015-11-02T19:06:07Z","html_url":"https://github.com/gitlinks/gitrank-web/pull/132#discussion_r43666815","pull_request_url":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/132","_links":{"self":{"href":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/comments/43666815"},"html":{"href":"https://github.com/gitlinks/gitrank-web/pull/132#discussion_r43666815"},"pull_request":{"href":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/132"}}},"pull_request":{"url":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/132","id":49069050,"html_url":"https://github.com/gitlinks/gitrank-web/pull/132","diff_url":"https://github.com/gitlinks/gitrank-web/pull/132.diff","patch_url":"https://github.com/gitlinks/gitrank-web/pull/132.patch","issue_url":"https://api.github.com/repos/gitlinks/gitrank-web/issues/132","number":132,"state":"open","locked":false,"title":"Feature/robust start up","user":{"login":"callicles","id":4429209,"avatar_url":"https://avatars.githubusercontent.com/u/4429209?v=3","gravatar_id":"","url":"https://api.github.com/users/callicles","html_url":"https://github.com/callicles","followers_url":"https://api.github.com/users/callicles/followers","following_url":"https://api.github.com/users/callicles/following{/other_user}","gists_url":"https://api.github.com/users/callicles/gists{/gist_id}","starred_url":"https://api.github.com/users/callicles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/callicles/subscriptions","organizations_url":"https://api.github.com/users/callicles/orgs","repos_url":"https://api.github.com/users/callicles/repos","events_url":"https://api.github.com/users/callicles/events{/privacy}","received_events_url":"https://api.github.com/users/callicles/received_events","type":"User","site_admin":false},"body":"Fixes #131\r\nFixes #32 \r\nFixes #124  ","created_at":"2015-10-28T21:24:22Z","updated_at":"2015-11-02T19:06:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4943a9252aaa298366272c1ffc87b7f288607013","assignee":{"login":"brunnoattorre","id":5482242,"avatar_url":"https://avatars.githubusercontent.com/u/5482242?v=3","gravatar_id":"","url":"https://api.github.com/users/brunnoattorre","html_url":"https://github.com/brunnoattorre","followers_url":"https://api.github.com/users/brunnoattorre/followers","following_url":"https://api.github.com/users/brunnoattorre/following{/other_user}","gists_url":"https://api.github.com/users/brunnoattorre/gists{/gist_id}","starred_url":"https://api.github.com/users/brunnoattorre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunnoattorre/subscriptions","organizations_url":"https://api.github.com/users/brunnoattorre/orgs","repos_url":"https://api.github.com/users/brunnoattorre/repos","events_url":"https://api.github.com/users/brunnoattorre/events{/privacy}","received_events_url":"https://api.github.com/users/brunnoattorre/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/132/commits","review_comments_url":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/132/comments","review_comment_url":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gitlinks/gitrank-web/issues/132/comments","statuses_url":"https://api.github.com/repos/gitlinks/gitrank-web/statuses/9daf91f789a4da99a34aff07649b6397814f24a9","head":{"label":"gitlinks:feature/robustStartUp","ref":"feature/robustStartUp","sha":"9daf91f789a4da99a34aff07649b6397814f24a9","user":{"login":"gitlinks","id":12600538,"avatar_url":"https://avatars.githubusercontent.com/u/12600538?v=3","gravatar_id":"","url":"https://api.github.com/users/gitlinks","html_url":"https://github.com/gitlinks","followers_url":"https://api.github.com/users/gitlinks/followers","following_url":"https://api.github.com/users/gitlinks/following{/other_user}","gists_url":"https://api.github.com/users/gitlinks/gists{/gist_id}","starred_url":"https://api.github.com/users/gitlinks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitlinks/subscriptions","organizations_url":"https://api.github.com/users/gitlinks/orgs","repos_url":"https://api.github.com/users/gitlinks/repos","events_url":"https://api.github.com/users/gitlinks/events{/privacy}","received_events_url":"https://api.github.com/users/gitlinks/received_events","type":"Organization","site_admin":false},"repo":{"id":36321709,"name":"gitrank-web","full_name":"gitlinks/gitrank-web","owner":{"login":"gitlinks","id":12600538,"avatar_url":"https://avatars.githubusercontent.com/u/12600538?v=3","gravatar_id":"","url":"https://api.github.com/users/gitlinks","html_url":"https://github.com/gitlinks","followers_url":"https://api.github.com/users/gitlinks/followers","following_url":"https://api.github.com/users/gitlinks/following{/other_user}","gists_url":"https://api.github.com/users/gitlinks/gists{/gist_id}","starred_url":"https://api.github.com/users/gitlinks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitlinks/subscriptions","organizations_url":"https://api.github.com/users/gitlinks/orgs","repos_url":"https://api.github.com/users/gitlinks/repos","events_url":"https://api.github.com/users/gitlinks/events{/privacy}","received_events_url":"https://api.github.com/users/gitlinks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gitlinks/gitrank-web","description":"Web Play/Scala application delivery gitrank frontend.","fork":false,"url":"https://api.github.com/repos/gitlinks/gitrank-web","forks_url":"https://api.github.com/repos/gitlinks/gitrank-web/forks","keys_url":"https://api.github.com/repos/gitlinks/gitrank-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gitlinks/gitrank-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gitlinks/gitrank-web/teams","hooks_url":"https://api.github.com/repos/gitlinks/gitrank-web/hooks","issue_events_url":"https://api.github.com/repos/gitlinks/gitrank-web/issues/events{/number}","events_url":"https://api.github.com/repos/gitlinks/gitrank-web/events","assignees_url":"https://api.github.com/repos/gitlinks/gitrank-web/assignees{/user}","branches_url":"https://api.github.com/repos/gitlinks/gitrank-web/branches{/branch}","tags_url":"https://api.github.com/repos/gitlinks/gitrank-web/tags","blobs_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gitlinks/gitrank-web/statuses/{sha}","languages_url":"https://api.github.com/repos/gitlinks/gitrank-web/languages","stargazers_url":"https://api.github.com/repos/gitlinks/gitrank-web/stargazers","contributors_url":"https://api.github.com/repos/gitlinks/gitrank-web/contributors","subscribers_url":"https://api.github.com/repos/gitlinks/gitrank-web/subscribers","subscription_url":"https://api.github.com/repos/gitlinks/gitrank-web/subscription","commits_url":"https://api.github.com/repos/gitlinks/gitrank-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/gitlinks/gitrank-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/gitlinks/gitrank-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/gitlinks/gitrank-web/contents/{+path}","compare_url":"https://api.github.com/repos/gitlinks/gitrank-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gitlinks/gitrank-web/merges","archive_url":"https://api.github.com/repos/gitlinks/gitrank-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gitlinks/gitrank-web/downloads","issues_url":"https://api.github.com/repos/gitlinks/gitrank-web/issues{/number}","pulls_url":"https://api.github.com/repos/gitlinks/gitrank-web/pulls{/number}","milestones_url":"https://api.github.com/repos/gitlinks/gitrank-web/milestones{/number}","notifications_url":"https://api.github.com/repos/gitlinks/gitrank-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gitlinks/gitrank-web/labels{/name}","releases_url":"https://api.github.com/repos/gitlinks/gitrank-web/releases{/id}","created_at":"2015-05-26T20:25:21Z","updated_at":"2015-10-18T10:56:14Z","pushed_at":"2015-11-02T17:18:17Z","git_url":"git://github.com/gitlinks/gitrank-web.git","ssh_url":"git@github.com:gitlinks/gitrank-web.git","clone_url":"https://github.com/gitlinks/gitrank-web.git","svn_url":"https://github.com/gitlinks/gitrank-web","homepage":"https://gitrank.io","size":5025,"stargazers_count":5,"watchers_count":5,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":28,"forks":2,"open_issues":28,"watchers":5,"default_branch":"master"}},"base":{"label":"gitlinks:develop","ref":"develop","sha":"6e5f6542079a025bc1de59b82c0915d7972a36b5","user":{"login":"gitlinks","id":12600538,"avatar_url":"https://avatars.githubusercontent.com/u/12600538?v=3","gravatar_id":"","url":"https://api.github.com/users/gitlinks","html_url":"https://github.com/gitlinks","followers_url":"https://api.github.com/users/gitlinks/followers","following_url":"https://api.github.com/users/gitlinks/following{/other_user}","gists_url":"https://api.github.com/users/gitlinks/gists{/gist_id}","starred_url":"https://api.github.com/users/gitlinks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitlinks/subscriptions","organizations_url":"https://api.github.com/users/gitlinks/orgs","repos_url":"https://api.github.com/users/gitlinks/repos","events_url":"https://api.github.com/users/gitlinks/events{/privacy}","received_events_url":"https://api.github.com/users/gitlinks/received_events","type":"Organization","site_admin":false},"repo":{"id":36321709,"name":"gitrank-web","full_name":"gitlinks/gitrank-web","owner":{"login":"gitlinks","id":12600538,"avatar_url":"https://avatars.githubusercontent.com/u/12600538?v=3","gravatar_id":"","url":"https://api.github.com/users/gitlinks","html_url":"https://github.com/gitlinks","followers_url":"https://api.github.com/users/gitlinks/followers","following_url":"https://api.github.com/users/gitlinks/following{/other_user}","gists_url":"https://api.github.com/users/gitlinks/gists{/gist_id}","starred_url":"https://api.github.com/users/gitlinks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitlinks/subscriptions","organizations_url":"https://api.github.com/users/gitlinks/orgs","repos_url":"https://api.github.com/users/gitlinks/repos","events_url":"https://api.github.com/users/gitlinks/events{/privacy}","received_events_url":"https://api.github.com/users/gitlinks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gitlinks/gitrank-web","description":"Web Play/Scala application delivery gitrank frontend.","fork":false,"url":"https://api.github.com/repos/gitlinks/gitrank-web","forks_url":"https://api.github.com/repos/gitlinks/gitrank-web/forks","keys_url":"https://api.github.com/repos/gitlinks/gitrank-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gitlinks/gitrank-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gitlinks/gitrank-web/teams","hooks_url":"https://api.github.com/repos/gitlinks/gitrank-web/hooks","issue_events_url":"https://api.github.com/repos/gitlinks/gitrank-web/issues/events{/number}","events_url":"https://api.github.com/repos/gitlinks/gitrank-web/events","assignees_url":"https://api.github.com/repos/gitlinks/gitrank-web/assignees{/user}","branches_url":"https://api.github.com/repos/gitlinks/gitrank-web/branches{/branch}","tags_url":"https://api.github.com/repos/gitlinks/gitrank-web/tags","blobs_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gitlinks/gitrank-web/statuses/{sha}","languages_url":"https://api.github.com/repos/gitlinks/gitrank-web/languages","stargazers_url":"https://api.github.com/repos/gitlinks/gitrank-web/stargazers","contributors_url":"https://api.github.com/repos/gitlinks/gitrank-web/contributors","subscribers_url":"https://api.github.com/repos/gitlinks/gitrank-web/subscribers","subscription_url":"https://api.github.com/repos/gitlinks/gitrank-web/subscription","commits_url":"https://api.github.com/repos/gitlinks/gitrank-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/gitlinks/gitrank-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/gitlinks/gitrank-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/gitlinks/gitrank-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/gitlinks/gitrank-web/contents/{+path}","compare_url":"https://api.github.com/repos/gitlinks/gitrank-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gitlinks/gitrank-web/merges","archive_url":"https://api.github.com/repos/gitlinks/gitrank-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gitlinks/gitrank-web/downloads","issues_url":"https://api.github.com/repos/gitlinks/gitrank-web/issues{/number}","pulls_url":"https://api.github.com/repos/gitlinks/gitrank-web/pulls{/number}","milestones_url":"https://api.github.com/repos/gitlinks/gitrank-web/milestones{/number}","notifications_url":"https://api.github.com/repos/gitlinks/gitrank-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gitlinks/gitrank-web/labels{/name}","releases_url":"https://api.github.com/repos/gitlinks/gitrank-web/releases{/id}","created_at":"2015-05-26T20:25:21Z","updated_at":"2015-10-18T10:56:14Z","pushed_at":"2015-11-02T17:18:17Z","git_url":"git://github.com/gitlinks/gitrank-web.git","ssh_url":"git@github.com:gitlinks/gitrank-web.git","clone_url":"https://github.com/gitlinks/gitrank-web.git","svn_url":"https://github.com/gitlinks/gitrank-web","homepage":"https://gitrank.io","size":5025,"stargazers_count":5,"watchers_count":5,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":28,"forks":2,"open_issues":28,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/132"},"html":{"href":"https://github.com/gitlinks/gitrank-web/pull/132"},"issue":{"href":"https://api.github.com/repos/gitlinks/gitrank-web/issues/132"},"comments":{"href":"https://api.github.com/repos/gitlinks/gitrank-web/issues/132/comments"},"review_comments":{"href":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/132/comments"},"review_comment":{"href":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gitlinks/gitrank-web/pulls/132/commits"},"statuses":{"href":"https://api.github.com/repos/gitlinks/gitrank-web/statuses/9daf91f789a4da99a34aff07649b6397814f24a9"}}}}