{"action":"created","issue":{"url":"https://api.github.com/repos/NSLS-II/bluesky/issues/1022","repository_url":"https://api.github.com/repos/NSLS-II/bluesky","labels_url":"https://api.github.com/repos/NSLS-II/bluesky/issues/1022/labels{/name}","comments_url":"https://api.github.com/repos/NSLS-II/bluesky/issues/1022/comments","events_url":"https://api.github.com/repos/NSLS-II/bluesky/issues/1022/events","html_url":"https://github.com/NSLS-II/bluesky/pull/1022","id":320455704,"number":1022,"title":"FIX: LiveDispatcher should work even if we do not see a start document","user":{"login":"teddyrendahl","id":25753048,"avatar_url":"https://avatars3.githubusercontent.com/u/25753048?v=4","gravatar_id":"","url":"https://api.github.com/users/teddyrendahl","html_url":"https://github.com/teddyrendahl","followers_url":"https://api.github.com/users/teddyrendahl/followers","following_url":"https://api.github.com/users/teddyrendahl/following{/other_user}","gists_url":"https://api.github.com/users/teddyrendahl/gists{/gist_id}","starred_url":"https://api.github.com/users/teddyrendahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teddyrendahl/subscriptions","organizations_url":"https://api.github.com/users/teddyrendahl/orgs","repos_url":"https://api.github.com/users/teddyrendahl/repos","events_url":"https://api.github.com/users/teddyrendahl/events{/privacy}","received_events_url":"https://api.github.com/users/teddyrendahl/received_events","type":"User","site_admin":false},"labels":[{"id":716770718,"url":"https://api.github.com/repos/NSLS-II/bluesky/labels/in%20progress","name":"in progress","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-04T23:15:08Z","updated_at":"2018-05-08T20:42:32Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/NSLS-II/bluesky/pulls/1022","html_url":"https://github.com/NSLS-II/bluesky/pull/1022","diff_url":"https://github.com/NSLS-II/bluesky/pull/1022.diff","patch_url":"https://github.com/NSLS-II/bluesky/pull/1022.patch"},"body":"<!--- Provide a general summary of your changes in the Title above -->\r\n\r\n## Description\r\n<!--- Describe your changes in detail -->\r\nFinally got around to playing with the `LiveDispatcher` and noticed this slightly annoying gotcha. If you subscribe a `LiveDispatcher` **after** the original start document, the secondary stream outputs an event document **before** ever outputting a start document. This is certainly confusing to subscribers and we also never perform any of the necessary start-up done in `LiveDispatcher.start`\r\n\r\nThis quick fix just checks right before we emit our first event that we emitted a start document, if not we force an `self.start()` with an empty dictionary. \r\n"},"comment":{"url":"https://api.github.com/repos/NSLS-II/bluesky/issues/comments/387536022","html_url":"https://github.com/NSLS-II/bluesky/pull/1022#issuecomment-387536022","issue_url":"https://api.github.com/repos/NSLS-II/bluesky/issues/1022","id":387536022,"user":{"login":"ZLLentz","id":10647860,"avatar_url":"https://avatars3.githubusercontent.com/u/10647860?v=4","gravatar_id":"","url":"https://api.github.com/users/ZLLentz","html_url":"https://github.com/ZLLentz","followers_url":"https://api.github.com/users/ZLLentz/followers","following_url":"https://api.github.com/users/ZLLentz/following{/other_user}","gists_url":"https://api.github.com/users/ZLLentz/gists{/gist_id}","starred_url":"https://api.github.com/users/ZLLentz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZLLentz/subscriptions","organizations_url":"https://api.github.com/users/ZLLentz/orgs","repos_url":"https://api.github.com/users/ZLLentz/repos","events_url":"https://api.github.com/users/ZLLentz/events{/privacy}","received_events_url":"https://api.github.com/users/ZLLentz/received_events","type":"User","site_admin":false},"created_at":"2018-05-08T20:42:32Z","updated_at":"2018-05-08T20:42:32Z","author_association":"COLLABORATOR","body":"That approach means we can't subscribe any `LiveDispatcher` subclasses during any open run. It seems like an arbitrary restriction."}}
{"actor":{"display_login":"ZLLentz"}}