{"action":"created","issue":{"url":"https://api.github.com/repos/reactioncommerce/reaction-analytics/issues/2","labels_url":"https://api.github.com/repos/reactioncommerce/reaction-analytics/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/reactioncommerce/reaction-analytics/issues/2/comments","events_url":"https://api.github.com/repos/reactioncommerce/reaction-analytics/issues/2/events","html_url":"https://github.com/reactioncommerce/reaction-analytics/pull/2","id":107864126,"number":2,"title":"Added Schema for AnalyticsEvents","user":{"login":"Gouthamve","id":7354143,"avatar_url":"https://avatars.githubusercontent.com/u/7354143?v=3","gravatar_id":"","url":"https://api.github.com/users/Gouthamve","html_url":"https://github.com/Gouthamve","followers_url":"https://api.github.com/users/Gouthamve/followers","following_url":"https://api.github.com/users/Gouthamve/following{/other_user}","gists_url":"https://api.github.com/users/Gouthamve/gists{/gist_id}","starred_url":"https://api.github.com/users/Gouthamve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gouthamve/subscriptions","organizations_url":"https://api.github.com/users/Gouthamve/orgs","repos_url":"https://api.github.com/users/Gouthamve/repos","events_url":"https://api.github.com/users/Gouthamve/events{/privacy}","received_events_url":"https://api.github.com/users/Gouthamve/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-23T07:19:31Z","updated_at":"2015-09-23T09:55:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/reactioncommerce/reaction-analytics/pulls/2","html_url":"https://github.com/reactioncommerce/reaction-analytics/pull/2","diff_url":"https://github.com/reactioncommerce/reaction-analytics/pull/2.diff","patch_url":"https://github.com/reactioncommerce/reaction-analytics/pull/2.patch"},"body":"Added schema based on existing events.\r\nAdded user now that we are giving even guests Ids\r\nModified Allow rule to check for valid insert.\r\n\r\nRequest for Review: @aaronjudd @spencern"},"comment":{"url":"https://api.github.com/repos/reactioncommerce/reaction-analytics/issues/comments/142549581","html_url":"https://github.com/reactioncommerce/reaction-analytics/pull/2#issuecomment-142549581","issue_url":"https://api.github.com/repos/reactioncommerce/reaction-analytics/issues/2","id":142549581,"user":{"login":"Gouthamve","id":7354143,"avatar_url":"https://avatars.githubusercontent.com/u/7354143?v=3","gravatar_id":"","url":"https://api.github.com/users/Gouthamve","html_url":"https://github.com/Gouthamve","followers_url":"https://api.github.com/users/Gouthamve/followers","following_url":"https://api.github.com/users/Gouthamve/following{/other_user}","gists_url":"https://api.github.com/users/Gouthamve/gists{/gist_id}","starred_url":"https://api.github.com/users/Gouthamve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gouthamve/subscriptions","organizations_url":"https://api.github.com/users/Gouthamve/orgs","repos_url":"https://api.github.com/users/Gouthamve/repos","events_url":"https://api.github.com/users/Gouthamve/events{/privacy}","received_events_url":"https://api.github.com/users/Gouthamve/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T09:55:07Z","updated_at":"2015-09-23T09:55:07Z","body":"Now as I am trying to add userId to events recorded, I realised that Roles is an array and is given based on each shop.\r\n\r\nI was thinking, because we have shopId and userId in the data, user.role is redundant."}}