{"action":"closed","number":36,"pull_request":{"url":"https://api.github.com/repos/rapidpro/data_api/pulls/36","id":203555277,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAzNTU1Mjc3","html_url":"https://github.com/rapidpro/data_api/pull/36","diff_url":"https://github.com/rapidpro/data_api/pull/36.diff","patch_url":"https://github.com/rapidpro/data_api/pull/36.patch","issue_url":"https://api.github.com/repos/rapidpro/data_api/issues/36","number":36,"state":"closed","locked":false,"title":"support for ingesting messages using the archive api","user":{"login":"czue","id":66555,"node_id":"MDQ6VXNlcjY2NTU1","avatar_url":"https://avatars3.githubusercontent.com/u/66555?v=4","gravatar_id":"","url":"https://api.github.com/users/czue","html_url":"https://github.com/czue","followers_url":"https://api.github.com/users/czue/followers","following_url":"https://api.github.com/users/czue/following{/other_user}","gists_url":"https://api.github.com/users/czue/gists{/gist_id}","starred_url":"https://api.github.com/users/czue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czue/subscriptions","organizations_url":"https://api.github.com/users/czue/orgs","repos_url":"https://api.github.com/users/czue/repos","events_url":"https://api.github.com/users/czue/events{/privacy}","received_events_url":"https://api.github.com/users/czue/received_events","type":"User","site_admin":false},"body":"probably easiest reviewed by commit, everything but the last commit is prework to actually make the change.\r\n\r\n@nicpottier I noticed that I'm getting different results when importing messages from archives versus directly using the message API. Do you have any immediate reaction to why that would be? It's a bit hard to stitch together the exact behavior but two observations:\r\n\r\n1. The archives seem to import more unique messages that aren't imported in any of the folders I'm currently checking ('inbox', 'flows', 'archived', 'outbox', 'incoming', 'sent') in the regular API\r\n2. Sometimes, the non-archives seem to import multiple copies of the same message - whereas the archives don't.","created_at":"2018-07-24T14:52:54Z","updated_at":"2018-07-25T09:57:01Z","closed_at":"2018-07-25T09:57:01Z","merged_at":"2018-07-25T09:57:01Z","merge_commit_sha":"5641d87c03a5fe06fe44ae27c093e7307b8e2763","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rapidpro/data_api/pulls/36/commits","review_comments_url":"https://api.github.com/repos/rapidpro/data_api/pulls/36/comments","review_comment_url":"https://api.github.com/repos/rapidpro/data_api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rapidpro/data_api/issues/36/comments","statuses_url":"https://api.github.com/repos/rapidpro/data_api/statuses/c943c0868ce5d3ad78eee0b254f90d6b1b55a1bf","head":{"label":"rapidpro:archive-api","ref":"archive-api","sha":"c943c0868ce5d3ad78eee0b254f90d6b1b55a1bf","user":{"login":"rapidpro","id":7733752,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3MzM3NTI=","avatar_url":"https://avatars2.githubusercontent.com/u/7733752?v=4","gravatar_id":"","url":"https://api.github.com/users/rapidpro","html_url":"https://github.com/rapidpro","followers_url":"https://api.github.com/users/rapidpro/followers","following_url":"https://api.github.com/users/rapidpro/following{/other_user}","gists_url":"https://api.github.com/users/rapidpro/gists{/gist_id}","starred_url":"https://api.github.com/users/rapidpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapidpro/subscriptions","organizations_url":"https://api.github.com/users/rapidpro/orgs","repos_url":"https://api.github.com/users/rapidpro/repos","events_url":"https://api.github.com/users/rapidpro/events{/privacy}","received_events_url":"https://api.github.com/users/rapidpro/received_events","type":"Organization","site_admin":false},"repo":{"id":59268657,"node_id":"MDEwOlJlcG9zaXRvcnk1OTI2ODY1Nw==","name":"data_api","full_name":"rapidpro/data_api","owner":{"login":"rapidpro","id":7733752,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3MzM3NTI=","avatar_url":"https://avatars2.githubusercontent.com/u/7733752?v=4","gravatar_id":"","url":"https://api.github.com/users/rapidpro","html_url":"https://github.com/rapidpro","followers_url":"https://api.github.com/users/rapidpro/followers","following_url":"https://api.github.com/users/rapidpro/following{/other_user}","gists_url":"https://api.github.com/users/rapidpro/gists{/gist_id}","starred_url":"https://api.github.com/users/rapidpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapidpro/subscriptions","organizations_url":"https://api.github.com/users/rapidpro/orgs","repos_url":"https://api.github.com/users/rapidpro/repos","events_url":"https://api.github.com/users/rapidpro/events{/privacy}","received_events_url":"https://api.github.com/users/rapidpro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapidpro/data_api","description":null,"fork":true,"url":"https://api.github.com/repos/rapidpro/data_api","forks_url":"https://api.github.com/repos/rapidpro/data_api/forks","keys_url":"https://api.github.com/repos/rapidpro/data_api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapidpro/data_api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapidpro/data_api/teams","hooks_url":"https://api.github.com/repos/rapidpro/data_api/hooks","issue_events_url":"https://api.github.com/repos/rapidpro/data_api/issues/events{/number}","events_url":"https://api.github.com/repos/rapidpro/data_api/events","assignees_url":"https://api.github.com/repos/rapidpro/data_api/assignees{/user}","branches_url":"https://api.github.com/repos/rapidpro/data_api/branches{/branch}","tags_url":"https://api.github.com/repos/rapidpro/data_api/tags","blobs_url":"https://api.github.com/repos/rapidpro/data_api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapidpro/data_api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapidpro/data_api/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapidpro/data_api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapidpro/data_api/statuses/{sha}","languages_url":"https://api.github.com/repos/rapidpro/data_api/languages","stargazers_url":"https://api.github.com/repos/rapidpro/data_api/stargazers","contributors_url":"https://api.github.com/repos/rapidpro/data_api/contributors","subscribers_url":"https://api.github.com/repos/rapidpro/data_api/subscribers","subscription_url":"https://api.github.com/repos/rapidpro/data_api/subscription","commits_url":"https://api.github.com/repos/rapidpro/data_api/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapidpro/data_api/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapidpro/data_api/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapidpro/data_api/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapidpro/data_api/contents/{+path}","compare_url":"https://api.github.com/repos/rapidpro/data_api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapidpro/data_api/merges","archive_url":"https://api.github.com/repos/rapidpro/data_api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapidpro/data_api/downloads","issues_url":"https://api.github.com/repos/rapidpro/data_api/issues{/number}","pulls_url":"https://api.github.com/repos/rapidpro/data_api/pulls{/number}","milestones_url":"https://api.github.com/repos/rapidpro/data_api/milestones{/number}","notifications_url":"https://api.github.com/repos/rapidpro/data_api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapidpro/data_api/labels{/name}","releases_url":"https://api.github.com/repos/rapidpro/data_api/releases{/id}","deployments_url":"https://api.github.com/repos/rapidpro/data_api/deployments","created_at":"2016-05-20T05:54:42Z","updated_at":"2018-07-03T14:50:44Z","pushed_at":"2018-07-25T09:57:01Z","git_url":"git://github.com/rapidpro/data_api.git","ssh_url":"git@github.com:rapidpro/data_api.git","clone_url":"https://github.com/rapidpro/data_api.git","svn_url":"https://github.com/rapidpro/data_api","homepage":"https://data.uniceflabs.org","size":374,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rapidpro:master","ref":"master","sha":"60bdbbf39e4e0f2c39807fc7f03cd329b8bc19ec","user":{"login":"rapidpro","id":7733752,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3MzM3NTI=","avatar_url":"https://avatars2.githubusercontent.com/u/7733752?v=4","gravatar_id":"","url":"https://api.github.com/users/rapidpro","html_url":"https://github.com/rapidpro","followers_url":"https://api.github.com/users/rapidpro/followers","following_url":"https://api.github.com/users/rapidpro/following{/other_user}","gists_url":"https://api.github.com/users/rapidpro/gists{/gist_id}","starred_url":"https://api.github.com/users/rapidpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapidpro/subscriptions","organizations_url":"https://api.github.com/users/rapidpro/orgs","repos_url":"https://api.github.com/users/rapidpro/repos","events_url":"https://api.github.com/users/rapidpro/events{/privacy}","received_events_url":"https://api.github.com/users/rapidpro/received_events","type":"Organization","site_admin":false},"repo":{"id":59268657,"node_id":"MDEwOlJlcG9zaXRvcnk1OTI2ODY1Nw==","name":"data_api","full_name":"rapidpro/data_api","owner":{"login":"rapidpro","id":7733752,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc3MzM3NTI=","avatar_url":"https://avatars2.githubusercontent.com/u/7733752?v=4","gravatar_id":"","url":"https://api.github.com/users/rapidpro","html_url":"https://github.com/rapidpro","followers_url":"https://api.github.com/users/rapidpro/followers","following_url":"https://api.github.com/users/rapidpro/following{/other_user}","gists_url":"https://api.github.com/users/rapidpro/gists{/gist_id}","starred_url":"https://api.github.com/users/rapidpro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rapidpro/subscriptions","organizations_url":"https://api.github.com/users/rapidpro/orgs","repos_url":"https://api.github.com/users/rapidpro/repos","events_url":"https://api.github.com/users/rapidpro/events{/privacy}","received_events_url":"https://api.github.com/users/rapidpro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rapidpro/data_api","description":null,"fork":true,"url":"https://api.github.com/repos/rapidpro/data_api","forks_url":"https://api.github.com/repos/rapidpro/data_api/forks","keys_url":"https://api.github.com/repos/rapidpro/data_api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rapidpro/data_api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rapidpro/data_api/teams","hooks_url":"https://api.github.com/repos/rapidpro/data_api/hooks","issue_events_url":"https://api.github.com/repos/rapidpro/data_api/issues/events{/number}","events_url":"https://api.github.com/repos/rapidpro/data_api/events","assignees_url":"https://api.github.com/repos/rapidpro/data_api/assignees{/user}","branches_url":"https://api.github.com/repos/rapidpro/data_api/branches{/branch}","tags_url":"https://api.github.com/repos/rapidpro/data_api/tags","blobs_url":"https://api.github.com/repos/rapidpro/data_api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rapidpro/data_api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rapidpro/data_api/git/refs{/sha}","trees_url":"https://api.github.com/repos/rapidpro/data_api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rapidpro/data_api/statuses/{sha}","languages_url":"https://api.github.com/repos/rapidpro/data_api/languages","stargazers_url":"https://api.github.com/repos/rapidpro/data_api/stargazers","contributors_url":"https://api.github.com/repos/rapidpro/data_api/contributors","subscribers_url":"https://api.github.com/repos/rapidpro/data_api/subscribers","subscription_url":"https://api.github.com/repos/rapidpro/data_api/subscription","commits_url":"https://api.github.com/repos/rapidpro/data_api/commits{/sha}","git_commits_url":"https://api.github.com/repos/rapidpro/data_api/git/commits{/sha}","comments_url":"https://api.github.com/repos/rapidpro/data_api/comments{/number}","issue_comment_url":"https://api.github.com/repos/rapidpro/data_api/issues/comments{/number}","contents_url":"https://api.github.com/repos/rapidpro/data_api/contents/{+path}","compare_url":"https://api.github.com/repos/rapidpro/data_api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rapidpro/data_api/merges","archive_url":"https://api.github.com/repos/rapidpro/data_api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rapidpro/data_api/downloads","issues_url":"https://api.github.com/repos/rapidpro/data_api/issues{/number}","pulls_url":"https://api.github.com/repos/rapidpro/data_api/pulls{/number}","milestones_url":"https://api.github.com/repos/rapidpro/data_api/milestones{/number}","notifications_url":"https://api.github.com/repos/rapidpro/data_api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rapidpro/data_api/labels{/name}","releases_url":"https://api.github.com/repos/rapidpro/data_api/releases{/id}","deployments_url":"https://api.github.com/repos/rapidpro/data_api/deployments","created_at":"2016-05-20T05:54:42Z","updated_at":"2018-07-03T14:50:44Z","pushed_at":"2018-07-25T09:57:01Z","git_url":"git://github.com/rapidpro/data_api.git","ssh_url":"git@github.com:rapidpro/data_api.git","clone_url":"https://github.com/rapidpro/data_api.git","svn_url":"https://github.com/rapidpro/data_api","homepage":"https://data.uniceflabs.org","size":374,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rapidpro/data_api/pulls/36"},"html":{"href":"https://github.com/rapidpro/data_api/pull/36"},"issue":{"href":"https://api.github.com/repos/rapidpro/data_api/issues/36"},"comments":{"href":"https://api.github.com/repos/rapidpro/data_api/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/rapidpro/data_api/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/rapidpro/data_api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rapidpro/data_api/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/rapidpro/data_api/statuses/c943c0868ce5d3ad78eee0b254f90d6b1b55a1bf"}},"author_association":"COLLABORATOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"czue","id":66555,"node_id":"MDQ6VXNlcjY2NTU1","avatar_url":"https://avatars3.githubusercontent.com/u/66555?v=4","gravatar_id":"","url":"https://api.github.com/users/czue","html_url":"https://github.com/czue","followers_url":"https://api.github.com/users/czue/followers","following_url":"https://api.github.com/users/czue/following{/other_user}","gists_url":"https://api.github.com/users/czue/gists{/gist_id}","starred_url":"https://api.github.com/users/czue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czue/subscriptions","organizations_url":"https://api.github.com/users/czue/orgs","repos_url":"https://api.github.com/users/czue/repos","events_url":"https://api.github.com/users/czue/events{/privacy}","received_events_url":"https://api.github.com/users/czue/received_events","type":"User","site_admin":false},"comments":6,"review_comments":0,"maintainer_can_modify":false,"commits":8,"additions":102,"deletions":18,"changed_files":8}}
{"actor":{"display_login":"czue"}}