{"action":"opened","issue":{"url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/1336","repository_url":"https://api.github.com/repos/evercam/evercam-dashboard","labels_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/1336/labels{/name}","comments_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/1336/comments","events_url":"https://api.github.com/repos/evercam/evercam-dashboard/issues/1336/events","html_url":"https://github.com/evercam/evercam-dashboard/issues/1336","id":163983028,"number":1336,"title":"Use snapshot days endpoint to fill out the days in the calendar","user":{"login":"mosic","id":1229422,"avatar_url":"https://avatars.githubusercontent.com/u/1229422?v=3","gravatar_id":"","url":"https://api.github.com/users/mosic","html_url":"https://github.com/mosic","followers_url":"https://api.github.com/users/mosic/followers","following_url":"https://api.github.com/users/mosic/following{/other_user}","gists_url":"https://api.github.com/users/mosic/gists{/gist_id}","starred_url":"https://api.github.com/users/mosic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mosic/subscriptions","organizations_url":"https://api.github.com/users/mosic/orgs","repos_url":"https://api.github.com/users/mosic/repos","events_url":"https://api.github.com/users/mosic/events{/privacy}","received_events_url":"https://api.github.com/users/mosic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-06T01:56:35Z","updated_at":"2016-07-06T01:56:35Z","closed_at":null,"body":"When we had issues with query speed on the queries used by the calendar, I made a quick change to check each day in a month separately instead of going through the whole month. This had a couple of benefits:\r\n\r\n* the individual queries would take much less time and had less chance of timing out\r\n* they were easier to cache and re-request if the first request failed\r\n* they were shown on the calendar as they were being checked, so the user saw that we were loading data\r\n\r\nNow that we're using seaweedfs I reimplemented the endpoint and it's as fast to check one day as it is for whole month, so there is no strong reason to keep using this method, we can go back to using \"days\" endpoint."}}
{"actor":{"display_login":"mosic"}}