{"action":"opened","issue":{"url":"https://api.github.com/repos/reigndesign/mymandarinhouse/issues/132","labels_url":"https://api.github.com/repos/reigndesign/mymandarinhouse/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/reigndesign/mymandarinhouse/issues/132/comments","events_url":"https://api.github.com/repos/reigndesign/mymandarinhouse/issues/132/events","html_url":"https://github.com/reigndesign/mymandarinhouse/issues/132","id":112072372,"number":132,"title":"When booking a session, student should pick course/level, not session","user":{"login":"matthewmayer","id":152770,"avatar_url":"https://avatars.githubusercontent.com/u/152770?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewmayer","html_url":"https://github.com/matthewmayer","followers_url":"https://api.github.com/users/matthewmayer/followers","following_url":"https://api.github.com/users/matthewmayer/following{/other_user}","gists_url":"https://api.github.com/users/matthewmayer/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewmayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewmayer/subscriptions","organizations_url":"https://api.github.com/users/matthewmayer/orgs","repos_url":"https://api.github.com/users/matthewmayer/repos","events_url":"https://api.github.com/users/matthewmayer/events{/privacy}","received_events_url":"https://api.github.com/users/matthewmayer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/reigndesign/mymandarinhouse/labels/0%20-%20Backlog","name":"0 - Backlog","color":"CCCCCC"}],"state":"open","locked":false,"assignee":{"login":"rafaelcs","id":8113555,"avatar_url":"https://avatars.githubusercontent.com/u/8113555?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelcs","html_url":"https://github.com/rafaelcs","followers_url":"https://api.github.com/users/rafaelcs/followers","following_url":"https://api.github.com/users/rafaelcs/following{/other_user}","gists_url":"https://api.github.com/users/rafaelcs/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelcs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelcs/subscriptions","organizations_url":"https://api.github.com/users/rafaelcs/orgs","repos_url":"https://api.github.com/users/rafaelcs/repos","events_url":"https://api.github.com/users/rafaelcs/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelcs/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-10-19T05:07:01Z","updated_at":"2015-10-19T05:07:01Z","closed_at":null,"body":"Currently, Select Course dropdown gives list of all SESSIONS. This is wrong, it should show list of all COURSES. And when you book, automatically use sessions within that course. For example, if I choose HSK Level 2:\n\n1. Check my bookings for existing HSK Level 2 bookings\n2. Get the highest order number and add 1, for example if I just took session 3, my next session should be session 4 (if i dont have any bookings, my next will be session 1. if i have completed all the sessions, loop back to session 1)\n\n![uploads/ab7b5790-206f-4662-851e-50da5f1a6324/Screenshot 2015-10-19 13.01.00.png](https://s3-us-west-2.amazonaws.com/prod.huboard.com/uploads%2Fab7b5790-206f-4662-851e-50da5f1a6324%2FScreenshot+2015-10-19+13.01.00.png)\n\r\n\r\n<!---\r\n@huboard:{\"order\":0.0012969970703125,\"milestone_order\":5.169878828456423e-26}\r\n-->\r\n"}}