{"action":"created","issue":{"url":"https://api.github.com/repos/alphagov/travel-advice-publisher/issues/140","repository_url":"https://api.github.com/repos/alphagov/travel-advice-publisher","labels_url":"https://api.github.com/repos/alphagov/travel-advice-publisher/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/travel-advice-publisher/issues/140/comments","events_url":"https://api.github.com/repos/alphagov/travel-advice-publisher/issues/140/events","html_url":"https://github.com/alphagov/travel-advice-publisher/pull/140","id":149153899,"number":140,"title":"Save `govuk_request_id` on publish","user":{"login":"gpeng","id":5216,"avatar_url":"https://avatars.githubusercontent.com/u/5216?v=3","gravatar_id":"","url":"https://api.github.com/users/gpeng","html_url":"https://github.com/gpeng","followers_url":"https://api.github.com/users/gpeng/followers","following_url":"https://api.github.com/users/gpeng/following{/other_user}","gists_url":"https://api.github.com/users/gpeng/gists{/gist_id}","starred_url":"https://api.github.com/users/gpeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpeng/subscriptions","organizations_url":"https://api.github.com/users/gpeng/orgs","repos_url":"https://api.github.com/users/gpeng/repos","events_url":"https://api.github.com/users/gpeng/events{/privacy}","received_events_url":"https://api.github.com/users/gpeng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-18T13:42:13Z","updated_at":"2016-04-19T07:37:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alphagov/travel-advice-publisher/pulls/140","html_url":"https://github.com/alphagov/travel-advice-publisher/pull/140","diff_url":"https://github.com/alphagov/travel-advice-publisher/pull/140.diff","patch_url":"https://github.com/alphagov/travel-advice-publisher/pull/140.patch"},"body":"The `govuk_request_id` is set per request in the headers. Storing this value when an `Edition` is published will allow the database record to be compared with the front end representation and the alert email for monitoring purposes to ensure the publish and alert succeeded.\r\n\r\n[Trello](https://trello.com/c/TQoOXFZ4/31-save-request-id-on-publish-in-tap)"},"comment":{"url":"https://api.github.com/repos/alphagov/travel-advice-publisher/issues/comments/211775149","html_url":"https://github.com/alphagov/travel-advice-publisher/pull/140#issuecomment-211775149","issue_url":"https://api.github.com/repos/alphagov/travel-advice-publisher/issues/140","id":211775149,"user":{"login":"gpeng","id":5216,"avatar_url":"https://avatars.githubusercontent.com/u/5216?v=3","gravatar_id":"","url":"https://api.github.com/users/gpeng","html_url":"https://github.com/gpeng","followers_url":"https://api.github.com/users/gpeng/followers","following_url":"https://api.github.com/users/gpeng/following{/other_user}","gists_url":"https://api.github.com/users/gpeng/gists{/gist_id}","starred_url":"https://api.github.com/users/gpeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpeng/subscriptions","organizations_url":"https://api.github.com/users/gpeng/orgs","repos_url":"https://api.github.com/users/gpeng/repos","events_url":"https://api.github.com/users/gpeng/events{/privacy}","received_events_url":"https://api.github.com/users/gpeng/received_events","type":"User","site_admin":false},"created_at":"2016-04-19T07:37:16Z","updated_at":"2016-04-19T07:37:16Z","body":"Yes it could... that's the approach in the PR from @steventux. I kept it separate as it seemed like a separate concern to me, recording the act of publishing. This also kept the changes out of `govuk_content_models` for now and isolated the change while we validate the approach and aren't using it elsewhere."}}