{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/pulls/2","id":54134276,"html_url":"https://github.com/EnvironmentAgency/front-office-core/pull/2","diff_url":"https://github.com/EnvironmentAgency/front-office-core/pull/2.diff","patch_url":"https://github.com/EnvironmentAgency/front-office-core/pull/2.patch","issue_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/issues/2","number":2,"state":"open","locked":false,"title":"WAS-462 Enrollment url change to prevent malicious use","user":{"login":"woodpigeon","id":136819,"avatar_url":"https://avatars.githubusercontent.com/u/136819?v=3","gravatar_id":"","url":"https://api.github.com/users/woodpigeon","html_url":"https://github.com/woodpigeon","followers_url":"https://api.github.com/users/woodpigeon/followers","following_url":"https://api.github.com/users/woodpigeon/following{/other_user}","gists_url":"https://api.github.com/users/woodpigeon/gists{/gist_id}","starred_url":"https://api.github.com/users/woodpigeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/woodpigeon/subscriptions","organizations_url":"https://api.github.com/users/woodpigeon/orgs","repos_url":"https://api.github.com/users/woodpigeon/repos","events_url":"https://api.github.com/users/woodpigeon/events{/privacy}","received_events_url":"https://api.github.com/users/woodpigeon/received_events","type":"User","site_admin":false},"body":"Add the option to use a base58 random string/token as the unique\r\nidentifier in the url for an enrollment. The front end can elect\r\nto use the token rather than the model's #id when rendering urls\r\nby overriding #to_param. Finders might only allow loading an\r\nenrollment by token if the enrollment has been started but is not\r\nyet complete, rendering the token a temporary way of referencing\r\nthe enrollment during its completion. The backend could use the\r\ndefault implementation of #to_param and continue to reference\r\nenrollments as enrollment/123.","created_at":"2015-12-18T18:29:05Z","updated_at":"2015-12-18T18:29:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b72d6b62991adfec606554d4a6a8145ae53da363","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/pulls/2/commits","review_comments_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/pulls/2/comments","review_comment_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/issues/2/comments","statuses_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/statuses/dff33fbb112c659dd3a8e5a17b0e94c89c4e4335","head":{"label":"EnvironmentAgency:feature/WAS-462-enrollment-url-changes","ref":"feature/WAS-462-enrollment-url-changes","sha":"dff33fbb112c659dd3a8e5a17b0e94c89c4e4335","user":{"login":"EnvironmentAgency","id":5528822,"avatar_url":"https://avatars.githubusercontent.com/u/5528822?v=3","gravatar_id":"","url":"https://api.github.com/users/EnvironmentAgency","html_url":"https://github.com/EnvironmentAgency","followers_url":"https://api.github.com/users/EnvironmentAgency/followers","following_url":"https://api.github.com/users/EnvironmentAgency/following{/other_user}","gists_url":"https://api.github.com/users/EnvironmentAgency/gists{/gist_id}","starred_url":"https://api.github.com/users/EnvironmentAgency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnvironmentAgency/subscriptions","organizations_url":"https://api.github.com/users/EnvironmentAgency/orgs","repos_url":"https://api.github.com/users/EnvironmentAgency/repos","events_url":"https://api.github.com/users/EnvironmentAgency/events{/privacy}","received_events_url":"https://api.github.com/users/EnvironmentAgency/received_events","type":"Organization","site_admin":false},"repo":{"id":45843828,"name":"front-office-core","full_name":"EnvironmentAgency/front-office-core","owner":{"login":"EnvironmentAgency","id":5528822,"avatar_url":"https://avatars.githubusercontent.com/u/5528822?v=3","gravatar_id":"","url":"https://api.github.com/users/EnvironmentAgency","html_url":"https://github.com/EnvironmentAgency","followers_url":"https://api.github.com/users/EnvironmentAgency/followers","following_url":"https://api.github.com/users/EnvironmentAgency/following{/other_user}","gists_url":"https://api.github.com/users/EnvironmentAgency/gists{/gist_id}","starred_url":"https://api.github.com/users/EnvironmentAgency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnvironmentAgency/subscriptions","organizations_url":"https://api.github.com/users/EnvironmentAgency/orgs","repos_url":"https://api.github.com/users/EnvironmentAgency/repos","events_url":"https://api.github.com/users/EnvironmentAgency/events{/privacy}","received_events_url":"https://api.github.com/users/EnvironmentAgency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EnvironmentAgency/front-office-core","description":"Package containing core elements and functionality used for building front office apps for digital services","fork":false,"url":"https://api.github.com/repos/EnvironmentAgency/front-office-core","forks_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/forks","keys_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/teams","hooks_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/hooks","issue_events_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/issues/events{/number}","events_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/events","assignees_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/assignees{/user}","branches_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/branches{/branch}","tags_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/tags","blobs_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/statuses/{sha}","languages_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/languages","stargazers_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/stargazers","contributors_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/contributors","subscribers_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/subscribers","subscription_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/subscription","commits_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/contents/{+path}","compare_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/merges","archive_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/downloads","issues_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/issues{/number}","pulls_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/pulls{/number}","milestones_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/milestones{/number}","notifications_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/labels{/name}","releases_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/releases{/id}","created_at":"2015-11-09T14:37:52Z","updated_at":"2015-11-10T11:49:19Z","pushed_at":"2015-12-18T18:29:05Z","git_url":"git://github.com/EnvironmentAgency/front-office-core.git","ssh_url":"git@github.com:EnvironmentAgency/front-office-core.git","clone_url":"https://github.com/EnvironmentAgency/front-office-core.git","svn_url":"https://github.com/EnvironmentAgency/front-office-core","homepage":null,"size":45,"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":"EnvironmentAgency:develop","ref":"develop","sha":"31da669ae0b12bac7a73b0677dccdcc7243a1d46","user":{"login":"EnvironmentAgency","id":5528822,"avatar_url":"https://avatars.githubusercontent.com/u/5528822?v=3","gravatar_id":"","url":"https://api.github.com/users/EnvironmentAgency","html_url":"https://github.com/EnvironmentAgency","followers_url":"https://api.github.com/users/EnvironmentAgency/followers","following_url":"https://api.github.com/users/EnvironmentAgency/following{/other_user}","gists_url":"https://api.github.com/users/EnvironmentAgency/gists{/gist_id}","starred_url":"https://api.github.com/users/EnvironmentAgency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnvironmentAgency/subscriptions","organizations_url":"https://api.github.com/users/EnvironmentAgency/orgs","repos_url":"https://api.github.com/users/EnvironmentAgency/repos","events_url":"https://api.github.com/users/EnvironmentAgency/events{/privacy}","received_events_url":"https://api.github.com/users/EnvironmentAgency/received_events","type":"Organization","site_admin":false},"repo":{"id":45843828,"name":"front-office-core","full_name":"EnvironmentAgency/front-office-core","owner":{"login":"EnvironmentAgency","id":5528822,"avatar_url":"https://avatars.githubusercontent.com/u/5528822?v=3","gravatar_id":"","url":"https://api.github.com/users/EnvironmentAgency","html_url":"https://github.com/EnvironmentAgency","followers_url":"https://api.github.com/users/EnvironmentAgency/followers","following_url":"https://api.github.com/users/EnvironmentAgency/following{/other_user}","gists_url":"https://api.github.com/users/EnvironmentAgency/gists{/gist_id}","starred_url":"https://api.github.com/users/EnvironmentAgency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnvironmentAgency/subscriptions","organizations_url":"https://api.github.com/users/EnvironmentAgency/orgs","repos_url":"https://api.github.com/users/EnvironmentAgency/repos","events_url":"https://api.github.com/users/EnvironmentAgency/events{/privacy}","received_events_url":"https://api.github.com/users/EnvironmentAgency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EnvironmentAgency/front-office-core","description":"Package containing core elements and functionality used for building front office apps for digital services","fork":false,"url":"https://api.github.com/repos/EnvironmentAgency/front-office-core","forks_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/forks","keys_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/teams","hooks_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/hooks","issue_events_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/issues/events{/number}","events_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/events","assignees_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/assignees{/user}","branches_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/branches{/branch}","tags_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/tags","blobs_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/statuses/{sha}","languages_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/languages","stargazers_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/stargazers","contributors_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/contributors","subscribers_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/subscribers","subscription_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/subscription","commits_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/contents/{+path}","compare_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/merges","archive_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/downloads","issues_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/issues{/number}","pulls_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/pulls{/number}","milestones_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/milestones{/number}","notifications_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/labels{/name}","releases_url":"https://api.github.com/repos/EnvironmentAgency/front-office-core/releases{/id}","created_at":"2015-11-09T14:37:52Z","updated_at":"2015-11-10T11:49:19Z","pushed_at":"2015-12-18T18:29:05Z","git_url":"git://github.com/EnvironmentAgency/front-office-core.git","ssh_url":"git@github.com:EnvironmentAgency/front-office-core.git","clone_url":"https://github.com/EnvironmentAgency/front-office-core.git","svn_url":"https://github.com/EnvironmentAgency/front-office-core","homepage":null,"size":45,"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/EnvironmentAgency/front-office-core/pulls/2"},"html":{"href":"https://github.com/EnvironmentAgency/front-office-core/pull/2"},"issue":{"href":"https://api.github.com/repos/EnvironmentAgency/front-office-core/issues/2"},"comments":{"href":"https://api.github.com/repos/EnvironmentAgency/front-office-core/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/EnvironmentAgency/front-office-core/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/EnvironmentAgency/front-office-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/EnvironmentAgency/front-office-core/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/EnvironmentAgency/front-office-core/statuses/dff33fbb112c659dd3a8e5a17b0e94c89c4e4335"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":0,"deletions":0,"changed_files":0}}