{"action":"closed","number":9,"pull_request":{"url":"https://api.github.com/repos/lumoslabs/leanplum_api/pulls/9","id":66258015,"html_url":"https://github.com/lumoslabs/leanplum_api/pull/9","diff_url":"https://github.com/lumoslabs/leanplum_api/pull/9.diff","patch_url":"https://github.com/lumoslabs/leanplum_api/pull/9.patch","issue_url":"https://api.github.com/repos/lumoslabs/leanplum_api/issues/9","number":9,"state":"closed","locked":false,"title":"Add user_attributes and user_events methods","user":{"login":"apurvis","id":231694,"avatar_url":"https://avatars.githubusercontent.com/u/231694?v=3","gravatar_id":"","url":"https://api.github.com/users/apurvis","html_url":"https://github.com/apurvis","followers_url":"https://api.github.com/users/apurvis/followers","following_url":"https://api.github.com/users/apurvis/following{/other_user}","gists_url":"https://api.github.com/users/apurvis/gists{/gist_id}","starred_url":"https://api.github.com/users/apurvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apurvis/subscriptions","organizations_url":"https://api.github.com/users/apurvis/orgs","repos_url":"https://api.github.com/users/apurvis/repos","events_url":"https://api.github.com/users/apurvis/events{/privacy}","received_events_url":"https://api.github.com/users/apurvis/received_events","type":"User","site_admin":false},"body":"As per DE-10851 users were ending up with two events sometimes, especially for registration, because a) our `eut.create_date` is a date getting turned back into a time, so it never matches leanplum's registration time but more importantly b) even if it did match, we would go ahead and post it anyways and dupe the registration event that leanplum creates for users who register on the device.\r\n\r\nThis isn't that material to our use/analysis in leanplum, but it did confuse some end users.\r\n\r\nThis PR helps to remedy that by enabling the leanplum push jobs to see if a given event already exists for a given user, in which case they can skip pushing that event to leanplum.\r\n\r\n@rfroetscher @sgrgic ","created_at":"2016-04-13T02:40:14Z","updated_at":"2016-04-13T17:14:16Z","closed_at":"2016-04-13T17:14:16Z","merged_at":"2016-04-13T17:14:16Z","merge_commit_sha":"4127f0fe5e969e9a8b6779873c10c17058d1cd79","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lumoslabs/leanplum_api/pulls/9/commits","review_comments_url":"https://api.github.com/repos/lumoslabs/leanplum_api/pulls/9/comments","review_comment_url":"https://api.github.com/repos/lumoslabs/leanplum_api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lumoslabs/leanplum_api/issues/9/comments","statuses_url":"https://api.github.com/repos/lumoslabs/leanplum_api/statuses/00fffd9d6c4622e4a2e6a8ed61b7184a4b0f3e08","head":{"label":"lumoslabs:retrieve_user_events","ref":"retrieve_user_events","sha":"00fffd9d6c4622e4a2e6a8ed61b7184a4b0f3e08","user":{"login":"lumoslabs","id":723646,"avatar_url":"https://avatars.githubusercontent.com/u/723646?v=3","gravatar_id":"","url":"https://api.github.com/users/lumoslabs","html_url":"https://github.com/lumoslabs","followers_url":"https://api.github.com/users/lumoslabs/followers","following_url":"https://api.github.com/users/lumoslabs/following{/other_user}","gists_url":"https://api.github.com/users/lumoslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/lumoslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lumoslabs/subscriptions","organizations_url":"https://api.github.com/users/lumoslabs/orgs","repos_url":"https://api.github.com/users/lumoslabs/repos","events_url":"https://api.github.com/users/lumoslabs/events{/privacy}","received_events_url":"https://api.github.com/users/lumoslabs/received_events","type":"Organization","site_admin":false},"repo":{"id":45580154,"name":"leanplum_api","full_name":"lumoslabs/leanplum_api","owner":{"login":"lumoslabs","id":723646,"avatar_url":"https://avatars.githubusercontent.com/u/723646?v=3","gravatar_id":"","url":"https://api.github.com/users/lumoslabs","html_url":"https://github.com/lumoslabs","followers_url":"https://api.github.com/users/lumoslabs/followers","following_url":"https://api.github.com/users/lumoslabs/following{/other_user}","gists_url":"https://api.github.com/users/lumoslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/lumoslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lumoslabs/subscriptions","organizations_url":"https://api.github.com/users/lumoslabs/orgs","repos_url":"https://api.github.com/users/lumoslabs/repos","events_url":"https://api.github.com/users/lumoslabs/events{/privacy}","received_events_url":"https://api.github.com/users/lumoslabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lumoslabs/leanplum_api","description":"Faraday based Ruby wrapper for Leanplum API","fork":false,"url":"https://api.github.com/repos/lumoslabs/leanplum_api","forks_url":"https://api.github.com/repos/lumoslabs/leanplum_api/forks","keys_url":"https://api.github.com/repos/lumoslabs/leanplum_api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lumoslabs/leanplum_api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lumoslabs/leanplum_api/teams","hooks_url":"https://api.github.com/repos/lumoslabs/leanplum_api/hooks","issue_events_url":"https://api.github.com/repos/lumoslabs/leanplum_api/issues/events{/number}","events_url":"https://api.github.com/repos/lumoslabs/leanplum_api/events","assignees_url":"https://api.github.com/repos/lumoslabs/leanplum_api/assignees{/user}","branches_url":"https://api.github.com/repos/lumoslabs/leanplum_api/branches{/branch}","tags_url":"https://api.github.com/repos/lumoslabs/leanplum_api/tags","blobs_url":"https://api.github.com/repos/lumoslabs/leanplum_api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lumoslabs/leanplum_api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lumoslabs/leanplum_api/git/refs{/sha}","trees_url":"https://api.github.com/repos/lumoslabs/leanplum_api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lumoslabs/leanplum_api/statuses/{sha}","languages_url":"https://api.github.com/repos/lumoslabs/leanplum_api/languages","stargazers_url":"https://api.github.com/repos/lumoslabs/leanplum_api/stargazers","contributors_url":"https://api.github.com/repos/lumoslabs/leanplum_api/contributors","subscribers_url":"https://api.github.com/repos/lumoslabs/leanplum_api/subscribers","subscription_url":"https://api.github.com/repos/lumoslabs/leanplum_api/subscription","commits_url":"https://api.github.com/repos/lumoslabs/leanplum_api/commits{/sha}","git_commits_url":"https://api.github.com/repos/lumoslabs/leanplum_api/git/commits{/sha}","comments_url":"https://api.github.com/repos/lumoslabs/leanplum_api/comments{/number}","issue_comment_url":"https://api.github.com/repos/lumoslabs/leanplum_api/issues/comments{/number}","contents_url":"https://api.github.com/repos/lumoslabs/leanplum_api/contents/{+path}","compare_url":"https://api.github.com/repos/lumoslabs/leanplum_api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lumoslabs/leanplum_api/merges","archive_url":"https://api.github.com/repos/lumoslabs/leanplum_api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lumoslabs/leanplum_api/downloads","issues_url":"https://api.github.com/repos/lumoslabs/leanplum_api/issues{/number}","pulls_url":"https://api.github.com/repos/lumoslabs/leanplum_api/pulls{/number}","milestones_url":"https://api.github.com/repos/lumoslabs/leanplum_api/milestones{/number}","notifications_url":"https://api.github.com/repos/lumoslabs/leanplum_api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lumoslabs/leanplum_api/labels{/name}","releases_url":"https://api.github.com/repos/lumoslabs/leanplum_api/releases{/id}","deployments_url":"https://api.github.com/repos/lumoslabs/leanplum_api/deployments","created_at":"2015-11-05T01:53:20Z","updated_at":"2016-01-19T20:24:21Z","pushed_at":"2016-04-13T17:14:16Z","git_url":"git://github.com/lumoslabs/leanplum_api.git","ssh_url":"git@github.com:lumoslabs/leanplum_api.git","clone_url":"https://github.com/lumoslabs/leanplum_api.git","svn_url":"https://github.com/lumoslabs/leanplum_api","homepage":null,"size":67,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"lumoslabs:master","ref":"master","sha":"4569773f5139a729c24827fac4a13b6b47a98232","user":{"login":"lumoslabs","id":723646,"avatar_url":"https://avatars.githubusercontent.com/u/723646?v=3","gravatar_id":"","url":"https://api.github.com/users/lumoslabs","html_url":"https://github.com/lumoslabs","followers_url":"https://api.github.com/users/lumoslabs/followers","following_url":"https://api.github.com/users/lumoslabs/following{/other_user}","gists_url":"https://api.github.com/users/lumoslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/lumoslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lumoslabs/subscriptions","organizations_url":"https://api.github.com/users/lumoslabs/orgs","repos_url":"https://api.github.com/users/lumoslabs/repos","events_url":"https://api.github.com/users/lumoslabs/events{/privacy}","received_events_url":"https://api.github.com/users/lumoslabs/received_events","type":"Organization","site_admin":false},"repo":{"id":45580154,"name":"leanplum_api","full_name":"lumoslabs/leanplum_api","owner":{"login":"lumoslabs","id":723646,"avatar_url":"https://avatars.githubusercontent.com/u/723646?v=3","gravatar_id":"","url":"https://api.github.com/users/lumoslabs","html_url":"https://github.com/lumoslabs","followers_url":"https://api.github.com/users/lumoslabs/followers","following_url":"https://api.github.com/users/lumoslabs/following{/other_user}","gists_url":"https://api.github.com/users/lumoslabs/gists{/gist_id}","starred_url":"https://api.github.com/users/lumoslabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lumoslabs/subscriptions","organizations_url":"https://api.github.com/users/lumoslabs/orgs","repos_url":"https://api.github.com/users/lumoslabs/repos","events_url":"https://api.github.com/users/lumoslabs/events{/privacy}","received_events_url":"https://api.github.com/users/lumoslabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lumoslabs/leanplum_api","description":"Faraday based Ruby wrapper for Leanplum API","fork":false,"url":"https://api.github.com/repos/lumoslabs/leanplum_api","forks_url":"https://api.github.com/repos/lumoslabs/leanplum_api/forks","keys_url":"https://api.github.com/repos/lumoslabs/leanplum_api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lumoslabs/leanplum_api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lumoslabs/leanplum_api/teams","hooks_url":"https://api.github.com/repos/lumoslabs/leanplum_api/hooks","issue_events_url":"https://api.github.com/repos/lumoslabs/leanplum_api/issues/events{/number}","events_url":"https://api.github.com/repos/lumoslabs/leanplum_api/events","assignees_url":"https://api.github.com/repos/lumoslabs/leanplum_api/assignees{/user}","branches_url":"https://api.github.com/repos/lumoslabs/leanplum_api/branches{/branch}","tags_url":"https://api.github.com/repos/lumoslabs/leanplum_api/tags","blobs_url":"https://api.github.com/repos/lumoslabs/leanplum_api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lumoslabs/leanplum_api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lumoslabs/leanplum_api/git/refs{/sha}","trees_url":"https://api.github.com/repos/lumoslabs/leanplum_api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lumoslabs/leanplum_api/statuses/{sha}","languages_url":"https://api.github.com/repos/lumoslabs/leanplum_api/languages","stargazers_url":"https://api.github.com/repos/lumoslabs/leanplum_api/stargazers","contributors_url":"https://api.github.com/repos/lumoslabs/leanplum_api/contributors","subscribers_url":"https://api.github.com/repos/lumoslabs/leanplum_api/subscribers","subscription_url":"https://api.github.com/repos/lumoslabs/leanplum_api/subscription","commits_url":"https://api.github.com/repos/lumoslabs/leanplum_api/commits{/sha}","git_commits_url":"https://api.github.com/repos/lumoslabs/leanplum_api/git/commits{/sha}","comments_url":"https://api.github.com/repos/lumoslabs/leanplum_api/comments{/number}","issue_comment_url":"https://api.github.com/repos/lumoslabs/leanplum_api/issues/comments{/number}","contents_url":"https://api.github.com/repos/lumoslabs/leanplum_api/contents/{+path}","compare_url":"https://api.github.com/repos/lumoslabs/leanplum_api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lumoslabs/leanplum_api/merges","archive_url":"https://api.github.com/repos/lumoslabs/leanplum_api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lumoslabs/leanplum_api/downloads","issues_url":"https://api.github.com/repos/lumoslabs/leanplum_api/issues{/number}","pulls_url":"https://api.github.com/repos/lumoslabs/leanplum_api/pulls{/number}","milestones_url":"https://api.github.com/repos/lumoslabs/leanplum_api/milestones{/number}","notifications_url":"https://api.github.com/repos/lumoslabs/leanplum_api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lumoslabs/leanplum_api/labels{/name}","releases_url":"https://api.github.com/repos/lumoslabs/leanplum_api/releases{/id}","deployments_url":"https://api.github.com/repos/lumoslabs/leanplum_api/deployments","created_at":"2015-11-05T01:53:20Z","updated_at":"2016-01-19T20:24:21Z","pushed_at":"2016-04-13T17:14:16Z","git_url":"git://github.com/lumoslabs/leanplum_api.git","ssh_url":"git@github.com:lumoslabs/leanplum_api.git","clone_url":"https://github.com/lumoslabs/leanplum_api.git","svn_url":"https://github.com/lumoslabs/leanplum_api","homepage":null,"size":67,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lumoslabs/leanplum_api/pulls/9"},"html":{"href":"https://github.com/lumoslabs/leanplum_api/pull/9"},"issue":{"href":"https://api.github.com/repos/lumoslabs/leanplum_api/issues/9"},"comments":{"href":"https://api.github.com/repos/lumoslabs/leanplum_api/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/lumoslabs/leanplum_api/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/lumoslabs/leanplum_api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lumoslabs/leanplum_api/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/lumoslabs/leanplum_api/statuses/00fffd9d6c4622e4a2e6a8ed61b7184a4b0f3e08"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"apurvis","id":231694,"avatar_url":"https://avatars.githubusercontent.com/u/231694?v=3","gravatar_id":"","url":"https://api.github.com/users/apurvis","html_url":"https://github.com/apurvis","followers_url":"https://api.github.com/users/apurvis/followers","following_url":"https://api.github.com/users/apurvis/following{/other_user}","gists_url":"https://api.github.com/users/apurvis/gists{/gist_id}","starred_url":"https://api.github.com/users/apurvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apurvis/subscriptions","organizations_url":"https://api.github.com/users/apurvis/orgs","repos_url":"https://api.github.com/users/apurvis/repos","events_url":"https://api.github.com/users/apurvis/events{/privacy}","received_events_url":"https://api.github.com/users/apurvis/received_events","type":"User","site_admin":false},"comments":1,"review_comments":1,"commits":1,"additions":63,"deletions":48,"changed_files":9}}