{"action":"created","issue":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/1471","labels_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/1471/labels{/name}","comments_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/1471/comments","events_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/1471/events","html_url":"https://github.com/code-dot-org/code-dot-org/pull/1471","id":59567230,"number":1471,"title":"Netsim: Teachers see sections (#87029474)","user":{"login":"islemaster","id":1615761,"avatar_url":"https://avatars.githubusercontent.com/u/1615761?v=3","gravatar_id":"","url":"https://api.github.com/users/islemaster","html_url":"https://github.com/islemaster","followers_url":"https://api.github.com/users/islemaster/followers","following_url":"https://api.github.com/users/islemaster/following{/other_user}","gists_url":"https://api.github.com/users/islemaster/gists{/gist_id}","starred_url":"https://api.github.com/users/islemaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/islemaster/subscriptions","organizations_url":"https://api.github.com/users/islemaster/orgs","repos_url":"https://api.github.com/users/islemaster/repos","events_url":"https://api.github.com/users/islemaster/events{/privacy}","received_events_url":"https://api.github.com/users/islemaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-02T23:09:27Z","updated_at":"2015-03-03T17:32:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/pulls/1471","html_url":"https://github.com/code-dot-org/code-dot-org/pull/1471","diff_url":"https://github.com/code-dot-org/code-dot-org/pull/1471.diff","patch_url":"https://github.com/code-dot-org/code-dot-org/pull/1471.patch"},"body":"If a teacher is logged in, they should see all of their sections and be able to choose which one they want to join.\r\n\r\n![multi_section_selection](https://cloud.githubusercontent.com/assets/1615761/6452914/c9a6eac4-c0ed-11e4-8195-e98b5946b8bb.gif)\r\n\r\nCrucial change for this behavior is fairly small, at `NetSimLobby.prototype.getUserSections_`.  Testing, though, revealed some bad assumptions about disconnect being a synchronous operation, which caused things to break when switching between sections.  Disconnect is now consistently treated as an async operation, so that picking a different section from the dropdown kicks off an async disconnect, followed by an async connect to the new section."},"comment":{"url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/comments/76993176","html_url":"https://github.com/code-dot-org/code-dot-org/pull/1471#issuecomment-76993176","issue_url":"https://api.github.com/repos/code-dot-org/code-dot-org/issues/1471","id":76993176,"user":{"login":"bcjordan","id":206973,"avatar_url":"https://avatars.githubusercontent.com/u/206973?v=3","gravatar_id":"","url":"https://api.github.com/users/bcjordan","html_url":"https://github.com/bcjordan","followers_url":"https://api.github.com/users/bcjordan/followers","following_url":"https://api.github.com/users/bcjordan/following{/other_user}","gists_url":"https://api.github.com/users/bcjordan/gists{/gist_id}","starred_url":"https://api.github.com/users/bcjordan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcjordan/subscriptions","organizations_url":"https://api.github.com/users/bcjordan/orgs","repos_url":"https://api.github.com/users/bcjordan/repos","events_url":"https://api.github.com/users/bcjordan/events{/privacy}","received_events_url":"https://api.github.com/users/bcjordan/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T17:32:55Z","updated_at":"2015-03-03T17:32:55Z","body":"LGTM!"}}