{"action":"opened","number":1075,"pull_request":{"url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/1075","id":361351143,"node_id":"MDExOlB1bGxSZXF1ZXN0MzYxMzUxMTQz","html_url":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training/pull/1075","diff_url":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training/pull/1075.diff","patch_url":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training/pull/1075.patch","issue_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues/1075","number":1075,"state":"open","locked":false,"title":"Set missing application forms support references","user":{"login":"benilovj","id":23801,"node_id":"MDQ6VXNlcjIzODAx","avatar_url":"https://avatars0.githubusercontent.com/u/23801?v=4","gravatar_id":"","url":"https://api.github.com/users/benilovj","html_url":"https://github.com/benilovj","followers_url":"https://api.github.com/users/benilovj/followers","following_url":"https://api.github.com/users/benilovj/following{/other_user}","gists_url":"https://api.github.com/users/benilovj/gists{/gist_id}","starred_url":"https://api.github.com/users/benilovj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benilovj/subscriptions","organizations_url":"https://api.github.com/users/benilovj/orgs","repos_url":"https://api.github.com/users/benilovj/repos","events_url":"https://api.github.com/users/benilovj/events{/privacy}","received_events_url":"https://api.github.com/users/benilovj/received_events","type":"User","site_admin":false},"body":"## Context\r\n\r\nPR #1062 moved setting support references from application form submission to form creation. However that change didn't backfill the reference for forms that already exist.\r\n\r\n## Changes proposed in this pull request\r\n\r\nBackfill missing support references in a migration.\r\n\r\n## Guidance to review\r\n\r\nThis is a data migration - is there a better way of doing it?\r\n\r\n## Link to Trello card\r\n\r\nn/a\r\n\r\n## Things to check\r\n\r\n- [x] This code doesn't rely on migrations in the same Pull Request\r\n- [x] API release notes have been updated if necessary\r\n- [x] New environment variables have been [added to the Azure config](https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training#azure-hosting-devops-pipeline)\r\n","created_at":"2020-01-10T09:21:53Z","updated_at":"2020-01-10T09:21:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/1075/commits","review_comments_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/1075/comments","review_comment_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues/1075/comments","statuses_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/statuses/a0e5860a8de809ae6afcdf83e55d39bb8a5e2eb6","head":{"label":"DFE-Digital:set-missing-app-form-support-references","ref":"set-missing-app-form-support-references","sha":"a0e5860a8de809ae6afcdf83e55d39bb8a5e2eb6","user":{"login":"DFE-Digital","id":30029772,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDI5Nzcy","avatar_url":"https://avatars3.githubusercontent.com/u/30029772?v=4","gravatar_id":"","url":"https://api.github.com/users/DFE-Digital","html_url":"https://github.com/DFE-Digital","followers_url":"https://api.github.com/users/DFE-Digital/followers","following_url":"https://api.github.com/users/DFE-Digital/following{/other_user}","gists_url":"https://api.github.com/users/DFE-Digital/gists{/gist_id}","starred_url":"https://api.github.com/users/DFE-Digital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFE-Digital/subscriptions","organizations_url":"https://api.github.com/users/DFE-Digital/orgs","repos_url":"https://api.github.com/users/DFE-Digital/repos","events_url":"https://api.github.com/users/DFE-Digital/events{/privacy}","received_events_url":"https://api.github.com/users/DFE-Digital/received_events","type":"Organization","site_admin":false},"repo":{"id":167356028,"node_id":"MDEwOlJlcG9zaXRvcnkxNjczNTYwMjg=","name":"apply-for-postgraduate-teacher-training","full_name":"DFE-Digital/apply-for-postgraduate-teacher-training","private":false,"owner":{"login":"DFE-Digital","id":30029772,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDI5Nzcy","avatar_url":"https://avatars3.githubusercontent.com/u/30029772?v=4","gravatar_id":"","url":"https://api.github.com/users/DFE-Digital","html_url":"https://github.com/DFE-Digital","followers_url":"https://api.github.com/users/DFE-Digital/followers","following_url":"https://api.github.com/users/DFE-Digital/following{/other_user}","gists_url":"https://api.github.com/users/DFE-Digital/gists{/gist_id}","starred_url":"https://api.github.com/users/DFE-Digital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFE-Digital/subscriptions","organizations_url":"https://api.github.com/users/DFE-Digital/orgs","repos_url":"https://api.github.com/users/DFE-Digital/repos","events_url":"https://api.github.com/users/DFE-Digital/events{/privacy}","received_events_url":"https://api.github.com/users/DFE-Digital/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training","description":"A service for applying to teacher training courses. In beta since November 2019.","fork":false,"url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training","forks_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/forks","keys_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/teams","hooks_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/hooks","issue_events_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues/events{/number}","events_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/events","assignees_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/assignees{/user}","branches_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/branches{/branch}","tags_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/tags","blobs_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/refs{/sha}","trees_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/statuses/{sha}","languages_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/languages","stargazers_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/stargazers","contributors_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/contributors","subscribers_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/subscribers","subscription_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/subscription","commits_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/commits{/sha}","git_commits_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/commits{/sha}","comments_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/comments{/number}","issue_comment_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues/comments{/number}","contents_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/contents/{+path}","compare_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/merges","archive_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/downloads","issues_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues{/number}","pulls_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls{/number}","milestones_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/milestones{/number}","notifications_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/labels{/name}","releases_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/releases{/id}","deployments_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/deployments","created_at":"2019-01-24T11:24:59Z","updated_at":"2020-01-09T15:42:59Z","pushed_at":"2020-01-10T09:21:54Z","git_url":"git://github.com/DFE-Digital/apply-for-postgraduate-teacher-training.git","ssh_url":"git@github.com:DFE-Digital/apply-for-postgraduate-teacher-training.git","clone_url":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training.git","svn_url":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training","homepage":"https://www.apply-for-teacher-training.education.gov.uk","size":23956,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":9,"license":null,"forks":3,"open_issues":9,"watchers":6,"default_branch":"master"}},"base":{"label":"DFE-Digital:master","ref":"master","sha":"1d9d9a5c0fdbac0c08cbac713c9c2e78dd24c637","user":{"login":"DFE-Digital","id":30029772,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDI5Nzcy","avatar_url":"https://avatars3.githubusercontent.com/u/30029772?v=4","gravatar_id":"","url":"https://api.github.com/users/DFE-Digital","html_url":"https://github.com/DFE-Digital","followers_url":"https://api.github.com/users/DFE-Digital/followers","following_url":"https://api.github.com/users/DFE-Digital/following{/other_user}","gists_url":"https://api.github.com/users/DFE-Digital/gists{/gist_id}","starred_url":"https://api.github.com/users/DFE-Digital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFE-Digital/subscriptions","organizations_url":"https://api.github.com/users/DFE-Digital/orgs","repos_url":"https://api.github.com/users/DFE-Digital/repos","events_url":"https://api.github.com/users/DFE-Digital/events{/privacy}","received_events_url":"https://api.github.com/users/DFE-Digital/received_events","type":"Organization","site_admin":false},"repo":{"id":167356028,"node_id":"MDEwOlJlcG9zaXRvcnkxNjczNTYwMjg=","name":"apply-for-postgraduate-teacher-training","full_name":"DFE-Digital/apply-for-postgraduate-teacher-training","private":false,"owner":{"login":"DFE-Digital","id":30029772,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwMDI5Nzcy","avatar_url":"https://avatars3.githubusercontent.com/u/30029772?v=4","gravatar_id":"","url":"https://api.github.com/users/DFE-Digital","html_url":"https://github.com/DFE-Digital","followers_url":"https://api.github.com/users/DFE-Digital/followers","following_url":"https://api.github.com/users/DFE-Digital/following{/other_user}","gists_url":"https://api.github.com/users/DFE-Digital/gists{/gist_id}","starred_url":"https://api.github.com/users/DFE-Digital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFE-Digital/subscriptions","organizations_url":"https://api.github.com/users/DFE-Digital/orgs","repos_url":"https://api.github.com/users/DFE-Digital/repos","events_url":"https://api.github.com/users/DFE-Digital/events{/privacy}","received_events_url":"https://api.github.com/users/DFE-Digital/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training","description":"A service for applying to teacher training courses. In beta since November 2019.","fork":false,"url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training","forks_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/forks","keys_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/teams","hooks_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/hooks","issue_events_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues/events{/number}","events_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/events","assignees_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/assignees{/user}","branches_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/branches{/branch}","tags_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/tags","blobs_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/refs{/sha}","trees_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/statuses/{sha}","languages_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/languages","stargazers_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/stargazers","contributors_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/contributors","subscribers_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/subscribers","subscription_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/subscription","commits_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/commits{/sha}","git_commits_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/git/commits{/sha}","comments_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/comments{/number}","issue_comment_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues/comments{/number}","contents_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/contents/{+path}","compare_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/merges","archive_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/downloads","issues_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues{/number}","pulls_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls{/number}","milestones_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/milestones{/number}","notifications_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/labels{/name}","releases_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/releases{/id}","deployments_url":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/deployments","created_at":"2019-01-24T11:24:59Z","updated_at":"2020-01-09T15:42:59Z","pushed_at":"2020-01-10T09:21:54Z","git_url":"git://github.com/DFE-Digital/apply-for-postgraduate-teacher-training.git","ssh_url":"git@github.com:DFE-Digital/apply-for-postgraduate-teacher-training.git","clone_url":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training.git","svn_url":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training","homepage":"https://www.apply-for-teacher-training.education.gov.uk","size":23956,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":9,"license":null,"forks":3,"open_issues":9,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/1075"},"html":{"href":"https://github.com/DFE-Digital/apply-for-postgraduate-teacher-training/pull/1075"},"issue":{"href":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues/1075"},"comments":{"href":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/issues/1075/comments"},"review_comments":{"href":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/1075/comments"},"review_comment":{"href":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/pulls/1075/commits"},"statuses":{"href":"https://api.github.com/repos/DFE-Digital/apply-for-postgraduate-teacher-training/statuses/a0e5860a8de809ae6afcdf83e55d39bb8a5e2eb6"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":12,"deletions":1,"changed_files":2}}
{"actor":{"display_login":"benilovj"}}