{"action":"opened","issue":{"url":"https://api.github.com/repos/danthareja/sivananda-housekeeping/issues/16","repository_url":"https://api.github.com/repos/danthareja/sivananda-housekeeping","labels_url":"https://api.github.com/repos/danthareja/sivananda-housekeeping/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/danthareja/sivananda-housekeeping/issues/16/comments","events_url":"https://api.github.com/repos/danthareja/sivananda-housekeeping/issues/16/events","html_url":"https://github.com/danthareja/sivananda-housekeeping/issues/16","id":377158395,"node_id":"MDU6SXNzdWUzNzcxNTgzOTU=","number":16,"title":"Clean/Dirty Logic","user":{"login":"iswara108","id":9681451,"node_id":"MDQ6VXNlcjk2ODE0NTE=","avatar_url":"https://avatars3.githubusercontent.com/u/9681451?v=4","gravatar_id":"","url":"https://api.github.com/users/iswara108","html_url":"https://github.com/iswara108","followers_url":"https://api.github.com/users/iswara108/followers","following_url":"https://api.github.com/users/iswara108/following{/other_user}","gists_url":"https://api.github.com/users/iswara108/gists{/gist_id}","starred_url":"https://api.github.com/users/iswara108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iswara108/subscriptions","organizations_url":"https://api.github.com/users/iswara108/orgs","repos_url":"https://api.github.com/users/iswara108/repos","events_url":"https://api.github.com/users/iswara108/events{/privacy}","received_events_url":"https://api.github.com/users/iswara108/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-04T14:30:38Z","updated_at":"2018-11-04T14:30:38Z","closed_at":null,"author_association":"NONE","body":"Om Brahmaswaroop\r\n\r\nThe system should now change the room status automatically.\r\nI'm not %100 sure about the logic of a room being cleaned, but this is what I have in mind so far:\r\n\r\n1. A room automatically turns dirty on the day of departure (any departure, even if there are still other people staying in the room).\r\n2. When a guest enters the room, and then there is a change in the room assignment for that guest - the room becomes dirty. Example: Susan entered room Om1, and after having entered, she complained about the room and we moved her to Om7. The actions we did on the computer are: \r\n   1. Set her room as cleaned.\r\n   2. Gave her the key to the room\r\n   3. Changed her room assignment from Om1 to Om7 in Retreat Guru\r\n   At this time, room Om1 should automatically turn into the dirty state.\r\n   I believe this step requires storing a state of all rooms and who's in them, and then comparing them to the next query from Retreat Guru to scan for room allocation changes.\r\n3. One day after a guest entered the room. (While the room is occupied, it should be considered clean on the day of arrival, but dirty one day later). This is true regardless of how many people share the room. For example - if a room has 3 beds and two people stay in the room, then housekeeping clean the room for an arrival, the room is \"clean\", and one day later - it's dirty again. \r\n\r\nTo put it all in a very short form:\r\n- As long as the room is vacant, it doesn't automatically change statuses.\r\n- When a room is occupied, the room is automatically marked as dirty one day after it was last cleaned.\r\n- The room is automatically marked as dirty if anyone departs or changes rooms\r\n"}}
{"actor":{"display_login":"iswara108"}}