{"action":"created","comment":{"url":"https://api.github.com/repos/NSLS-II/databroker/pulls/comments/132966141","pull_request_review_id":56095045,"id":132966141,"diff_hunk":"@@ -1069,6 +1085,59 @@ def export_size(self, headers):\n \n         return total_size * 1e-9\n \n+    def fill_events(self, events_iterable, descriptors,\n+                    fields=True, inplace=False):\n+        \"\"\"Fill a sequence of events\n+\n+        \"\"\"\n+        if fields is True:\n+            fields = None\n+        elif fields is False:\n+            # if no fields, we got nothing to do!\n+            for ev in events_iterable:\n+                yield ev\n+            return\n+        elif fields:\n+            fields = set(fields)\n+        registry_map = {}\n+        fill_map = defaultdict(list)\n+        for d in descriptors:\n+            fill_keys = set()\n+            desc_id = d['uid']\n+            for k, v in d['data_keys'].items():","path":"databroker/broker.py","position":131,"original_position":131,"commit_id":"e56c4996e827dc0245341c674bd2c331fca91bf6","original_commit_id":"e56c4996e827dc0245341c674bd2c331fca91bf6","user":{"login":"danielballan","id":2279598,"avatar_url":"https://avatars3.githubusercontent.com/u/2279598?v=4","gravatar_id":"","url":"https://api.github.com/users/danielballan","html_url":"https://github.com/danielballan","followers_url":"https://api.github.com/users/danielballan/followers","following_url":"https://api.github.com/users/danielballan/following{/other_user}","gists_url":"https://api.github.com/users/danielballan/gists{/gist_id}","starred_url":"https://api.github.com/users/danielballan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielballan/subscriptions","organizations_url":"https://api.github.com/users/danielballan/orgs","repos_url":"https://api.github.com/users/danielballan/repos","events_url":"https://api.github.com/users/danielballan/events{/privacy}","received_events_url":"https://api.github.com/users/danielballan/received_events","type":"User","site_admin":false},"body":"six.iteritems","created_at":"2017-08-14T14:33:23Z","updated_at":"2017-08-14T14:51:37Z","html_url":"https://github.com/NSLS-II/databroker/pull/236#discussion_r132966141","pull_request_url":"https://api.github.com/repos/NSLS-II/databroker/pulls/236","_links":{"self":{"href":"https://api.github.com/repos/NSLS-II/databroker/pulls/comments/132966141"},"html":{"href":"https://github.com/NSLS-II/databroker/pull/236#discussion_r132966141"},"pull_request":{"href":"https://api.github.com/repos/NSLS-II/databroker/pulls/236"}}},"pull_request":{"url":"https://api.github.com/repos/NSLS-II/databroker/pulls/236","id":135431411,"html_url":"https://github.com/NSLS-II/databroker/pull/236","diff_url":"https://github.com/NSLS-II/databroker/pull/236.diff","patch_url":"https://github.com/NSLS-II/databroker/pull/236.patch","issue_url":"https://api.github.com/repos/NSLS-II/databroker/issues/236","number":236,"state":"open","locked":false,"title":"Api fill changes","user":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars3.githubusercontent.com/u/199813?v=4","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-08-11T22:40:48Z","updated_at":"2017-08-14T14:51:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"755314513bcc72541238f401f4ed51c8684c2a36","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/NSLS-II/databroker/pulls/236/commits","review_comments_url":"https://api.github.com/repos/NSLS-II/databroker/pulls/236/comments","review_comment_url":"https://api.github.com/repos/NSLS-II/databroker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NSLS-II/databroker/issues/236/comments","statuses_url":"https://api.github.com/repos/NSLS-II/databroker/statuses/e56c4996e827dc0245341c674bd2c331fca91bf6","head":{"label":"tacaswell:api_fill_changes","ref":"api_fill_changes","sha":"e56c4996e827dc0245341c674bd2c331fca91bf6","user":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars3.githubusercontent.com/u/199813?v=4","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"repo":{"id":45515532,"name":"databroker","full_name":"tacaswell/databroker","owner":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars3.githubusercontent.com/u/199813?v=4","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tacaswell/databroker","description":"Externally facing API for data","fork":true,"url":"https://api.github.com/repos/tacaswell/databroker","forks_url":"https://api.github.com/repos/tacaswell/databroker/forks","keys_url":"https://api.github.com/repos/tacaswell/databroker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tacaswell/databroker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tacaswell/databroker/teams","hooks_url":"https://api.github.com/repos/tacaswell/databroker/hooks","issue_events_url":"https://api.github.com/repos/tacaswell/databroker/issues/events{/number}","events_url":"https://api.github.com/repos/tacaswell/databroker/events","assignees_url":"https://api.github.com/repos/tacaswell/databroker/assignees{/user}","branches_url":"https://api.github.com/repos/tacaswell/databroker/branches{/branch}","tags_url":"https://api.github.com/repos/tacaswell/databroker/tags","blobs_url":"https://api.github.com/repos/tacaswell/databroker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tacaswell/databroker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tacaswell/databroker/git/refs{/sha}","trees_url":"https://api.github.com/repos/tacaswell/databroker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tacaswell/databroker/statuses/{sha}","languages_url":"https://api.github.com/repos/tacaswell/databroker/languages","stargazers_url":"https://api.github.com/repos/tacaswell/databroker/stargazers","contributors_url":"https://api.github.com/repos/tacaswell/databroker/contributors","subscribers_url":"https://api.github.com/repos/tacaswell/databroker/subscribers","subscription_url":"https://api.github.com/repos/tacaswell/databroker/subscription","commits_url":"https://api.github.com/repos/tacaswell/databroker/commits{/sha}","git_commits_url":"https://api.github.com/repos/tacaswell/databroker/git/commits{/sha}","comments_url":"https://api.github.com/repos/tacaswell/databroker/comments{/number}","issue_comment_url":"https://api.github.com/repos/tacaswell/databroker/issues/comments{/number}","contents_url":"https://api.github.com/repos/tacaswell/databroker/contents/{+path}","compare_url":"https://api.github.com/repos/tacaswell/databroker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tacaswell/databroker/merges","archive_url":"https://api.github.com/repos/tacaswell/databroker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tacaswell/databroker/downloads","issues_url":"https://api.github.com/repos/tacaswell/databroker/issues{/number}","pulls_url":"https://api.github.com/repos/tacaswell/databroker/pulls{/number}","milestones_url":"https://api.github.com/repos/tacaswell/databroker/milestones{/number}","notifications_url":"https://api.github.com/repos/tacaswell/databroker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tacaswell/databroker/labels{/name}","releases_url":"https://api.github.com/repos/tacaswell/databroker/releases{/id}","deployments_url":"https://api.github.com/repos/tacaswell/databroker/deployments","created_at":"2015-11-04T04:37:48Z","updated_at":"2016-01-18T19:53:22Z","pushed_at":"2017-08-14T14:04:28Z","git_url":"git://github.com/tacaswell/databroker.git","ssh_url":"git@github.com:tacaswell/databroker.git","clone_url":"https://github.com/tacaswell/databroker.git","svn_url":"https://github.com/tacaswell/databroker","homepage":"http://nsls-ii.github.io/","size":3322,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"NSLS-II:master","ref":"master","sha":"5d7483d1735ff54a2f3d4ad2a69d685deeb4e7c4","user":{"login":"NSLS-II","id":8700262,"avatar_url":"https://avatars3.githubusercontent.com/u/8700262?v=4","gravatar_id":"","url":"https://api.github.com/users/NSLS-II","html_url":"https://github.com/NSLS-II","followers_url":"https://api.github.com/users/NSLS-II/followers","following_url":"https://api.github.com/users/NSLS-II/following{/other_user}","gists_url":"https://api.github.com/users/NSLS-II/gists{/gist_id}","starred_url":"https://api.github.com/users/NSLS-II/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NSLS-II/subscriptions","organizations_url":"https://api.github.com/users/NSLS-II/orgs","repos_url":"https://api.github.com/users/NSLS-II/repos","events_url":"https://api.github.com/users/NSLS-II/events{/privacy}","received_events_url":"https://api.github.com/users/NSLS-II/received_events","type":"Organization","site_admin":false},"repo":{"id":43328009,"name":"databroker","full_name":"NSLS-II/databroker","owner":{"login":"NSLS-II","id":8700262,"avatar_url":"https://avatars3.githubusercontent.com/u/8700262?v=4","gravatar_id":"","url":"https://api.github.com/users/NSLS-II","html_url":"https://github.com/NSLS-II","followers_url":"https://api.github.com/users/NSLS-II/followers","following_url":"https://api.github.com/users/NSLS-II/following{/other_user}","gists_url":"https://api.github.com/users/NSLS-II/gists{/gist_id}","starred_url":"https://api.github.com/users/NSLS-II/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NSLS-II/subscriptions","organizations_url":"https://api.github.com/users/NSLS-II/orgs","repos_url":"https://api.github.com/users/NSLS-II/repos","events_url":"https://api.github.com/users/NSLS-II/events{/privacy}","received_events_url":"https://api.github.com/users/NSLS-II/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NSLS-II/databroker","description":"Unified API pulling data from multiple sources","fork":false,"url":"https://api.github.com/repos/NSLS-II/databroker","forks_url":"https://api.github.com/repos/NSLS-II/databroker/forks","keys_url":"https://api.github.com/repos/NSLS-II/databroker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NSLS-II/databroker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NSLS-II/databroker/teams","hooks_url":"https://api.github.com/repos/NSLS-II/databroker/hooks","issue_events_url":"https://api.github.com/repos/NSLS-II/databroker/issues/events{/number}","events_url":"https://api.github.com/repos/NSLS-II/databroker/events","assignees_url":"https://api.github.com/repos/NSLS-II/databroker/assignees{/user}","branches_url":"https://api.github.com/repos/NSLS-II/databroker/branches{/branch}","tags_url":"https://api.github.com/repos/NSLS-II/databroker/tags","blobs_url":"https://api.github.com/repos/NSLS-II/databroker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NSLS-II/databroker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NSLS-II/databroker/git/refs{/sha}","trees_url":"https://api.github.com/repos/NSLS-II/databroker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NSLS-II/databroker/statuses/{sha}","languages_url":"https://api.github.com/repos/NSLS-II/databroker/languages","stargazers_url":"https://api.github.com/repos/NSLS-II/databroker/stargazers","contributors_url":"https://api.github.com/repos/NSLS-II/databroker/contributors","subscribers_url":"https://api.github.com/repos/NSLS-II/databroker/subscribers","subscription_url":"https://api.github.com/repos/NSLS-II/databroker/subscription","commits_url":"https://api.github.com/repos/NSLS-II/databroker/commits{/sha}","git_commits_url":"https://api.github.com/repos/NSLS-II/databroker/git/commits{/sha}","comments_url":"https://api.github.com/repos/NSLS-II/databroker/comments{/number}","issue_comment_url":"https://api.github.com/repos/NSLS-II/databroker/issues/comments{/number}","contents_url":"https://api.github.com/repos/NSLS-II/databroker/contents/{+path}","compare_url":"https://api.github.com/repos/NSLS-II/databroker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NSLS-II/databroker/merges","archive_url":"https://api.github.com/repos/NSLS-II/databroker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NSLS-II/databroker/downloads","issues_url":"https://api.github.com/repos/NSLS-II/databroker/issues{/number}","pulls_url":"https://api.github.com/repos/NSLS-II/databroker/pulls{/number}","milestones_url":"https://api.github.com/repos/NSLS-II/databroker/milestones{/number}","notifications_url":"https://api.github.com/repos/NSLS-II/databroker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NSLS-II/databroker/labels{/name}","releases_url":"https://api.github.com/repos/NSLS-II/databroker/releases{/id}","deployments_url":"https://api.github.com/repos/NSLS-II/databroker/deployments","created_at":"2015-09-28T21:28:04Z","updated_at":"2017-04-03T16:20:54Z","pushed_at":"2017-08-14T14:25:42Z","git_url":"git://github.com/NSLS-II/databroker.git","ssh_url":"git@github.com:NSLS-II/databroker.git","clone_url":"https://github.com/NSLS-II/databroker.git","svn_url":"https://github.com/NSLS-II/databroker","homepage":"http://nsls-ii.github.io/databroker","size":3391,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":47,"forks":12,"open_issues":47,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NSLS-II/databroker/pulls/236"},"html":{"href":"https://github.com/NSLS-II/databroker/pull/236"},"issue":{"href":"https://api.github.com/repos/NSLS-II/databroker/issues/236"},"comments":{"href":"https://api.github.com/repos/NSLS-II/databroker/issues/236/comments"},"review_comments":{"href":"https://api.github.com/repos/NSLS-II/databroker/pulls/236/comments"},"review_comment":{"href":"https://api.github.com/repos/NSLS-II/databroker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NSLS-II/databroker/pulls/236/commits"},"statuses":{"href":"https://api.github.com/repos/NSLS-II/databroker/statuses/e56c4996e827dc0245341c674bd2c331fca91bf6"}}}}
{"actor":{"display_login":"danielballan"}}