{"action":"created","comment":{"url":"https://api.github.com/repos/BD2KGenomics/jobTree/pulls/comments/33543962","id":33543962,"diff_hunk":"@@ -76,7 +76,8 @@ def __init__( self, region, namePrefix, config=None ):\n         self.jobs = self._getOrCreateDomain( 'jobs', create )\n         self.versions = self._getOrCreateDomain( 'versions', create )\n         self.files = self._getOrCreateBucket( 'files', create, versioning=True )\n-        self.stats = self._getOrCreateBucket( 'stats', create )\n+        self.stats = self._getOrCreateBucket( 'stats', create, versioning=True )\n+        self.bucketMap = {'files':self.files, 'stats':self.stats}","path":"src/jobTree/jobStores/awsJobStore.py","position":6,"original_position":6,"commit_id":"3d0885b2abd4c5897d3d97f272f336a3cd92e1be","original_commit_id":"f91155d81b49cf4141455ccd72cef18ac15bdf10","user":{"login":"hannes-ucsc","id":5143256,"avatar_url":"https://avatars.githubusercontent.com/u/5143256?v=3","gravatar_id":"","url":"https://api.github.com/users/hannes-ucsc","html_url":"https://github.com/hannes-ucsc","followers_url":"https://api.github.com/users/hannes-ucsc/followers","following_url":"https://api.github.com/users/hannes-ucsc/following{/other_user}","gists_url":"https://api.github.com/users/hannes-ucsc/gists{/gist_id}","starred_url":"https://api.github.com/users/hannes-ucsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hannes-ucsc/subscriptions","organizations_url":"https://api.github.com/users/hannes-ucsc/orgs","repos_url":"https://api.github.com/users/hannes-ucsc/repos","events_url":"https://api.github.com/users/hannes-ucsc/events{/privacy}","received_events_url":"https://api.github.com/users/hannes-ucsc/received_events","type":"User","site_admin":false},"body":"Having an additional dictionary is neither easy nor more flexible than using getattr. Please read this: https://docs.python.org/2/library/functions.html#getattr","created_at":"2015-06-30T06:38:37Z","updated_at":"2015-06-30T06:38:37Z","html_url":"https://github.com/BD2KGenomics/jobTree/pull/8#discussion_r33543962","pull_request_url":"https://api.github.com/repos/BD2KGenomics/jobTree/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/BD2KGenomics/jobTree/pulls/comments/33543962"},"html":{"href":"https://github.com/BD2KGenomics/jobTree/pull/8#discussion_r33543962"},"pull_request":{"href":"https://api.github.com/repos/BD2KGenomics/jobTree/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/BD2KGenomics/jobTree/pulls/8","id":38681862,"html_url":"https://github.com/BD2KGenomics/jobTree/pull/8","diff_url":"https://github.com/BD2KGenomics/jobTree/pull/8.diff","patch_url":"https://github.com/BD2KGenomics/jobTree/pull/8.patch","issue_url":"https://api.github.com/repos/BD2KGenomics/jobTree/issues/8","number":8,"state":"open","locked":false,"title":"Allow stats collection on AWS jobStore.","user":{"login":"cket","id":10136261,"avatar_url":"https://avatars.githubusercontent.com/u/10136261?v=3","gravatar_id":"","url":"https://api.github.com/users/cket","html_url":"https://github.com/cket","followers_url":"https://api.github.com/users/cket/followers","following_url":"https://api.github.com/users/cket/following{/other_user}","gists_url":"https://api.github.com/users/cket/gists{/gist_id}","starred_url":"https://api.github.com/users/cket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cket/subscriptions","organizations_url":"https://api.github.com/users/cket/orgs","repos_url":"https://api.github.com/users/cket/repos","events_url":"https://api.github.com/users/cket/events{/privacy}","received_events_url":"https://api.github.com/users/cket/received_events","type":"User","site_admin":false},"body":"Implements the writeStatsAndLogging and the readStatsAndLogging methods. Includes test in jobStoreTest. Issue #72","created_at":"2015-06-26T19:32:42Z","updated_at":"2015-06-30T06:38:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0e4277f4d2d65f8f5e937b3295f3a68f02679cd9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BD2KGenomics/jobTree/pulls/8/commits","review_comments_url":"https://api.github.com/repos/BD2KGenomics/jobTree/pulls/8/comments","review_comment_url":"https://api.github.com/repos/BD2KGenomics/jobTree/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BD2KGenomics/jobTree/issues/8/comments","statuses_url":"https://api.github.com/repos/BD2KGenomics/jobTree/statuses/3d0885b2abd4c5897d3d97f272f336a3cd92e1be","head":{"label":"BD2KGenomics:AWSJobStore-Stats","ref":"AWSJobStore-Stats","sha":"3d0885b2abd4c5897d3d97f272f336a3cd92e1be","user":{"login":"BD2KGenomics","id":8701293,"avatar_url":"https://avatars.githubusercontent.com/u/8701293?v=3","gravatar_id":"","url":"https://api.github.com/users/BD2KGenomics","html_url":"https://github.com/BD2KGenomics","followers_url":"https://api.github.com/users/BD2KGenomics/followers","following_url":"https://api.github.com/users/BD2KGenomics/following{/other_user}","gists_url":"https://api.github.com/users/BD2KGenomics/gists{/gist_id}","starred_url":"https://api.github.com/users/BD2KGenomics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BD2KGenomics/subscriptions","organizations_url":"https://api.github.com/users/BD2KGenomics/orgs","repos_url":"https://api.github.com/users/BD2KGenomics/repos","events_url":"https://api.github.com/users/BD2KGenomics/events{/privacy}","received_events_url":"https://api.github.com/users/BD2KGenomics/received_events","type":"Organization","site_admin":false},"repo":{"id":34143567,"name":"jobTree","full_name":"BD2KGenomics/jobTree","owner":{"login":"BD2KGenomics","id":8701293,"avatar_url":"https://avatars.githubusercontent.com/u/8701293?v=3","gravatar_id":"","url":"https://api.github.com/users/BD2KGenomics","html_url":"https://github.com/BD2KGenomics","followers_url":"https://api.github.com/users/BD2KGenomics/followers","following_url":"https://api.github.com/users/BD2KGenomics/following{/other_user}","gists_url":"https://api.github.com/users/BD2KGenomics/gists{/gist_id}","starred_url":"https://api.github.com/users/BD2KGenomics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BD2KGenomics/subscriptions","organizations_url":"https://api.github.com/users/BD2KGenomics/orgs","repos_url":"https://api.github.com/users/BD2KGenomics/repos","events_url":"https://api.github.com/users/BD2KGenomics/events{/privacy}","received_events_url":"https://api.github.com/users/BD2KGenomics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BD2KGenomics/jobTree","description":"Python based pipeline management software for clusters that makes running recursive and dynamically scheduled computations straightforward. So far works with gridEngine, lsf, parasol and on multi-core machines.","fork":true,"url":"https://api.github.com/repos/BD2KGenomics/jobTree","forks_url":"https://api.github.com/repos/BD2KGenomics/jobTree/forks","keys_url":"https://api.github.com/repos/BD2KGenomics/jobTree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BD2KGenomics/jobTree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BD2KGenomics/jobTree/teams","hooks_url":"https://api.github.com/repos/BD2KGenomics/jobTree/hooks","issue_events_url":"https://api.github.com/repos/BD2KGenomics/jobTree/issues/events{/number}","events_url":"https://api.github.com/repos/BD2KGenomics/jobTree/events","assignees_url":"https://api.github.com/repos/BD2KGenomics/jobTree/assignees{/user}","branches_url":"https://api.github.com/repos/BD2KGenomics/jobTree/branches{/branch}","tags_url":"https://api.github.com/repos/BD2KGenomics/jobTree/tags","blobs_url":"https://api.github.com/repos/BD2KGenomics/jobTree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BD2KGenomics/jobTree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BD2KGenomics/jobTree/git/refs{/sha}","trees_url":"https://api.github.com/repos/BD2KGenomics/jobTree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BD2KGenomics/jobTree/statuses/{sha}","languages_url":"https://api.github.com/repos/BD2KGenomics/jobTree/languages","stargazers_url":"https://api.github.com/repos/BD2KGenomics/jobTree/stargazers","contributors_url":"https://api.github.com/repos/BD2KGenomics/jobTree/contributors","subscribers_url":"https://api.github.com/repos/BD2KGenomics/jobTree/subscribers","subscription_url":"https://api.github.com/repos/BD2KGenomics/jobTree/subscription","commits_url":"https://api.github.com/repos/BD2KGenomics/jobTree/commits{/sha}","git_commits_url":"https://api.github.com/repos/BD2KGenomics/jobTree/git/commits{/sha}","comments_url":"https://api.github.com/repos/BD2KGenomics/jobTree/comments{/number}","issue_comment_url":"https://api.github.com/repos/BD2KGenomics/jobTree/issues/comments{/number}","contents_url":"https://api.github.com/repos/BD2KGenomics/jobTree/contents/{+path}","compare_url":"https://api.github.com/repos/BD2KGenomics/jobTree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BD2KGenomics/jobTree/merges","archive_url":"https://api.github.com/repos/BD2KGenomics/jobTree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BD2KGenomics/jobTree/downloads","issues_url":"https://api.github.com/repos/BD2KGenomics/jobTree/issues{/number}","pulls_url":"https://api.github.com/repos/BD2KGenomics/jobTree/pulls{/number}","milestones_url":"https://api.github.com/repos/BD2KGenomics/jobTree/milestones{/number}","notifications_url":"https://api.github.com/repos/BD2KGenomics/jobTree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BD2KGenomics/jobTree/labels{/name}","releases_url":"https://api.github.com/repos/BD2KGenomics/jobTree/releases{/id}","created_at":"2015-04-17T22:48:06Z","updated_at":"2015-06-18T00:34:38Z","pushed_at":"2015-06-30T03:58:35Z","git_url":"git://github.com/BD2KGenomics/jobTree.git","ssh_url":"git@github.com:BD2KGenomics/jobTree.git","clone_url":"https://github.com/BD2KGenomics/jobTree.git","svn_url":"https://github.com/BD2KGenomics/jobTree","homepage":"","size":4073,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"BD2KGenomics:master","ref":"master","sha":"9b1b6c00a05a3d6ab3b0ebd984dd3c7ff23cb97f","user":{"login":"BD2KGenomics","id":8701293,"avatar_url":"https://avatars.githubusercontent.com/u/8701293?v=3","gravatar_id":"","url":"https://api.github.com/users/BD2KGenomics","html_url":"https://github.com/BD2KGenomics","followers_url":"https://api.github.com/users/BD2KGenomics/followers","following_url":"https://api.github.com/users/BD2KGenomics/following{/other_user}","gists_url":"https://api.github.com/users/BD2KGenomics/gists{/gist_id}","starred_url":"https://api.github.com/users/BD2KGenomics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BD2KGenomics/subscriptions","organizations_url":"https://api.github.com/users/BD2KGenomics/orgs","repos_url":"https://api.github.com/users/BD2KGenomics/repos","events_url":"https://api.github.com/users/BD2KGenomics/events{/privacy}","received_events_url":"https://api.github.com/users/BD2KGenomics/received_events","type":"Organization","site_admin":false},"repo":{"id":34143567,"name":"jobTree","full_name":"BD2KGenomics/jobTree","owner":{"login":"BD2KGenomics","id":8701293,"avatar_url":"https://avatars.githubusercontent.com/u/8701293?v=3","gravatar_id":"","url":"https://api.github.com/users/BD2KGenomics","html_url":"https://github.com/BD2KGenomics","followers_url":"https://api.github.com/users/BD2KGenomics/followers","following_url":"https://api.github.com/users/BD2KGenomics/following{/other_user}","gists_url":"https://api.github.com/users/BD2KGenomics/gists{/gist_id}","starred_url":"https://api.github.com/users/BD2KGenomics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BD2KGenomics/subscriptions","organizations_url":"https://api.github.com/users/BD2KGenomics/orgs","repos_url":"https://api.github.com/users/BD2KGenomics/repos","events_url":"https://api.github.com/users/BD2KGenomics/events{/privacy}","received_events_url":"https://api.github.com/users/BD2KGenomics/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BD2KGenomics/jobTree","description":"Python based pipeline management software for clusters that makes running recursive and dynamically scheduled computations straightforward. So far works with gridEngine, lsf, parasol and on multi-core machines.","fork":true,"url":"https://api.github.com/repos/BD2KGenomics/jobTree","forks_url":"https://api.github.com/repos/BD2KGenomics/jobTree/forks","keys_url":"https://api.github.com/repos/BD2KGenomics/jobTree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BD2KGenomics/jobTree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BD2KGenomics/jobTree/teams","hooks_url":"https://api.github.com/repos/BD2KGenomics/jobTree/hooks","issue_events_url":"https://api.github.com/repos/BD2KGenomics/jobTree/issues/events{/number}","events_url":"https://api.github.com/repos/BD2KGenomics/jobTree/events","assignees_url":"https://api.github.com/repos/BD2KGenomics/jobTree/assignees{/user}","branches_url":"https://api.github.com/repos/BD2KGenomics/jobTree/branches{/branch}","tags_url":"https://api.github.com/repos/BD2KGenomics/jobTree/tags","blobs_url":"https://api.github.com/repos/BD2KGenomics/jobTree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BD2KGenomics/jobTree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BD2KGenomics/jobTree/git/refs{/sha}","trees_url":"https://api.github.com/repos/BD2KGenomics/jobTree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BD2KGenomics/jobTree/statuses/{sha}","languages_url":"https://api.github.com/repos/BD2KGenomics/jobTree/languages","stargazers_url":"https://api.github.com/repos/BD2KGenomics/jobTree/stargazers","contributors_url":"https://api.github.com/repos/BD2KGenomics/jobTree/contributors","subscribers_url":"https://api.github.com/repos/BD2KGenomics/jobTree/subscribers","subscription_url":"https://api.github.com/repos/BD2KGenomics/jobTree/subscription","commits_url":"https://api.github.com/repos/BD2KGenomics/jobTree/commits{/sha}","git_commits_url":"https://api.github.com/repos/BD2KGenomics/jobTree/git/commits{/sha}","comments_url":"https://api.github.com/repos/BD2KGenomics/jobTree/comments{/number}","issue_comment_url":"https://api.github.com/repos/BD2KGenomics/jobTree/issues/comments{/number}","contents_url":"https://api.github.com/repos/BD2KGenomics/jobTree/contents/{+path}","compare_url":"https://api.github.com/repos/BD2KGenomics/jobTree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BD2KGenomics/jobTree/merges","archive_url":"https://api.github.com/repos/BD2KGenomics/jobTree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BD2KGenomics/jobTree/downloads","issues_url":"https://api.github.com/repos/BD2KGenomics/jobTree/issues{/number}","pulls_url":"https://api.github.com/repos/BD2KGenomics/jobTree/pulls{/number}","milestones_url":"https://api.github.com/repos/BD2KGenomics/jobTree/milestones{/number}","notifications_url":"https://api.github.com/repos/BD2KGenomics/jobTree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BD2KGenomics/jobTree/labels{/name}","releases_url":"https://api.github.com/repos/BD2KGenomics/jobTree/releases{/id}","created_at":"2015-04-17T22:48:06Z","updated_at":"2015-06-18T00:34:38Z","pushed_at":"2015-06-30T03:58:35Z","git_url":"git://github.com/BD2KGenomics/jobTree.git","ssh_url":"git@github.com:BD2KGenomics/jobTree.git","clone_url":"https://github.com/BD2KGenomics/jobTree.git","svn_url":"https://github.com/BD2KGenomics/jobTree","homepage":"","size":4073,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BD2KGenomics/jobTree/pulls/8"},"html":{"href":"https://github.com/BD2KGenomics/jobTree/pull/8"},"issue":{"href":"https://api.github.com/repos/BD2KGenomics/jobTree/issues/8"},"comments":{"href":"https://api.github.com/repos/BD2KGenomics/jobTree/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/BD2KGenomics/jobTree/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/BD2KGenomics/jobTree/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BD2KGenomics/jobTree/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/BD2KGenomics/jobTree/statuses/3d0885b2abd4c5897d3d97f272f336a3cd92e1be"}}}}