{"action":"created","issue":{"url":"https://api.github.com/repos/YaleSTC/reservations/issues/1274","labels_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1274/labels{/name}","comments_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1274/comments","events_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1274/events","html_url":"https://github.com/YaleSTC/reservations/issues/1274","id":86421027,"number":1274,"title":"flag_overdue task only works if it runs every day","user":{"login":"orenyk","id":901808,"avatar_url":"https://avatars.githubusercontent.com/u/901808?v=3","gravatar_id":"","url":"https://api.github.com/users/orenyk","html_url":"https://github.com/orenyk","followers_url":"https://api.github.com/users/orenyk/followers","following_url":"https://api.github.com/users/orenyk/following{/other_user}","gists_url":"https://api.github.com/users/orenyk/gists{/gist_id}","starred_url":"https://api.github.com/users/orenyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orenyk/subscriptions","organizations_url":"https://api.github.com/users/orenyk/orgs","repos_url":"https://api.github.com/users/orenyk/repos","events_url":"https://api.github.com/users/orenyk/events{/privacy}","received_events_url":"https://api.github.com/users/orenyk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/YaleSTC/reservations/labels/2%20-%20Working","name":"2 - Working","color":"CCCCCC"},{"url":"https://api.github.com/repos/YaleSTC/reservations/labels/blocked","name":"blocked","color":"000000"},{"url":"https://api.github.com/repos/YaleSTC/reservations/labels/diff:%201","name":"diff: 1","color":"ffffdd"},{"url":"https://api.github.com/repos/YaleSTC/reservations/labels/pri:%203","name":"pri: 3","color":"ff6060"},{"url":"https://api.github.com/repos/YaleSTC/reservations/labels/type:%20bug","name":"type: bug","color":"bfd4f2"}],"state":"open","locked":false,"assignee":{"login":"orenyk","id":901808,"avatar_url":"https://avatars.githubusercontent.com/u/901808?v=3","gravatar_id":"","url":"https://api.github.com/users/orenyk","html_url":"https://github.com/orenyk","followers_url":"https://api.github.com/users/orenyk/followers","following_url":"https://api.github.com/users/orenyk/following{/other_user}","gists_url":"https://api.github.com/users/orenyk/gists{/gist_id}","starred_url":"https://api.github.com/users/orenyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orenyk/subscriptions","organizations_url":"https://api.github.com/users/orenyk/orgs","repos_url":"https://api.github.com/users/orenyk/repos","events_url":"https://api.github.com/users/orenyk/events{/privacy}","received_events_url":"https://api.github.com/users/orenyk/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/YaleSTC/reservations/milestones/31","html_url":"https://github.com/YaleSTC/reservations/milestones/5.3.0","labels_url":"https://api.github.com/repos/YaleSTC/reservations/milestones/31/labels","id":987925,"number":31,"title":"5.3.0","description":"Third sprint of Spring 2015, finalizing work from the semester.","creator":{"login":"orenyk","id":901808,"avatar_url":"https://avatars.githubusercontent.com/u/901808?v=3","gravatar_id":"","url":"https://api.github.com/users/orenyk","html_url":"https://github.com/orenyk","followers_url":"https://api.github.com/users/orenyk/followers","following_url":"https://api.github.com/users/orenyk/following{/other_user}","gists_url":"https://api.github.com/users/orenyk/gists{/gist_id}","starred_url":"https://api.github.com/users/orenyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orenyk/subscriptions","organizations_url":"https://api.github.com/users/orenyk/orgs","repos_url":"https://api.github.com/users/orenyk/repos","events_url":"https://api.github.com/users/orenyk/events{/privacy}","received_events_url":"https://api.github.com/users/orenyk/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":13,"state":"open","created_at":"2015-02-20T06:57:43Z","updated_at":"2015-06-09T03:02:20Z","due_on":"2015-05-25T04:00:00Z","closed_at":null},"comments":2,"created_at":"2015-06-09T03:00:11Z","updated_at":"2015-06-09T16:18:01Z","closed_at":null,"body":"Currently, the Rake task `flag_overdue` only looks for Reservations whose due dates were *yesterday* and so if it doesn't run one day those reservations will never be flagged as overdue. Instead, we should search for reservations whose due dates were yesterday *or earlier* and still have the status of `checked_out` so that one missed cron job (or a period without cron jobs) doesn't prevent proper reservation flagging.\r\n\r\nNote that this should probably be done for `flag_missed` as well."},"comment":{"url":"https://api.github.com/repos/YaleSTC/reservations/issues/comments/110419595","html_url":"https://github.com/YaleSTC/reservations/issues/1274#issuecomment-110419595","issue_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1274","id":110419595,"user":{"login":"orenyk","id":901808,"avatar_url":"https://avatars.githubusercontent.com/u/901808?v=3","gravatar_id":"","url":"https://api.github.com/users/orenyk","html_url":"https://github.com/orenyk","followers_url":"https://api.github.com/users/orenyk/followers","following_url":"https://api.github.com/users/orenyk/following{/other_user}","gists_url":"https://api.github.com/users/orenyk/gists{/gist_id}","starred_url":"https://api.github.com/users/orenyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orenyk/subscriptions","organizations_url":"https://api.github.com/users/orenyk/orgs","repos_url":"https://api.github.com/users/orenyk/repos","events_url":"https://api.github.com/users/orenyk/events{/privacy}","received_events_url":"https://api.github.com/users/orenyk/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T16:18:01Z","updated_at":"2015-06-09T16:18:01Z","body":"I rebased the branch for this issue onto the new one for #1273 and will wait to open a PR until #1273 is merged."}}