{"action":"created","issue":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/5507","repository_url":"https://api.github.com/repos/WordPress/gutenberg","labels_url":"https://api.github.com/repos/WordPress/gutenberg/issues/5507/labels{/name}","comments_url":"https://api.github.com/repos/WordPress/gutenberg/issues/5507/comments","events_url":"https://api.github.com/repos/WordPress/gutenberg/issues/5507/events","html_url":"https://github.com/WordPress/gutenberg/pull/5507","id":303586654,"number":5507,"title":"Handle calculateFrequency edge case","user":{"login":"noisysocks","id":612155,"avatar_url":"https://avatars1.githubusercontent.com/u/612155?v=4","gravatar_id":"","url":"https://api.github.com/users/noisysocks","html_url":"https://github.com/noisysocks","followers_url":"https://api.github.com/users/noisysocks/followers","following_url":"https://api.github.com/users/noisysocks/following{/other_user}","gists_url":"https://api.github.com/users/noisysocks/gists{/gist_id}","starred_url":"https://api.github.com/users/noisysocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noisysocks/subscriptions","organizations_url":"https://api.github.com/users/noisysocks/orgs","repos_url":"https://api.github.com/users/noisysocks/repos","events_url":"https://api.github.com/users/noisysocks/events{/privacy}","received_events_url":"https://api.github.com/users/noisysocks/received_events","type":"User","site_admin":false},"labels":[{"id":596962434,"url":"https://api.github.com/repos/WordPress/gutenberg/labels/[Component]%20Inserter","name":"[Component] Inserter","color":"fbca04","default":false},{"id":531680823,"url":"https://api.github.com/repos/WordPress/gutenberg/labels/[Type]%20Bug","name":"[Type] Bug","color":"d93f0b","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/WordPress/gutenberg/milestones/36","html_url":"https://github.com/WordPress/gutenberg/milestone/36","labels_url":"https://api.github.com/repos/WordPress/gutenberg/milestones/36/labels","id":3133103,"number":36,"title":"2.4","description":"","creator":{"login":"karmatosed","id":253067,"avatar_url":"https://avatars3.githubusercontent.com/u/253067?v=4","gravatar_id":"","url":"https://api.github.com/users/karmatosed","html_url":"https://github.com/karmatosed","followers_url":"https://api.github.com/users/karmatosed/followers","following_url":"https://api.github.com/users/karmatosed/following{/other_user}","gists_url":"https://api.github.com/users/karmatosed/gists{/gist_id}","starred_url":"https://api.github.com/users/karmatosed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karmatosed/subscriptions","organizations_url":"https://api.github.com/users/karmatosed/orgs","repos_url":"https://api.github.com/users/karmatosed/repos","events_url":"https://api.github.com/users/karmatosed/events{/privacy}","received_events_url":"https://api.github.com/users/karmatosed/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":14,"state":"open","created_at":"2018-02-21T14:19:56Z","updated_at":"2018-03-14T17:36:59Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-03-08T18:38:45Z","updated_at":"2018-03-14T18:22:16Z","closed_at":"2018-03-14T14:05:29Z","author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/WordPress/gutenberg/pulls/5507","html_url":"https://github.com/WordPress/gutenberg/pull/5507","diff_url":"https://github.com/WordPress/gutenberg/pull/5507.diff","patch_url":"https://github.com/WordPress/gutenberg/pull/5507.patch"},"body":"This updates `calculateFrequency` to explicitly handle an edge case spotted by @aduth in https://github.com/WordPress/gutenberg/pull/5342#issuecomment-371362768.\r\n\r\nThe edge case is that `time` will be `undefined` for all blocks when a user first upgrades Gutenberg to the version that contains [this new functionality](https://github.com/WordPress/gutenberg/pull/5342).\r\n\r\nIn this case, we'll simply assume that the block was used somewhere between a day and one week ago."},"comment":{"url":"https://api.github.com/repos/WordPress/gutenberg/issues/comments/373125803","html_url":"https://github.com/WordPress/gutenberg/pull/5507#issuecomment-373125803","issue_url":"https://api.github.com/repos/WordPress/gutenberg/issues/5507","id":373125803,"user":{"login":"noisysocks","id":612155,"avatar_url":"https://avatars1.githubusercontent.com/u/612155?v=4","gravatar_id":"","url":"https://api.github.com/users/noisysocks","html_url":"https://github.com/noisysocks","followers_url":"https://api.github.com/users/noisysocks/followers","following_url":"https://api.github.com/users/noisysocks/following{/other_user}","gists_url":"https://api.github.com/users/noisysocks/gists{/gist_id}","starred_url":"https://api.github.com/users/noisysocks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noisysocks/subscriptions","organizations_url":"https://api.github.com/users/noisysocks/orgs","repos_url":"https://api.github.com/users/noisysocks/repos","events_url":"https://api.github.com/users/noisysocks/events{/privacy}","received_events_url":"https://api.github.com/users/noisysocks/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T18:22:16Z","updated_at":"2018-03-14T18:22:16Z","author_association":"MEMBER","body":"Thanks!"}}
{"actor":{"display_login":"noisysocks"}}