{"action":"created","issue":{"url":"https://api.github.com/repos/SCPR/SCPRv4/issues/264","labels_url":"https://api.github.com/repos/SCPR/SCPRv4/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/SCPR/SCPRv4/issues/264/comments","events_url":"https://api.github.com/repos/SCPR/SCPRv4/issues/264/events","html_url":"https://github.com/SCPR/SCPRv4/pull/264","id":74171171,"number":264,"title":"External episode cleaning","user":{"login":"Ravenstine","id":5193330,"avatar_url":"https://avatars.githubusercontent.com/u/5193330?v=3","gravatar_id":"","url":"https://api.github.com/users/Ravenstine","html_url":"https://github.com/Ravenstine","followers_url":"https://api.github.com/users/Ravenstine/followers","following_url":"https://api.github.com/users/Ravenstine/following{/other_user}","gists_url":"https://api.github.com/users/Ravenstine/gists{/gist_id}","starred_url":"https://api.github.com/users/Ravenstine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ravenstine/subscriptions","organizations_url":"https://api.github.com/users/Ravenstine/orgs","repos_url":"https://api.github.com/users/Ravenstine/repos","events_url":"https://api.github.com/users/Ravenstine/events{/privacy}","received_events_url":"https://api.github.com/users/Ravenstine/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-08T00:12:02Z","updated_at":"2015-05-14T11:23:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SCPR/SCPRv4/pulls/264","html_url":"https://github.com/SCPR/SCPRv4/pull/264","diff_url":"https://github.com/SCPR/SCPRv4/pull/264.diff","patch_url":"https://github.com/SCPR/SCPRv4/pull/264.patch"},"body":"Both adds a sweeper to remove expired episodes as well as preventing expired episodes [that still have records] from being displayed for a program.\r\n\r\nThe expiry is determined by the 'days_to_expiry' column in the external_programs table.  A Resque job is added to destroy_all expired records once a day at 1am(just picked it for the heck of it).  "},"comment":{"url":"https://api.github.com/repos/SCPR/SCPRv4/issues/comments/102007596","html_url":"https://github.com/SCPR/SCPRv4/pull/264#issuecomment-102007596","issue_url":"https://api.github.com/repos/SCPR/SCPRv4/issues/264","id":102007596,"user":{"login":"ewr","id":204350,"avatar_url":"https://avatars.githubusercontent.com/u/204350?v=3","gravatar_id":"","url":"https://api.github.com/users/ewr","html_url":"https://github.com/ewr","followers_url":"https://api.github.com/users/ewr/followers","following_url":"https://api.github.com/users/ewr/following{/other_user}","gists_url":"https://api.github.com/users/ewr/gists{/gist_id}","starred_url":"https://api.github.com/users/ewr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewr/subscriptions","organizations_url":"https://api.github.com/users/ewr/orgs","repos_url":"https://api.github.com/users/ewr/repos","events_url":"https://api.github.com/users/ewr/events{/privacy}","received_events_url":"https://api.github.com/users/ewr/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T11:23:52Z","updated_at":"2015-05-14T11:23:52Z","body":"LGTM. When you come in this morning we can figure out a strategy for merge / deploy to staging, and then let's get this shipped."}}