{"action":"created","issue":{"url":"https://api.github.com/repos/alphagov/content-performance-manager/issues/13","repository_url":"https://api.github.com/repos/alphagov/content-performance-manager","labels_url":"https://api.github.com/repos/alphagov/content-performance-manager/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/content-performance-manager/issues/13/comments","events_url":"https://api.github.com/repos/alphagov/content-performance-manager/issues/13/events","html_url":"https://github.com/alphagov/content-performance-manager/pull/13","id":192634542,"number":13,"title":"Add last-update-time to the content items of an organisation","user":{"login":"ikennaokpala","id":84896,"avatar_url":"https://avatars.githubusercontent.com/u/84896?v=3","gravatar_id":"","url":"https://api.github.com/users/ikennaokpala","html_url":"https://github.com/ikennaokpala","followers_url":"https://api.github.com/users/ikennaokpala/followers","following_url":"https://api.github.com/users/ikennaokpala/following{/other_user}","gists_url":"https://api.github.com/users/ikennaokpala/gists{/gist_id}","starred_url":"https://api.github.com/users/ikennaokpala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikennaokpala/subscriptions","organizations_url":"https://api.github.com/users/ikennaokpala/orgs","repos_url":"https://api.github.com/users/ikennaokpala/repos","events_url":"https://api.github.com/users/ikennaokpala/events{/privacy}","received_events_url":"https://api.github.com/users/ikennaokpala/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-30T17:52:17Z","updated_at":"2016-12-01T10:46:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alphagov/content-performance-manager/pulls/13","html_url":"https://github.com/alphagov/content-performance-manager/pull/13","diff_url":"https://github.com/alphagov/content-performance-manager/pull/13.diff","patch_url":"https://github.com/alphagov/content-performance-manager/pull/13.patch"},"body":"[Trello card](https://trello.com/c/7swQPTrR/63-story-add-last-update-time-to-the-content-items-of-an-organisation)\r\n\r\n## Description \r\nFor every content item, content designers want to see the last time a\r\ncontent item was updated for an organisation.\r\n\r\nHere a new column/attribute (i.e `last_updated_at`) has been added to the content_item(s).\r\n\r\nThe `last_updated_at` attribute’s value is obtained via from the publishing api [1] via\r\nthe gds-api-adapters gem.\r\n\r\nThe gds-api-adapters gem provides access to the publishing_api endpoints\r\n\r\nFor obtaining the last time a piece of content_item was updated, this endpoint [1] is \r\nqueried with the content_id supplied.\r\n\r\nAll organisation importer tests have been affected and a before hook introduced to\r\nstub calls to get_content.\r\n\r\n***NB:***\r\n\r\nKindly take note that publishing api can only be access via the dev VM [2]. \r\n\r\n\r\n\r\n[1] /v2/content/:content_id\r\n[2] http://publishing-api.dev.gov.uk/v2/content/:content_id"},"comment":{"url":"https://api.github.com/repos/alphagov/content-performance-manager/issues/comments/264139708","html_url":"https://github.com/alphagov/content-performance-manager/pull/13#issuecomment-264139708","issue_url":"https://api.github.com/repos/alphagov/content-performance-manager/issues/13","id":264139708,"user":{"login":"ikennaokpala","id":84896,"avatar_url":"https://avatars.githubusercontent.com/u/84896?v=3","gravatar_id":"","url":"https://api.github.com/users/ikennaokpala","html_url":"https://github.com/ikennaokpala","followers_url":"https://api.github.com/users/ikennaokpala/followers","following_url":"https://api.github.com/users/ikennaokpala/following{/other_user}","gists_url":"https://api.github.com/users/ikennaokpala/gists{/gist_id}","starred_url":"https://api.github.com/users/ikennaokpala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikennaokpala/subscriptions","organizations_url":"https://api.github.com/users/ikennaokpala/orgs","repos_url":"https://api.github.com/users/ikennaokpala/repos","events_url":"https://api.github.com/users/ikennaokpala/events{/privacy}","received_events_url":"https://api.github.com/users/ikennaokpala/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T10:46:17Z","updated_at":"2016-12-01T10:46:17Z","body":"@pmanrubia thanks for letting me know"}}
{"actor":{"display_login":"ikennaokpala"}}