{"action":"created","issue":{"url":"https://api.github.com/repos/YaleSTC/reservations/issues/1449","labels_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1449/labels{/name}","comments_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1449/comments","events_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1449/events","html_url":"https://github.com/YaleSTC/reservations/issues/1449","id":128256620,"number":1449,"title":"Availability validation not working? [v5.5]","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/diff:%203","name":"diff: 3","color":"ffff99"},{"url":"https://api.github.com/repos/YaleSTC/reservations/labels/pri:%205","name":"pri: 5","color":"ff0000"},{"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/40","html_url":"https://github.com/YaleSTC/reservations/milestones/5.5.3","labels_url":"https://api.github.com/repos/YaleSTC/reservations/milestones/40/labels","id":1505816,"number":40,"title":"5.5.3","description":"Patch update to v5.5.2 (following emergency e-mail patch)","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":9,"closed_issues":0,"state":"open","created_at":"2016-01-13T21:43:00Z","updated_at":"2016-01-22T21:59:42Z","due_on":"2016-02-01T05:00:00Z","closed_at":null},"comments":1,"created_at":"2016-01-22T21:59:42Z","updated_at":"2016-01-24T00:36:07Z","closed_at":null,"body":"Reported by BMEC:\r\n> Just a heads up that we seem to be really overbooked on projectors today. I don’t know what happened, but all of them are checked out, none are overdue, only one is due back today, and there are 4 people still listed as having a reservation that starts today. None of them have come in yet, but I wanted to let you know in case we get any angry messages, or in case you have any magical solutions.\r\n> ...\r\n> Okay, I know what happened. Reservations is allowing us to create new reservations for dates where we show zero available items. I was able to create a reservation for a projector from today to tomorrow despite the red zeros for January 22-24 on the calendar.  If you try to make the reservation from the catalog page, you cannot click “Add to cart” when it shows zero available, but if you go to the equipment model page, it allows you to add the item to the cart and go through and finalize the reservation, even though there are zero available until Monday.  I’m adding the Developers to this email because this is definitely a problem.  I had my student worker reserve one for herself, and then I changed my “view as” to a normal user and was also able to reserve the projector, so it’s not some special privilege of Admins and Checkout folks.\r\n\r\nConfirmed on BMEC PROD, I can add said overbooked item (or any overbooked item) to my cart (through the equipment model page) and no cart validations are triggered, either in the flash or in the cart warnings. No idea what's going on, this is CRITICAL so we should get this fixed ASAP. If necessary we can push a patch for v5.5.3 over the weekend / early next week and bump the rest of this milestone to v5.5.4."},"comment":{"url":"https://api.github.com/repos/YaleSTC/reservations/issues/comments/174238667","html_url":"https://github.com/YaleSTC/reservations/issues/1449#issuecomment-174238667","issue_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1449","id":174238667,"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":"2016-01-24T00:36:07Z","updated_at":"2016-01-24T00:36:07Z","body":"Alright I'm on this."}}