{"action":"created","comment":{"url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/comments/255186406","pull_request_review_id":201721633,"id":255186406,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI1NTE4NjQwNg==","diff_hunk":"@@ -43,6 +43,8 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)\n             modelBuilder.Entity<Provider>()\n                 .HasIndex(ui => ui.ProviderCode)\n                 .IsUnique();\n+            modelBuilder.Entity<Provider>()\n+                .HasIndex(p => p.LastPublishedAt);","path":"src/ManageCourses.Domain/DatabaseAccess/ManageCoursesDbContext.cs","position":5,"original_position":5,"commit_id":"b0964f7be22c9496a1d6759f451cb49ca0151f30","original_commit_id":"b0964f7be22c9496a1d6759f451cb49ca0151f30","user":{"login":"defong","id":470137,"node_id":"MDQ6VXNlcjQ3MDEzNw==","avatar_url":"https://avatars2.githubusercontent.com/u/470137?v=4","gravatar_id":"","url":"https://api.github.com/users/defong","html_url":"https://github.com/defong","followers_url":"https://api.github.com/users/defong/followers","following_url":"https://api.github.com/users/defong/following{/other_user}","gists_url":"https://api.github.com/users/defong/gists{/gist_id}","starred_url":"https://api.github.com/users/defong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/defong/subscriptions","organizations_url":"https://api.github.com/users/defong/orgs","repos_url":"https://api.github.com/users/defong/repos","events_url":"https://api.github.com/users/defong/events{/privacy}","received_events_url":"https://api.github.com/users/defong/received_events","type":"User","site_admin":false},"body":"Sure of index?","created_at":"2019-02-08T18:24:01Z","updated_at":"2019-02-08T18:28:47Z","html_url":"https://github.com/DFE-Digital/manage-courses-api/pull/267#discussion_r255186406","pull_request_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/267","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/comments/255186406"},"html":{"href":"https://github.com/DFE-Digital/manage-courses-api/pull/267#discussion_r255186406"},"pull_request":{"href":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/267"}}},"pull_request":{"url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/267","id":251503912,"node_id":"MDExOlB1bGxSZXF1ZXN0MjUxNTAzOTEy","html_url":"https://github.com/DFE-Digital/manage-courses-api/pull/267","diff_url":"https://github.com/DFE-Digital/manage-courses-api/pull/267.diff","patch_url":"https://github.com/DFE-Digital/manage-courses-api/pull/267.patch","issue_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues/267","number":267,"state":"open","locked":false,"title":"946 add provider last published","user":{"login":"timabell","id":19378,"node_id":"MDQ6VXNlcjE5Mzc4","avatar_url":"https://avatars2.githubusercontent.com/u/19378?v=4","gravatar_id":"","url":"https://api.github.com/users/timabell","html_url":"https://github.com/timabell","followers_url":"https://api.github.com/users/timabell/followers","following_url":"https://api.github.com/users/timabell/following{/other_user}","gists_url":"https://api.github.com/users/timabell/gists{/gist_id}","starred_url":"https://api.github.com/users/timabell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timabell/subscriptions","organizations_url":"https://api.github.com/users/timabell/orgs","repos_url":"https://api.github.com/users/timabell/repos","events_url":"https://api.github.com/users/timabell/events{/privacy}","received_events_url":"https://api.github.com/users/timabell/received_events","type":"User","site_admin":false},"body":"### Context\r\nThe new API for UCAS Apply needs to know what to include for incremental fetches. This field will be used for that.\r\n\r\nThe test just extends the existing integration test rather than sorting out a unit test because the c# is going away anyway.\r\n\r\n### Changes proposed in this pull request\r\n* Add Provider.LastPublishedAt\r\n* Populate existing data with `now()`\r\n* Make the publish button in the publish system update the date in this field.\r\n\r\n### Tests done locally\r\n* Ran a migration against a sanitized export from prod, new column was added and populated correctly.\r\n* Fired up api/ui locally, checked that publish button resulted in updated `provider.last_published_at`\r\n\r\n### Guidance to review\r\nRun the api which will upgrade your db, check the new col is populated, poke the publish button and check it's updated.","created_at":"2019-02-08T15:32:20Z","updated_at":"2019-02-08T18:28:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2b85edc80452a4ca84ef86eaed3983a24631f848","assignee":null,"assignees":[],"requested_reviewers":[{"login":"MartinBentley","id":6573457,"node_id":"MDQ6VXNlcjY1NzM0NTc=","avatar_url":"https://avatars2.githubusercontent.com/u/6573457?v=4","gravatar_id":"","url":"https://api.github.com/users/MartinBentley","html_url":"https://github.com/MartinBentley","followers_url":"https://api.github.com/users/MartinBentley/followers","following_url":"https://api.github.com/users/MartinBentley/following{/other_user}","gists_url":"https://api.github.com/users/MartinBentley/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinBentley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinBentley/subscriptions","organizations_url":"https://api.github.com/users/MartinBentley/orgs","repos_url":"https://api.github.com/users/MartinBentley/repos","events_url":"https://api.github.com/users/MartinBentley/events{/privacy}","received_events_url":"https://api.github.com/users/MartinBentley/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/267/commits","review_comments_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/267/comments","review_comment_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues/267/comments","statuses_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/statuses/b0964f7be22c9496a1d6759f451cb49ca0151f30","head":{"label":"DFE-Digital:946-add-provider-last-published","ref":"946-add-provider-last-published","sha":"b0964f7be22c9496a1d6759f451cb49ca0151f30","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":136191993,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYxOTE5OTM=","name":"manage-courses-api","full_name":"DFE-Digital/manage-courses-api","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/manage-courses-api","description":null,"fork":false,"url":"https://api.github.com/repos/DFE-Digital/manage-courses-api","forks_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/forks","keys_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/teams","hooks_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/hooks","issue_events_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues/events{/number}","events_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/events","assignees_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/assignees{/user}","branches_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/branches{/branch}","tags_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/tags","blobs_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/statuses/{sha}","languages_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/languages","stargazers_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/stargazers","contributors_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/contributors","subscribers_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/subscribers","subscription_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/subscription","commits_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/contents/{+path}","compare_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/merges","archive_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/downloads","issues_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues{/number}","pulls_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls{/number}","milestones_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/milestones{/number}","notifications_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/labels{/name}","releases_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/releases{/id}","deployments_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/deployments","created_at":"2018-06-05T14:44:17Z","updated_at":"2019-02-07T17:02:09Z","pushed_at":"2019-02-08T15:32:21Z","git_url":"git://github.com/DFE-Digital/manage-courses-api.git","ssh_url":"git@github.com:DFE-Digital/manage-courses-api.git","clone_url":"https://github.com/DFE-Digital/manage-courses-api.git","svn_url":"https://github.com/DFE-Digital/manage-courses-api","homepage":null,"size":1319,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"DFE-Digital:master","ref":"master","sha":"8df8562bcae37d7c4026fc78005d3cb993484f8e","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":136191993,"node_id":"MDEwOlJlcG9zaXRvcnkxMzYxOTE5OTM=","name":"manage-courses-api","full_name":"DFE-Digital/manage-courses-api","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/manage-courses-api","description":null,"fork":false,"url":"https://api.github.com/repos/DFE-Digital/manage-courses-api","forks_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/forks","keys_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/teams","hooks_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/hooks","issue_events_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues/events{/number}","events_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/events","assignees_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/assignees{/user}","branches_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/branches{/branch}","tags_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/tags","blobs_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/statuses/{sha}","languages_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/languages","stargazers_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/stargazers","contributors_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/contributors","subscribers_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/subscribers","subscription_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/subscription","commits_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/contents/{+path}","compare_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/merges","archive_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/downloads","issues_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues{/number}","pulls_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls{/number}","milestones_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/milestones{/number}","notifications_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/labels{/name}","releases_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/releases{/id}","deployments_url":"https://api.github.com/repos/DFE-Digital/manage-courses-api/deployments","created_at":"2018-06-05T14:44:17Z","updated_at":"2019-02-07T17:02:09Z","pushed_at":"2019-02-08T15:32:21Z","git_url":"git://github.com/DFE-Digital/manage-courses-api.git","ssh_url":"git@github.com:DFE-Digital/manage-courses-api.git","clone_url":"https://github.com/DFE-Digital/manage-courses-api.git","svn_url":"https://github.com/DFE-Digital/manage-courses-api","homepage":null,"size":1319,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/267"},"html":{"href":"https://github.com/DFE-Digital/manage-courses-api/pull/267"},"issue":{"href":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues/267"},"comments":{"href":"https://api.github.com/repos/DFE-Digital/manage-courses-api/issues/267/comments"},"review_comments":{"href":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/267/comments"},"review_comment":{"href":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DFE-Digital/manage-courses-api/pulls/267/commits"},"statuses":{"href":"https://api.github.com/repos/DFE-Digital/manage-courses-api/statuses/b0964f7be22c9496a1d6759f451cb49ca0151f30"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"defong"}}