{"action":"closed","issue":{"url":"https://api.github.com/repos/azavea/nyc-trees/issues/316","labels_url":"https://api.github.com/repos/azavea/nyc-trees/issues/316/labels{/name}","comments_url":"https://api.github.com/repos/azavea/nyc-trees/issues/316/comments","events_url":"https://api.github.com/repos/azavea/nyc-trees/issues/316/events","html_url":"https://github.com/azavea/nyc-trees/issues/316","id":54595097,"number":316,"title":"Event alert should appear/disappear even if user doesn't change pages","user":{"login":"RickMohr","id":2162993,"avatar_url":"https://avatars.githubusercontent.com/u/2162993?v=3","gravatar_id":"","url":"https://api.github.com/users/RickMohr","html_url":"https://github.com/RickMohr","followers_url":"https://api.github.com/users/RickMohr/followers","following_url":"https://api.github.com/users/RickMohr/following{/other_user}","gists_url":"https://api.github.com/users/RickMohr/gists{/gist_id}","starred_url":"https://api.github.com/users/RickMohr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RickMohr/subscriptions","organizations_url":"https://api.github.com/users/RickMohr/orgs","repos_url":"https://api.github.com/users/RickMohr/repos","events_url":"https://api.github.com/users/RickMohr/events{/privacy}","received_events_url":"https://api.github.com/users/RickMohr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/azavea/nyc-trees/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-16T16:32:06Z","updated_at":"2015-05-07T20:18:06Z","closed_at":"2015-05-07T20:18:06Z","body":"This behavior was proposed by @jfrankl. Scenario:\r\n* The night before an event you have TreesCount open in a browser page. There is no alert icon because the event is not starting soon.\r\n* The next day you look at the same page (without reloading it) 45 minutes before the event. You should see an alert icon because the event is starting soon.\r\n\r\nImplementation: we don't want all pages to poll the server constantly in case an alert is needed. @maurizi proposes that when we load a page we also load data for upcoming events, and use that to update alerts locally. That could potentially give wrong information if event times are changed at the last minute, but that seems unlikely."}}