{"action":"created","comment":{"url":"https://api.github.com/repos/andela-toduah/gobble-flow/pulls/comments/46757344","id":46757344,"diff_hunk":"@@ -14,6 +16,28 @@ def create\n \n   private\n \n+    def short_url_unique?\n+      return if short_link_taken?\n+      return if anon_passing_short_link?\n+      true\n+    end\n+\n+    def short_link_taken?","path":"app/controllers/links_controller.rb","position":19,"original_position":19,"commit_id":"64e1fb907636a6a5036c5ec20cf76094dde55e46","original_commit_id":"64e1fb907636a6a5036c5ec20cf76094dde55e46","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":"Inconsistent indentation detected.","created_at":"2015-12-05T11:22:18Z","updated_at":"2015-12-05T11:22:18Z","html_url":"https://github.com/andela-toduah/gobble-flow/pull/15#discussion_r46757344","pull_request_url":"https://api.github.com/repos/andela-toduah/gobble-flow/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/andela-toduah/gobble-flow/pulls/comments/46757344"},"html":{"href":"https://github.com/andela-toduah/gobble-flow/pull/15#discussion_r46757344"},"pull_request":{"href":"https://api.github.com/repos/andela-toduah/gobble-flow/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/andela-toduah/gobble-flow/pulls/15","id":52753041,"html_url":"https://github.com/andela-toduah/gobble-flow/pull/15","diff_url":"https://github.com/andela-toduah/gobble-flow/pull/15.diff","patch_url":"https://github.com/andela-toduah/gobble-flow/pull/15.patch","issue_url":"https://api.github.com/repos/andela-toduah/gobble-flow/issues/15","number":15,"state":"open","locked":false,"title":"Fix Bug with Creating Links When Vanity String has already been used","user":{"login":"andela-toduah","id":15727582,"avatar_url":"https://avatars.githubusercontent.com/u/15727582?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-toduah","html_url":"https://github.com/andela-toduah","followers_url":"https://api.github.com/users/andela-toduah/followers","following_url":"https://api.github.com/users/andela-toduah/following{/other_user}","gists_url":"https://api.github.com/users/andela-toduah/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-toduah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-toduah/subscriptions","organizations_url":"https://api.github.com/users/andela-toduah/orgs","repos_url":"https://api.github.com/users/andela-toduah/repos","events_url":"https://api.github.com/users/andela-toduah/events{/privacy}","received_events_url":"https://api.github.com/users/andela-toduah/received_events","type":"User","site_admin":false},"body":"Why?\r\nUsers should be notified when the vanity string they're passing in has already been used by someone else.\r\n\r\nHow?\r\nCorrect Link controller to first check if vanity string is unique before using to shorten.\r\nIf vanity string is not unique, an error message is displayed.","created_at":"2015-12-05T11:22:14Z","updated_at":"2015-12-05T11:22:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"33a8a559be1e075981e27a89d8d077a68032f916","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andela-toduah/gobble-flow/pulls/15/commits","review_comments_url":"https://api.github.com/repos/andela-toduah/gobble-flow/pulls/15/comments","review_comment_url":"https://api.github.com/repos/andela-toduah/gobble-flow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela-toduah/gobble-flow/issues/15/comments","statuses_url":"https://api.github.com/repos/andela-toduah/gobble-flow/statuses/64e1fb907636a6a5036c5ec20cf76094dde55e46","head":{"label":"andela-toduah:bug-vanity-taken-109570826","ref":"bug-vanity-taken-109570826","sha":"64e1fb907636a6a5036c5ec20cf76094dde55e46","user":{"login":"andela-toduah","id":15727582,"avatar_url":"https://avatars.githubusercontent.com/u/15727582?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-toduah","html_url":"https://github.com/andela-toduah","followers_url":"https://api.github.com/users/andela-toduah/followers","following_url":"https://api.github.com/users/andela-toduah/following{/other_user}","gists_url":"https://api.github.com/users/andela-toduah/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-toduah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-toduah/subscriptions","organizations_url":"https://api.github.com/users/andela-toduah/orgs","repos_url":"https://api.github.com/users/andela-toduah/repos","events_url":"https://api.github.com/users/andela-toduah/events{/privacy}","received_events_url":"https://api.github.com/users/andela-toduah/received_events","type":"User","site_admin":false},"repo":{"id":47283023,"name":"gobble-flow","full_name":"andela-toduah/gobble-flow","owner":{"login":"andela-toduah","id":15727582,"avatar_url":"https://avatars.githubusercontent.com/u/15727582?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-toduah","html_url":"https://github.com/andela-toduah","followers_url":"https://api.github.com/users/andela-toduah/followers","following_url":"https://api.github.com/users/andela-toduah/following{/other_user}","gists_url":"https://api.github.com/users/andela-toduah/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-toduah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-toduah/subscriptions","organizations_url":"https://api.github.com/users/andela-toduah/orgs","repos_url":"https://api.github.com/users/andela-toduah/repos","events_url":"https://api.github.com/users/andela-toduah/events{/privacy}","received_events_url":"https://api.github.com/users/andela-toduah/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-toduah/gobble-flow","description":"A reimplementation of the Gobble URL shortener project, following Agile methods and best practices for workflows.","fork":false,"url":"https://api.github.com/repos/andela-toduah/gobble-flow","forks_url":"https://api.github.com/repos/andela-toduah/gobble-flow/forks","keys_url":"https://api.github.com/repos/andela-toduah/gobble-flow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-toduah/gobble-flow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-toduah/gobble-flow/teams","hooks_url":"https://api.github.com/repos/andela-toduah/gobble-flow/hooks","issue_events_url":"https://api.github.com/repos/andela-toduah/gobble-flow/issues/events{/number}","events_url":"https://api.github.com/repos/andela-toduah/gobble-flow/events","assignees_url":"https://api.github.com/repos/andela-toduah/gobble-flow/assignees{/user}","branches_url":"https://api.github.com/repos/andela-toduah/gobble-flow/branches{/branch}","tags_url":"https://api.github.com/repos/andela-toduah/gobble-flow/tags","blobs_url":"https://api.github.com/repos/andela-toduah/gobble-flow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-toduah/gobble-flow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-toduah/gobble-flow/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-toduah/gobble-flow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-toduah/gobble-flow/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-toduah/gobble-flow/languages","stargazers_url":"https://api.github.com/repos/andela-toduah/gobble-flow/stargazers","contributors_url":"https://api.github.com/repos/andela-toduah/gobble-flow/contributors","subscribers_url":"https://api.github.com/repos/andela-toduah/gobble-flow/subscribers","subscription_url":"https://api.github.com/repos/andela-toduah/gobble-flow/subscription","commits_url":"https://api.github.com/repos/andela-toduah/gobble-flow/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-toduah/gobble-flow/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-toduah/gobble-flow/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-toduah/gobble-flow/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-toduah/gobble-flow/contents/{+path}","compare_url":"https://api.github.com/repos/andela-toduah/gobble-flow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-toduah/gobble-flow/merges","archive_url":"https://api.github.com/repos/andela-toduah/gobble-flow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-toduah/gobble-flow/downloads","issues_url":"https://api.github.com/repos/andela-toduah/gobble-flow/issues{/number}","pulls_url":"https://api.github.com/repos/andela-toduah/gobble-flow/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-toduah/gobble-flow/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-toduah/gobble-flow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-toduah/gobble-flow/labels{/name}","releases_url":"https://api.github.com/repos/andela-toduah/gobble-flow/releases{/id}","created_at":"2015-12-02T19:22:10Z","updated_at":"2015-12-02T19:43:30Z","pushed_at":"2015-12-05T11:22:14Z","git_url":"git://github.com/andela-toduah/gobble-flow.git","ssh_url":"git@github.com:andela-toduah/gobble-flow.git","clone_url":"https://github.com/andela-toduah/gobble-flow.git","svn_url":"https://github.com/andela-toduah/gobble-flow","homepage":null,"size":62,"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":"andela-toduah:master","ref":"master","sha":"4f56aea4a333381955de260ce4fd29f511608602","user":{"login":"andela-toduah","id":15727582,"avatar_url":"https://avatars.githubusercontent.com/u/15727582?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-toduah","html_url":"https://github.com/andela-toduah","followers_url":"https://api.github.com/users/andela-toduah/followers","following_url":"https://api.github.com/users/andela-toduah/following{/other_user}","gists_url":"https://api.github.com/users/andela-toduah/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-toduah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-toduah/subscriptions","organizations_url":"https://api.github.com/users/andela-toduah/orgs","repos_url":"https://api.github.com/users/andela-toduah/repos","events_url":"https://api.github.com/users/andela-toduah/events{/privacy}","received_events_url":"https://api.github.com/users/andela-toduah/received_events","type":"User","site_admin":false},"repo":{"id":47283023,"name":"gobble-flow","full_name":"andela-toduah/gobble-flow","owner":{"login":"andela-toduah","id":15727582,"avatar_url":"https://avatars.githubusercontent.com/u/15727582?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-toduah","html_url":"https://github.com/andela-toduah","followers_url":"https://api.github.com/users/andela-toduah/followers","following_url":"https://api.github.com/users/andela-toduah/following{/other_user}","gists_url":"https://api.github.com/users/andela-toduah/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-toduah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-toduah/subscriptions","organizations_url":"https://api.github.com/users/andela-toduah/orgs","repos_url":"https://api.github.com/users/andela-toduah/repos","events_url":"https://api.github.com/users/andela-toduah/events{/privacy}","received_events_url":"https://api.github.com/users/andela-toduah/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-toduah/gobble-flow","description":"A reimplementation of the Gobble URL shortener project, following Agile methods and best practices for workflows.","fork":false,"url":"https://api.github.com/repos/andela-toduah/gobble-flow","forks_url":"https://api.github.com/repos/andela-toduah/gobble-flow/forks","keys_url":"https://api.github.com/repos/andela-toduah/gobble-flow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-toduah/gobble-flow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-toduah/gobble-flow/teams","hooks_url":"https://api.github.com/repos/andela-toduah/gobble-flow/hooks","issue_events_url":"https://api.github.com/repos/andela-toduah/gobble-flow/issues/events{/number}","events_url":"https://api.github.com/repos/andela-toduah/gobble-flow/events","assignees_url":"https://api.github.com/repos/andela-toduah/gobble-flow/assignees{/user}","branches_url":"https://api.github.com/repos/andela-toduah/gobble-flow/branches{/branch}","tags_url":"https://api.github.com/repos/andela-toduah/gobble-flow/tags","blobs_url":"https://api.github.com/repos/andela-toduah/gobble-flow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-toduah/gobble-flow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-toduah/gobble-flow/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-toduah/gobble-flow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-toduah/gobble-flow/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-toduah/gobble-flow/languages","stargazers_url":"https://api.github.com/repos/andela-toduah/gobble-flow/stargazers","contributors_url":"https://api.github.com/repos/andela-toduah/gobble-flow/contributors","subscribers_url":"https://api.github.com/repos/andela-toduah/gobble-flow/subscribers","subscription_url":"https://api.github.com/repos/andela-toduah/gobble-flow/subscription","commits_url":"https://api.github.com/repos/andela-toduah/gobble-flow/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-toduah/gobble-flow/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-toduah/gobble-flow/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-toduah/gobble-flow/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-toduah/gobble-flow/contents/{+path}","compare_url":"https://api.github.com/repos/andela-toduah/gobble-flow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-toduah/gobble-flow/merges","archive_url":"https://api.github.com/repos/andela-toduah/gobble-flow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-toduah/gobble-flow/downloads","issues_url":"https://api.github.com/repos/andela-toduah/gobble-flow/issues{/number}","pulls_url":"https://api.github.com/repos/andela-toduah/gobble-flow/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-toduah/gobble-flow/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-toduah/gobble-flow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-toduah/gobble-flow/labels{/name}","releases_url":"https://api.github.com/repos/andela-toduah/gobble-flow/releases{/id}","created_at":"2015-12-02T19:22:10Z","updated_at":"2015-12-02T19:43:30Z","pushed_at":"2015-12-05T11:22:14Z","git_url":"git://github.com/andela-toduah/gobble-flow.git","ssh_url":"git@github.com:andela-toduah/gobble-flow.git","clone_url":"https://github.com/andela-toduah/gobble-flow.git","svn_url":"https://github.com/andela-toduah/gobble-flow","homepage":null,"size":62,"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/andela-toduah/gobble-flow/pulls/15"},"html":{"href":"https://github.com/andela-toduah/gobble-flow/pull/15"},"issue":{"href":"https://api.github.com/repos/andela-toduah/gobble-flow/issues/15"},"comments":{"href":"https://api.github.com/repos/andela-toduah/gobble-flow/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/andela-toduah/gobble-flow/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/andela-toduah/gobble-flow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela-toduah/gobble-flow/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/andela-toduah/gobble-flow/statuses/64e1fb907636a6a5036c5ec20cf76094dde55e46"}}}}