{"action":"opened","number":48,"pull_request":{"url":"https://api.github.com/repos/codeforamerica/snap-it-up/pulls/48","id":31756741,"html_url":"https://github.com/codeforamerica/snap-it-up/pull/48","diff_url":"https://github.com/codeforamerica/snap-it-up/pull/48.diff","patch_url":"https://github.com/codeforamerica/snap-it-up/pull/48.patch","issue_url":"https://api.github.com/repos/codeforamerica/snap-it-up/issues/48","number":48,"state":"open","locked":false,"title":"WIP: track when we had good data for monitors","user":{"login":"Mr0grog","id":74178,"avatar_url":"https://avatars.githubusercontent.com/u/74178?v=3","gravatar_id":"","url":"https://api.github.com/users/Mr0grog","html_url":"https://github.com/Mr0grog","followers_url":"https://api.github.com/users/Mr0grog/followers","following_url":"https://api.github.com/users/Mr0grog/following{/other_user}","gists_url":"https://api.github.com/users/Mr0grog/gists{/gist_id}","starred_url":"https://api.github.com/users/Mr0grog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mr0grog/subscriptions","organizations_url":"https://api.github.com/users/Mr0grog/orgs","repos_url":"https://api.github.com/users/Mr0grog/repos","events_url":"https://api.github.com/users/Mr0grog/events{/privacy}","received_events_url":"https://api.github.com/users/Mr0grog/received_events","type":"User","site_admin":false},"body":"Some monitors weren’t really stably reporting data until after a certain date, so record when we started having good data for each monitor and only record/report from after that date.\r\n\r\nAt the moment, this works by recording a `good_after` date in our monitor metadata JSON file. We avoid recording data before that date. We’ll also need to throw out existing data we have before that date.\r\n\r\n- [x] Record `good_after` date for relevant monitors\r\n- [x] Don’t record data in the event hook if the `good_after` condition is not met\r\n- [ ] Don’t record data in tasks if the `good_after` condition is not met\r\n- [ ] Remove old data that doesn’t match the `good_after` condition","created_at":"2015-03-23T17:48:50Z","updated_at":"2015-03-23T17:48:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codeforamerica/snap-it-up/pulls/48/commits","review_comments_url":"https://api.github.com/repos/codeforamerica/snap-it-up/pulls/48/comments","review_comment_url":"https://api.github.com/repos/codeforamerica/snap-it-up/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codeforamerica/snap-it-up/issues/48/comments","statuses_url":"https://api.github.com/repos/codeforamerica/snap-it-up/statuses/1e44458f30d604d6170de9210b16017af110144a","head":{"label":"codeforamerica:46-good-after-date","ref":"46-good-after-date","sha":"1e44458f30d604d6170de9210b16017af110144a","user":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"repo":{"id":29511376,"name":"snap-it-up","full_name":"codeforamerica/snap-it-up","owner":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeforamerica/snap-it-up","description":"Super-simple dashboard showing the status of SNAP-related web services.","fork":false,"url":"https://api.github.com/repos/codeforamerica/snap-it-up","forks_url":"https://api.github.com/repos/codeforamerica/snap-it-up/forks","keys_url":"https://api.github.com/repos/codeforamerica/snap-it-up/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeforamerica/snap-it-up/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeforamerica/snap-it-up/teams","hooks_url":"https://api.github.com/repos/codeforamerica/snap-it-up/hooks","issue_events_url":"https://api.github.com/repos/codeforamerica/snap-it-up/issues/events{/number}","events_url":"https://api.github.com/repos/codeforamerica/snap-it-up/events","assignees_url":"https://api.github.com/repos/codeforamerica/snap-it-up/assignees{/user}","branches_url":"https://api.github.com/repos/codeforamerica/snap-it-up/branches{/branch}","tags_url":"https://api.github.com/repos/codeforamerica/snap-it-up/tags","blobs_url":"https://api.github.com/repos/codeforamerica/snap-it-up/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeforamerica/snap-it-up/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeforamerica/snap-it-up/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeforamerica/snap-it-up/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeforamerica/snap-it-up/statuses/{sha}","languages_url":"https://api.github.com/repos/codeforamerica/snap-it-up/languages","stargazers_url":"https://api.github.com/repos/codeforamerica/snap-it-up/stargazers","contributors_url":"https://api.github.com/repos/codeforamerica/snap-it-up/contributors","subscribers_url":"https://api.github.com/repos/codeforamerica/snap-it-up/subscribers","subscription_url":"https://api.github.com/repos/codeforamerica/snap-it-up/subscription","commits_url":"https://api.github.com/repos/codeforamerica/snap-it-up/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeforamerica/snap-it-up/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeforamerica/snap-it-up/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeforamerica/snap-it-up/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeforamerica/snap-it-up/contents/{+path}","compare_url":"https://api.github.com/repos/codeforamerica/snap-it-up/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeforamerica/snap-it-up/merges","archive_url":"https://api.github.com/repos/codeforamerica/snap-it-up/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeforamerica/snap-it-up/downloads","issues_url":"https://api.github.com/repos/codeforamerica/snap-it-up/issues{/number}","pulls_url":"https://api.github.com/repos/codeforamerica/snap-it-up/pulls{/number}","milestones_url":"https://api.github.com/repos/codeforamerica/snap-it-up/milestones{/number}","notifications_url":"https://api.github.com/repos/codeforamerica/snap-it-up/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeforamerica/snap-it-up/labels{/name}","releases_url":"https://api.github.com/repos/codeforamerica/snap-it-up/releases{/id}","created_at":"2015-01-20T04:15:44Z","updated_at":"2015-03-23T16:17:37Z","pushed_at":"2015-03-23T17:48:50Z","git_url":"git://github.com/codeforamerica/snap-it-up.git","ssh_url":"git@github.com:codeforamerica/snap-it-up.git","clone_url":"https://github.com/codeforamerica/snap-it-up.git","svn_url":"https://github.com/codeforamerica/snap-it-up","homepage":"http://status.citizenonboard.com/ ","size":788,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":29,"forks":0,"open_issues":29,"watchers":2,"default_branch":"master"}},"base":{"label":"codeforamerica:master","ref":"master","sha":"23cf9a5264be7bf57f4c690d3ae2e4a61c9a78b1","user":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"repo":{"id":29511376,"name":"snap-it-up","full_name":"codeforamerica/snap-it-up","owner":{"login":"codeforamerica","id":337792,"avatar_url":"https://avatars.githubusercontent.com/u/337792?v=3","gravatar_id":"","url":"https://api.github.com/users/codeforamerica","html_url":"https://github.com/codeforamerica","followers_url":"https://api.github.com/users/codeforamerica/followers","following_url":"https://api.github.com/users/codeforamerica/following{/other_user}","gists_url":"https://api.github.com/users/codeforamerica/gists{/gist_id}","starred_url":"https://api.github.com/users/codeforamerica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeforamerica/subscriptions","organizations_url":"https://api.github.com/users/codeforamerica/orgs","repos_url":"https://api.github.com/users/codeforamerica/repos","events_url":"https://api.github.com/users/codeforamerica/events{/privacy}","received_events_url":"https://api.github.com/users/codeforamerica/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codeforamerica/snap-it-up","description":"Super-simple dashboard showing the status of SNAP-related web services.","fork":false,"url":"https://api.github.com/repos/codeforamerica/snap-it-up","forks_url":"https://api.github.com/repos/codeforamerica/snap-it-up/forks","keys_url":"https://api.github.com/repos/codeforamerica/snap-it-up/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeforamerica/snap-it-up/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeforamerica/snap-it-up/teams","hooks_url":"https://api.github.com/repos/codeforamerica/snap-it-up/hooks","issue_events_url":"https://api.github.com/repos/codeforamerica/snap-it-up/issues/events{/number}","events_url":"https://api.github.com/repos/codeforamerica/snap-it-up/events","assignees_url":"https://api.github.com/repos/codeforamerica/snap-it-up/assignees{/user}","branches_url":"https://api.github.com/repos/codeforamerica/snap-it-up/branches{/branch}","tags_url":"https://api.github.com/repos/codeforamerica/snap-it-up/tags","blobs_url":"https://api.github.com/repos/codeforamerica/snap-it-up/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeforamerica/snap-it-up/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeforamerica/snap-it-up/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeforamerica/snap-it-up/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeforamerica/snap-it-up/statuses/{sha}","languages_url":"https://api.github.com/repos/codeforamerica/snap-it-up/languages","stargazers_url":"https://api.github.com/repos/codeforamerica/snap-it-up/stargazers","contributors_url":"https://api.github.com/repos/codeforamerica/snap-it-up/contributors","subscribers_url":"https://api.github.com/repos/codeforamerica/snap-it-up/subscribers","subscription_url":"https://api.github.com/repos/codeforamerica/snap-it-up/subscription","commits_url":"https://api.github.com/repos/codeforamerica/snap-it-up/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeforamerica/snap-it-up/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeforamerica/snap-it-up/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeforamerica/snap-it-up/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeforamerica/snap-it-up/contents/{+path}","compare_url":"https://api.github.com/repos/codeforamerica/snap-it-up/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeforamerica/snap-it-up/merges","archive_url":"https://api.github.com/repos/codeforamerica/snap-it-up/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeforamerica/snap-it-up/downloads","issues_url":"https://api.github.com/repos/codeforamerica/snap-it-up/issues{/number}","pulls_url":"https://api.github.com/repos/codeforamerica/snap-it-up/pulls{/number}","milestones_url":"https://api.github.com/repos/codeforamerica/snap-it-up/milestones{/number}","notifications_url":"https://api.github.com/repos/codeforamerica/snap-it-up/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeforamerica/snap-it-up/labels{/name}","releases_url":"https://api.github.com/repos/codeforamerica/snap-it-up/releases{/id}","created_at":"2015-01-20T04:15:44Z","updated_at":"2015-03-23T16:17:37Z","pushed_at":"2015-03-23T17:48:50Z","git_url":"git://github.com/codeforamerica/snap-it-up.git","ssh_url":"git@github.com:codeforamerica/snap-it-up.git","clone_url":"https://github.com/codeforamerica/snap-it-up.git","svn_url":"https://github.com/codeforamerica/snap-it-up","homepage":"http://status.citizenonboard.com/ ","size":788,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":29,"forks":0,"open_issues":29,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codeforamerica/snap-it-up/pulls/48"},"html":{"href":"https://github.com/codeforamerica/snap-it-up/pull/48"},"issue":{"href":"https://api.github.com/repos/codeforamerica/snap-it-up/issues/48"},"comments":{"href":"https://api.github.com/repos/codeforamerica/snap-it-up/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/codeforamerica/snap-it-up/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/codeforamerica/snap-it-up/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codeforamerica/snap-it-up/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/codeforamerica/snap-it-up/statuses/1e44458f30d604d6170de9210b16017af110144a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":13,"deletions":3,"changed_files":2}}