{"action":"opened","number":73,"pull_request":{"url":"https://api.github.com/repos/tractdb/tummy-trials/pulls/73","id":68781121,"html_url":"https://github.com/tractdb/tummy-trials/pull/73","diff_url":"https://github.com/tractdb/tummy-trials/pull/73.diff","patch_url":"https://github.com/tractdb/tummy-trials/pull/73.patch","issue_url":"https://api.github.com/repos/tractdb/tummy-trials/issues/73","number":73,"state":"open","locked":false,"title":"Move logging to separate document in DB.","user":{"login":"jeffsco","id":4043178,"avatar_url":"https://avatars.githubusercontent.com/u/4043178?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffsco","html_url":"https://github.com/jeffsco","followers_url":"https://api.github.com/users/jeffsco/followers","following_url":"https://api.github.com/users/jeffsco/following{/other_user}","gists_url":"https://api.github.com/users/jeffsco/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffsco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffsco/subscriptions","organizations_url":"https://api.github.com/users/jeffsco/orgs","repos_url":"https://api.github.com/users/jeffsco/repos","events_url":"https://api.github.com/users/jeffsco/events{/privacy}","received_events_url":"https://api.github.com/users/jeffsco/received_events","type":"User","site_admin":false},"body":"Log messages now go to a special object in the user's DB. It doesn't depend on the existence of an ongoing study. A logging object for TummyTrials has doctype 'log' and datatype 'tummytrials_log'. One gets created the first time a log message is written.\r\n\r\nThe activity logging code now adds the id of the current study (if any) to every log message, for context. This is in addition to the current time and the currently active page of the app.\r\n","created_at":"2016-05-03T21:49:41Z","updated_at":"2016-05-03T21:49:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tractdb/tummy-trials/pulls/73/commits","review_comments_url":"https://api.github.com/repos/tractdb/tummy-trials/pulls/73/comments","review_comment_url":"https://api.github.com/repos/tractdb/tummy-trials/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tractdb/tummy-trials/issues/73/comments","statuses_url":"https://api.github.com/repos/tractdb/tummy-trials/statuses/7fe0b287afc6a60c7d869caf1392ed74a104627c","head":{"label":"jeffsco:logging-2","ref":"logging-2","sha":"7fe0b287afc6a60c7d869caf1392ed74a104627c","user":{"login":"jeffsco","id":4043178,"avatar_url":"https://avatars.githubusercontent.com/u/4043178?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffsco","html_url":"https://github.com/jeffsco","followers_url":"https://api.github.com/users/jeffsco/followers","following_url":"https://api.github.com/users/jeffsco/following{/other_user}","gists_url":"https://api.github.com/users/jeffsco/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffsco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffsco/subscriptions","organizations_url":"https://api.github.com/users/jeffsco/orgs","repos_url":"https://api.github.com/users/jeffsco/repos","events_url":"https://api.github.com/users/jeffsco/events{/privacy}","received_events_url":"https://api.github.com/users/jeffsco/received_events","type":"User","site_admin":false},"repo":{"id":39213632,"name":"tummy-trials","full_name":"jeffsco/tummy-trials","owner":{"login":"jeffsco","id":4043178,"avatar_url":"https://avatars.githubusercontent.com/u/4043178?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffsco","html_url":"https://github.com/jeffsco","followers_url":"https://api.github.com/users/jeffsco/followers","following_url":"https://api.github.com/users/jeffsco/following{/other_user}","gists_url":"https://api.github.com/users/jeffsco/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffsco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffsco/subscriptions","organizations_url":"https://api.github.com/users/jeffsco/orgs","repos_url":"https://api.github.com/users/jeffsco/repos","events_url":"https://api.github.com/users/jeffsco/events{/privacy}","received_events_url":"https://api.github.com/users/jeffsco/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeffsco/tummy-trials","description":"","fork":true,"url":"https://api.github.com/repos/jeffsco/tummy-trials","forks_url":"https://api.github.com/repos/jeffsco/tummy-trials/forks","keys_url":"https://api.github.com/repos/jeffsco/tummy-trials/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeffsco/tummy-trials/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeffsco/tummy-trials/teams","hooks_url":"https://api.github.com/repos/jeffsco/tummy-trials/hooks","issue_events_url":"https://api.github.com/repos/jeffsco/tummy-trials/issues/events{/number}","events_url":"https://api.github.com/repos/jeffsco/tummy-trials/events","assignees_url":"https://api.github.com/repos/jeffsco/tummy-trials/assignees{/user}","branches_url":"https://api.github.com/repos/jeffsco/tummy-trials/branches{/branch}","tags_url":"https://api.github.com/repos/jeffsco/tummy-trials/tags","blobs_url":"https://api.github.com/repos/jeffsco/tummy-trials/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeffsco/tummy-trials/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeffsco/tummy-trials/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeffsco/tummy-trials/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeffsco/tummy-trials/statuses/{sha}","languages_url":"https://api.github.com/repos/jeffsco/tummy-trials/languages","stargazers_url":"https://api.github.com/repos/jeffsco/tummy-trials/stargazers","contributors_url":"https://api.github.com/repos/jeffsco/tummy-trials/contributors","subscribers_url":"https://api.github.com/repos/jeffsco/tummy-trials/subscribers","subscription_url":"https://api.github.com/repos/jeffsco/tummy-trials/subscription","commits_url":"https://api.github.com/repos/jeffsco/tummy-trials/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeffsco/tummy-trials/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeffsco/tummy-trials/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeffsco/tummy-trials/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeffsco/tummy-trials/contents/{+path}","compare_url":"https://api.github.com/repos/jeffsco/tummy-trials/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeffsco/tummy-trials/merges","archive_url":"https://api.github.com/repos/jeffsco/tummy-trials/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeffsco/tummy-trials/downloads","issues_url":"https://api.github.com/repos/jeffsco/tummy-trials/issues{/number}","pulls_url":"https://api.github.com/repos/jeffsco/tummy-trials/pulls{/number}","milestones_url":"https://api.github.com/repos/jeffsco/tummy-trials/milestones{/number}","notifications_url":"https://api.github.com/repos/jeffsco/tummy-trials/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeffsco/tummy-trials/labels{/name}","releases_url":"https://api.github.com/repos/jeffsco/tummy-trials/releases{/id}","deployments_url":"https://api.github.com/repos/jeffsco/tummy-trials/deployments","created_at":"2015-07-16T18:31:18Z","updated_at":"2016-02-03T19:40:03Z","pushed_at":"2016-05-03T21:38:57Z","git_url":"git://github.com/jeffsco/tummy-trials.git","ssh_url":"git@github.com:jeffsco/tummy-trials.git","clone_url":"https://github.com/jeffsco/tummy-trials.git","svn_url":"https://github.com/jeffsco/tummy-trials","homepage":null,"size":21942,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":"tractdb:master","ref":"master","sha":"7f10e09b24fccfb2ebd0670d2e11c3bb2085c6da","user":{"login":"tractdb","id":7738911,"avatar_url":"https://avatars.githubusercontent.com/u/7738911?v=3","gravatar_id":"","url":"https://api.github.com/users/tractdb","html_url":"https://github.com/tractdb","followers_url":"https://api.github.com/users/tractdb/followers","following_url":"https://api.github.com/users/tractdb/following{/other_user}","gists_url":"https://api.github.com/users/tractdb/gists{/gist_id}","starred_url":"https://api.github.com/users/tractdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tractdb/subscriptions","organizations_url":"https://api.github.com/users/tractdb/orgs","repos_url":"https://api.github.com/users/tractdb/repos","events_url":"https://api.github.com/users/tractdb/events{/privacy}","received_events_url":"https://api.github.com/users/tractdb/received_events","type":"Organization","site_admin":false},"repo":{"id":39165222,"name":"tummy-trials","full_name":"tractdb/tummy-trials","owner":{"login":"tractdb","id":7738911,"avatar_url":"https://avatars.githubusercontent.com/u/7738911?v=3","gravatar_id":"","url":"https://api.github.com/users/tractdb","html_url":"https://github.com/tractdb","followers_url":"https://api.github.com/users/tractdb/followers","following_url":"https://api.github.com/users/tractdb/following{/other_user}","gists_url":"https://api.github.com/users/tractdb/gists{/gist_id}","starred_url":"https://api.github.com/users/tractdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tractdb/subscriptions","organizations_url":"https://api.github.com/users/tractdb/orgs","repos_url":"https://api.github.com/users/tractdb/repos","events_url":"https://api.github.com/users/tractdb/events{/privacy}","received_events_url":"https://api.github.com/users/tractdb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tractdb/tummy-trials","description":"","fork":false,"url":"https://api.github.com/repos/tractdb/tummy-trials","forks_url":"https://api.github.com/repos/tractdb/tummy-trials/forks","keys_url":"https://api.github.com/repos/tractdb/tummy-trials/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tractdb/tummy-trials/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tractdb/tummy-trials/teams","hooks_url":"https://api.github.com/repos/tractdb/tummy-trials/hooks","issue_events_url":"https://api.github.com/repos/tractdb/tummy-trials/issues/events{/number}","events_url":"https://api.github.com/repos/tractdb/tummy-trials/events","assignees_url":"https://api.github.com/repos/tractdb/tummy-trials/assignees{/user}","branches_url":"https://api.github.com/repos/tractdb/tummy-trials/branches{/branch}","tags_url":"https://api.github.com/repos/tractdb/tummy-trials/tags","blobs_url":"https://api.github.com/repos/tractdb/tummy-trials/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tractdb/tummy-trials/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tractdb/tummy-trials/git/refs{/sha}","trees_url":"https://api.github.com/repos/tractdb/tummy-trials/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tractdb/tummy-trials/statuses/{sha}","languages_url":"https://api.github.com/repos/tractdb/tummy-trials/languages","stargazers_url":"https://api.github.com/repos/tractdb/tummy-trials/stargazers","contributors_url":"https://api.github.com/repos/tractdb/tummy-trials/contributors","subscribers_url":"https://api.github.com/repos/tractdb/tummy-trials/subscribers","subscription_url":"https://api.github.com/repos/tractdb/tummy-trials/subscription","commits_url":"https://api.github.com/repos/tractdb/tummy-trials/commits{/sha}","git_commits_url":"https://api.github.com/repos/tractdb/tummy-trials/git/commits{/sha}","comments_url":"https://api.github.com/repos/tractdb/tummy-trials/comments{/number}","issue_comment_url":"https://api.github.com/repos/tractdb/tummy-trials/issues/comments{/number}","contents_url":"https://api.github.com/repos/tractdb/tummy-trials/contents/{+path}","compare_url":"https://api.github.com/repos/tractdb/tummy-trials/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tractdb/tummy-trials/merges","archive_url":"https://api.github.com/repos/tractdb/tummy-trials/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tractdb/tummy-trials/downloads","issues_url":"https://api.github.com/repos/tractdb/tummy-trials/issues{/number}","pulls_url":"https://api.github.com/repos/tractdb/tummy-trials/pulls{/number}","milestones_url":"https://api.github.com/repos/tractdb/tummy-trials/milestones{/number}","notifications_url":"https://api.github.com/repos/tractdb/tummy-trials/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tractdb/tummy-trials/labels{/name}","releases_url":"https://api.github.com/repos/tractdb/tummy-trials/releases{/id}","deployments_url":"https://api.github.com/repos/tractdb/tummy-trials/deployments","created_at":"2015-07-15T22:59:55Z","updated_at":"2016-04-29T04:25:19Z","pushed_at":"2016-05-03T04:54:23Z","git_url":"git://github.com/tractdb/tummy-trials.git","ssh_url":"git@github.com:tractdb/tummy-trials.git","clone_url":"https://github.com/tractdb/tummy-trials.git","svn_url":"https://github.com/tractdb/tummy-trials","homepage":null,"size":21940,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tractdb/tummy-trials/pulls/73"},"html":{"href":"https://github.com/tractdb/tummy-trials/pull/73"},"issue":{"href":"https://api.github.com/repos/tractdb/tummy-trials/issues/73"},"comments":{"href":"https://api.github.com/repos/tractdb/tummy-trials/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/tractdb/tummy-trials/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/tractdb/tummy-trials/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tractdb/tummy-trials/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/tractdb/tummy-trials/statuses/7fe0b287afc6a60c7d869caf1392ed74a104627c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":137,"deletions":42,"changed_files":3}}