{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/andela-tfowotade/cutit/pulls/4","id":74938827,"html_url":"https://github.com/andela-tfowotade/cutit/pull/4","diff_url":"https://github.com/andela-tfowotade/cutit/pull/4.diff","patch_url":"https://github.com/andela-tfowotade/cutit/pull/4.patch","issue_url":"https://api.github.com/repos/andela-tfowotade/cutit/issues/4","number":4,"state":"open","locked":false,"title":"122113227 Users supply vanity strings ","user":{"login":"andela-tfowotade","id":14174912,"avatar_url":"https://avatars.githubusercontent.com/u/14174912?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-tfowotade","html_url":"https://github.com/andela-tfowotade","followers_url":"https://api.github.com/users/andela-tfowotade/followers","following_url":"https://api.github.com/users/andela-tfowotade/following{/other_user}","gists_url":"https://api.github.com/users/andela-tfowotade/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-tfowotade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-tfowotade/subscriptions","organizations_url":"https://api.github.com/users/andela-tfowotade/orgs","repos_url":"https://api.github.com/users/andela-tfowotade/repos","events_url":"https://api.github.com/users/andela-tfowotade/events{/privacy}","received_events_url":"https://api.github.com/users/andela-tfowotade/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nEnables users supply vanity strings that would be appended to their short URL.\r\n\r\n#### Description of Task to be completed?\r\nIn the model, vanity string is only generated by SecureRandom if it wasn't supplied by the user. Also, the uniqueness of the vanity string is checked at both model and database level to avoid one short URL redirecting to two long URLs.\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n#122113227","created_at":"2016-06-23T11:31:27Z","updated_at":"2016-06-23T11:31:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andela-tfowotade/cutit/pulls/4/commits","review_comments_url":"https://api.github.com/repos/andela-tfowotade/cutit/pulls/4/comments","review_comment_url":"https://api.github.com/repos/andela-tfowotade/cutit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela-tfowotade/cutit/issues/4/comments","statuses_url":"https://api.github.com/repos/andela-tfowotade/cutit/statuses/13488d36ea646f592bc6e5ad97599dca2f50e87f","head":{"label":"andela-tfowotade:ft-users-supply-vanity-strings-122113227","ref":"ft-users-supply-vanity-strings-122113227","sha":"13488d36ea646f592bc6e5ad97599dca2f50e87f","user":{"login":"andela-tfowotade","id":14174912,"avatar_url":"https://avatars.githubusercontent.com/u/14174912?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-tfowotade","html_url":"https://github.com/andela-tfowotade","followers_url":"https://api.github.com/users/andela-tfowotade/followers","following_url":"https://api.github.com/users/andela-tfowotade/following{/other_user}","gists_url":"https://api.github.com/users/andela-tfowotade/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-tfowotade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-tfowotade/subscriptions","organizations_url":"https://api.github.com/users/andela-tfowotade/orgs","repos_url":"https://api.github.com/users/andela-tfowotade/repos","events_url":"https://api.github.com/users/andela-tfowotade/events{/privacy}","received_events_url":"https://api.github.com/users/andela-tfowotade/received_events","type":"User","site_admin":false},"repo":{"id":61325732,"name":"cutit","full_name":"andela-tfowotade/cutit","owner":{"login":"andela-tfowotade","id":14174912,"avatar_url":"https://avatars.githubusercontent.com/u/14174912?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-tfowotade","html_url":"https://github.com/andela-tfowotade","followers_url":"https://api.github.com/users/andela-tfowotade/followers","following_url":"https://api.github.com/users/andela-tfowotade/following{/other_user}","gists_url":"https://api.github.com/users/andela-tfowotade/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-tfowotade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-tfowotade/subscriptions","organizations_url":"https://api.github.com/users/andela-tfowotade/orgs","repos_url":"https://api.github.com/users/andela-tfowotade/repos","events_url":"https://api.github.com/users/andela-tfowotade/events{/privacy}","received_events_url":"https://api.github.com/users/andela-tfowotade/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-tfowotade/cutit","description":"A Url shortening service.","fork":false,"url":"https://api.github.com/repos/andela-tfowotade/cutit","forks_url":"https://api.github.com/repos/andela-tfowotade/cutit/forks","keys_url":"https://api.github.com/repos/andela-tfowotade/cutit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-tfowotade/cutit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-tfowotade/cutit/teams","hooks_url":"https://api.github.com/repos/andela-tfowotade/cutit/hooks","issue_events_url":"https://api.github.com/repos/andela-tfowotade/cutit/issues/events{/number}","events_url":"https://api.github.com/repos/andela-tfowotade/cutit/events","assignees_url":"https://api.github.com/repos/andela-tfowotade/cutit/assignees{/user}","branches_url":"https://api.github.com/repos/andela-tfowotade/cutit/branches{/branch}","tags_url":"https://api.github.com/repos/andela-tfowotade/cutit/tags","blobs_url":"https://api.github.com/repos/andela-tfowotade/cutit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-tfowotade/cutit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-tfowotade/cutit/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-tfowotade/cutit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-tfowotade/cutit/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-tfowotade/cutit/languages","stargazers_url":"https://api.github.com/repos/andela-tfowotade/cutit/stargazers","contributors_url":"https://api.github.com/repos/andela-tfowotade/cutit/contributors","subscribers_url":"https://api.github.com/repos/andela-tfowotade/cutit/subscribers","subscription_url":"https://api.github.com/repos/andela-tfowotade/cutit/subscription","commits_url":"https://api.github.com/repos/andela-tfowotade/cutit/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-tfowotade/cutit/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-tfowotade/cutit/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-tfowotade/cutit/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-tfowotade/cutit/contents/{+path}","compare_url":"https://api.github.com/repos/andela-tfowotade/cutit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-tfowotade/cutit/merges","archive_url":"https://api.github.com/repos/andela-tfowotade/cutit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-tfowotade/cutit/downloads","issues_url":"https://api.github.com/repos/andela-tfowotade/cutit/issues{/number}","pulls_url":"https://api.github.com/repos/andela-tfowotade/cutit/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-tfowotade/cutit/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-tfowotade/cutit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-tfowotade/cutit/labels{/name}","releases_url":"https://api.github.com/repos/andela-tfowotade/cutit/releases{/id}","deployments_url":"https://api.github.com/repos/andela-tfowotade/cutit/deployments","created_at":"2016-06-16T21:03:08Z","updated_at":"2016-06-18T15:18:59Z","pushed_at":"2016-06-23T11:31:27Z","git_url":"git://github.com/andela-tfowotade/cutit.git","ssh_url":"git@github.com:andela-tfowotade/cutit.git","clone_url":"https://github.com/andela-tfowotade/cutit.git","svn_url":"https://github.com/andela-tfowotade/cutit","homepage":null,"size":43,"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":"develop"}},"base":{"label":"andela-tfowotade:develop","ref":"develop","sha":"ead9aa4479c9d7f6d99c2bcdfa1961dbdc59a4b4","user":{"login":"andela-tfowotade","id":14174912,"avatar_url":"https://avatars.githubusercontent.com/u/14174912?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-tfowotade","html_url":"https://github.com/andela-tfowotade","followers_url":"https://api.github.com/users/andela-tfowotade/followers","following_url":"https://api.github.com/users/andela-tfowotade/following{/other_user}","gists_url":"https://api.github.com/users/andela-tfowotade/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-tfowotade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-tfowotade/subscriptions","organizations_url":"https://api.github.com/users/andela-tfowotade/orgs","repos_url":"https://api.github.com/users/andela-tfowotade/repos","events_url":"https://api.github.com/users/andela-tfowotade/events{/privacy}","received_events_url":"https://api.github.com/users/andela-tfowotade/received_events","type":"User","site_admin":false},"repo":{"id":61325732,"name":"cutit","full_name":"andela-tfowotade/cutit","owner":{"login":"andela-tfowotade","id":14174912,"avatar_url":"https://avatars.githubusercontent.com/u/14174912?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-tfowotade","html_url":"https://github.com/andela-tfowotade","followers_url":"https://api.github.com/users/andela-tfowotade/followers","following_url":"https://api.github.com/users/andela-tfowotade/following{/other_user}","gists_url":"https://api.github.com/users/andela-tfowotade/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-tfowotade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-tfowotade/subscriptions","organizations_url":"https://api.github.com/users/andela-tfowotade/orgs","repos_url":"https://api.github.com/users/andela-tfowotade/repos","events_url":"https://api.github.com/users/andela-tfowotade/events{/privacy}","received_events_url":"https://api.github.com/users/andela-tfowotade/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-tfowotade/cutit","description":"A Url shortening service.","fork":false,"url":"https://api.github.com/repos/andela-tfowotade/cutit","forks_url":"https://api.github.com/repos/andela-tfowotade/cutit/forks","keys_url":"https://api.github.com/repos/andela-tfowotade/cutit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-tfowotade/cutit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-tfowotade/cutit/teams","hooks_url":"https://api.github.com/repos/andela-tfowotade/cutit/hooks","issue_events_url":"https://api.github.com/repos/andela-tfowotade/cutit/issues/events{/number}","events_url":"https://api.github.com/repos/andela-tfowotade/cutit/events","assignees_url":"https://api.github.com/repos/andela-tfowotade/cutit/assignees{/user}","branches_url":"https://api.github.com/repos/andela-tfowotade/cutit/branches{/branch}","tags_url":"https://api.github.com/repos/andela-tfowotade/cutit/tags","blobs_url":"https://api.github.com/repos/andela-tfowotade/cutit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-tfowotade/cutit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-tfowotade/cutit/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-tfowotade/cutit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-tfowotade/cutit/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-tfowotade/cutit/languages","stargazers_url":"https://api.github.com/repos/andela-tfowotade/cutit/stargazers","contributors_url":"https://api.github.com/repos/andela-tfowotade/cutit/contributors","subscribers_url":"https://api.github.com/repos/andela-tfowotade/cutit/subscribers","subscription_url":"https://api.github.com/repos/andela-tfowotade/cutit/subscription","commits_url":"https://api.github.com/repos/andela-tfowotade/cutit/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-tfowotade/cutit/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-tfowotade/cutit/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-tfowotade/cutit/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-tfowotade/cutit/contents/{+path}","compare_url":"https://api.github.com/repos/andela-tfowotade/cutit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-tfowotade/cutit/merges","archive_url":"https://api.github.com/repos/andela-tfowotade/cutit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-tfowotade/cutit/downloads","issues_url":"https://api.github.com/repos/andela-tfowotade/cutit/issues{/number}","pulls_url":"https://api.github.com/repos/andela-tfowotade/cutit/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-tfowotade/cutit/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-tfowotade/cutit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-tfowotade/cutit/labels{/name}","releases_url":"https://api.github.com/repos/andela-tfowotade/cutit/releases{/id}","deployments_url":"https://api.github.com/repos/andela-tfowotade/cutit/deployments","created_at":"2016-06-16T21:03:08Z","updated_at":"2016-06-18T15:18:59Z","pushed_at":"2016-06-23T11:31:27Z","git_url":"git://github.com/andela-tfowotade/cutit.git","ssh_url":"git@github.com:andela-tfowotade/cutit.git","clone_url":"https://github.com/andela-tfowotade/cutit.git","svn_url":"https://github.com/andela-tfowotade/cutit","homepage":null,"size":43,"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":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela-tfowotade/cutit/pulls/4"},"html":{"href":"https://github.com/andela-tfowotade/cutit/pull/4"},"issue":{"href":"https://api.github.com/repos/andela-tfowotade/cutit/issues/4"},"comments":{"href":"https://api.github.com/repos/andela-tfowotade/cutit/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/andela-tfowotade/cutit/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/andela-tfowotade/cutit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela-tfowotade/cutit/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/andela-tfowotade/cutit/statuses/13488d36ea646f592bc6e5ad97599dca2f50e87f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":182,"deletions":99,"changed_files":19}}
{"actor":{"display_login":"andela-tfowotade"}}