{"action":"closed","number":10,"pull_request":{"url":"https://api.github.com/repos/BLSQ/dhis2/pulls/10","id":85996743,"html_url":"https://github.com/BLSQ/dhis2/pull/10","diff_url":"https://github.com/BLSQ/dhis2/pull/10.diff","patch_url":"https://github.com/BLSQ/dhis2/pull/10.patch","issue_url":"https://api.github.com/repos/BLSQ/dhis2/issues/10","number":10,"state":"closed","locked":false,"title":"Multi instance","user":{"login":"thibaultponcelet","id":691908,"avatar_url":"https://avatars.githubusercontent.com/u/691908?v=3","gravatar_id":"","url":"https://api.github.com/users/thibaultponcelet","html_url":"https://github.com/thibaultponcelet","followers_url":"https://api.github.com/users/thibaultponcelet/followers","following_url":"https://api.github.com/users/thibaultponcelet/following{/other_user}","gists_url":"https://api.github.com/users/thibaultponcelet/gists{/gist_id}","starred_url":"https://api.github.com/users/thibaultponcelet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thibaultponcelet/subscriptions","organizations_url":"https://api.github.com/users/thibaultponcelet/orgs","repos_url":"https://api.github.com/users/thibaultponcelet/repos","events_url":"https://api.github.com/users/thibaultponcelet/events{/privacy}","received_events_url":"https://api.github.com/users/thibaultponcelet/received_events","type":"User","site_admin":false},"body":"Move to instance based API client.\r\nAuto convert params to camel/snake_case\r\n\r\nAll tests are green besides organisation units but I suspect data have changed in the test instance\r\n\r\n```\r\n  1) Failure:\r\nOrganisationUnitTest#test_org_units_children [/Users/thibault/Spin42/bluesquare/dhis2/test/organisation_unit_test.rb:35]:\r\nExpected: 16\r\n  Actual: 50\r\n\r\n\r\n  2) Failure:\r\nOrganisationUnitTest#test_org_unit_last_level_descendants [/Users/thibault/Spin42/bluesquare/dhis2/test/organisation_unit_test.rb:50]:\r\nExpected: 125\r\n  Actual: 0\r\n\r\n\r\n  3) Failure:\r\nOrganisationUnitTest#test_org_units_descendants [/Users/thibault/Spin42/bluesquare/dhis2/test/organisation_unit_test.rb:42]:\r\nExpected: 141\r\n  Actual: 1333\r\n\r\n```","created_at":"2016-09-20T15:16:48Z","updated_at":"2016-09-26T11:35:27Z","closed_at":"2016-09-26T11:35:27Z","merged_at":"2016-09-26T11:35:27Z","merge_commit_sha":"933ee59d35e5a6280f941081ad49f2733aef348d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/BLSQ/dhis2/pulls/10/commits","review_comments_url":"https://api.github.com/repos/BLSQ/dhis2/pulls/10/comments","review_comment_url":"https://api.github.com/repos/BLSQ/dhis2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BLSQ/dhis2/issues/10/comments","statuses_url":"https://api.github.com/repos/BLSQ/dhis2/statuses/b7e3b226726b5bce7bcf2cec65e3d51c23d28035","head":{"label":"BLSQ:multi-instance","ref":"multi-instance","sha":"b7e3b226726b5bce7bcf2cec65e3d51c23d28035","user":{"login":"BLSQ","id":19908126,"avatar_url":"https://avatars.githubusercontent.com/u/19908126?v=3","gravatar_id":"","url":"https://api.github.com/users/BLSQ","html_url":"https://github.com/BLSQ","followers_url":"https://api.github.com/users/BLSQ/followers","following_url":"https://api.github.com/users/BLSQ/following{/other_user}","gists_url":"https://api.github.com/users/BLSQ/gists{/gist_id}","starred_url":"https://api.github.com/users/BLSQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BLSQ/subscriptions","organizations_url":"https://api.github.com/users/BLSQ/orgs","repos_url":"https://api.github.com/users/BLSQ/repos","events_url":"https://api.github.com/users/BLSQ/events{/privacy}","received_events_url":"https://api.github.com/users/BLSQ/received_events","type":"Organization","site_admin":false},"repo":{"id":65744373,"name":"dhis2","full_name":"BLSQ/dhis2","owner":{"login":"BLSQ","id":19908126,"avatar_url":"https://avatars.githubusercontent.com/u/19908126?v=3","gravatar_id":"","url":"https://api.github.com/users/BLSQ","html_url":"https://github.com/BLSQ","followers_url":"https://api.github.com/users/BLSQ/followers","following_url":"https://api.github.com/users/BLSQ/following{/other_user}","gists_url":"https://api.github.com/users/BLSQ/gists{/gist_id}","starred_url":"https://api.github.com/users/BLSQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BLSQ/subscriptions","organizations_url":"https://api.github.com/users/BLSQ/orgs","repos_url":"https://api.github.com/users/BLSQ/repos","events_url":"https://api.github.com/users/BLSQ/events{/privacy}","received_events_url":"https://api.github.com/users/BLSQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BLSQ/dhis2","description":"DHIS2 Ruby client","fork":false,"url":"https://api.github.com/repos/BLSQ/dhis2","forks_url":"https://api.github.com/repos/BLSQ/dhis2/forks","keys_url":"https://api.github.com/repos/BLSQ/dhis2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BLSQ/dhis2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BLSQ/dhis2/teams","hooks_url":"https://api.github.com/repos/BLSQ/dhis2/hooks","issue_events_url":"https://api.github.com/repos/BLSQ/dhis2/issues/events{/number}","events_url":"https://api.github.com/repos/BLSQ/dhis2/events","assignees_url":"https://api.github.com/repos/BLSQ/dhis2/assignees{/user}","branches_url":"https://api.github.com/repos/BLSQ/dhis2/branches{/branch}","tags_url":"https://api.github.com/repos/BLSQ/dhis2/tags","blobs_url":"https://api.github.com/repos/BLSQ/dhis2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BLSQ/dhis2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BLSQ/dhis2/git/refs{/sha}","trees_url":"https://api.github.com/repos/BLSQ/dhis2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BLSQ/dhis2/statuses/{sha}","languages_url":"https://api.github.com/repos/BLSQ/dhis2/languages","stargazers_url":"https://api.github.com/repos/BLSQ/dhis2/stargazers","contributors_url":"https://api.github.com/repos/BLSQ/dhis2/contributors","subscribers_url":"https://api.github.com/repos/BLSQ/dhis2/subscribers","subscription_url":"https://api.github.com/repos/BLSQ/dhis2/subscription","commits_url":"https://api.github.com/repos/BLSQ/dhis2/commits{/sha}","git_commits_url":"https://api.github.com/repos/BLSQ/dhis2/git/commits{/sha}","comments_url":"https://api.github.com/repos/BLSQ/dhis2/comments{/number}","issue_comment_url":"https://api.github.com/repos/BLSQ/dhis2/issues/comments{/number}","contents_url":"https://api.github.com/repos/BLSQ/dhis2/contents/{+path}","compare_url":"https://api.github.com/repos/BLSQ/dhis2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BLSQ/dhis2/merges","archive_url":"https://api.github.com/repos/BLSQ/dhis2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BLSQ/dhis2/downloads","issues_url":"https://api.github.com/repos/BLSQ/dhis2/issues{/number}","pulls_url":"https://api.github.com/repos/BLSQ/dhis2/pulls{/number}","milestones_url":"https://api.github.com/repos/BLSQ/dhis2/milestones{/number}","notifications_url":"https://api.github.com/repos/BLSQ/dhis2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BLSQ/dhis2/labels{/name}","releases_url":"https://api.github.com/repos/BLSQ/dhis2/releases{/id}","deployments_url":"https://api.github.com/repos/BLSQ/dhis2/deployments","created_at":"2016-08-15T15:47:48Z","updated_at":"2016-08-24T09:23:14Z","pushed_at":"2016-09-26T11:35:27Z","git_url":"git://github.com/BLSQ/dhis2.git","ssh_url":"git@github.com:BLSQ/dhis2.git","clone_url":"https://github.com/BLSQ/dhis2.git","svn_url":"https://github.com/BLSQ/dhis2","homepage":null,"size":70,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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"}},"base":{"label":"BLSQ:master","ref":"master","sha":"917316a7c37d614e6810fc9fd675523bcc7c3dc4","user":{"login":"BLSQ","id":19908126,"avatar_url":"https://avatars.githubusercontent.com/u/19908126?v=3","gravatar_id":"","url":"https://api.github.com/users/BLSQ","html_url":"https://github.com/BLSQ","followers_url":"https://api.github.com/users/BLSQ/followers","following_url":"https://api.github.com/users/BLSQ/following{/other_user}","gists_url":"https://api.github.com/users/BLSQ/gists{/gist_id}","starred_url":"https://api.github.com/users/BLSQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BLSQ/subscriptions","organizations_url":"https://api.github.com/users/BLSQ/orgs","repos_url":"https://api.github.com/users/BLSQ/repos","events_url":"https://api.github.com/users/BLSQ/events{/privacy}","received_events_url":"https://api.github.com/users/BLSQ/received_events","type":"Organization","site_admin":false},"repo":{"id":65744373,"name":"dhis2","full_name":"BLSQ/dhis2","owner":{"login":"BLSQ","id":19908126,"avatar_url":"https://avatars.githubusercontent.com/u/19908126?v=3","gravatar_id":"","url":"https://api.github.com/users/BLSQ","html_url":"https://github.com/BLSQ","followers_url":"https://api.github.com/users/BLSQ/followers","following_url":"https://api.github.com/users/BLSQ/following{/other_user}","gists_url":"https://api.github.com/users/BLSQ/gists{/gist_id}","starred_url":"https://api.github.com/users/BLSQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BLSQ/subscriptions","organizations_url":"https://api.github.com/users/BLSQ/orgs","repos_url":"https://api.github.com/users/BLSQ/repos","events_url":"https://api.github.com/users/BLSQ/events{/privacy}","received_events_url":"https://api.github.com/users/BLSQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BLSQ/dhis2","description":"DHIS2 Ruby client","fork":false,"url":"https://api.github.com/repos/BLSQ/dhis2","forks_url":"https://api.github.com/repos/BLSQ/dhis2/forks","keys_url":"https://api.github.com/repos/BLSQ/dhis2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BLSQ/dhis2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BLSQ/dhis2/teams","hooks_url":"https://api.github.com/repos/BLSQ/dhis2/hooks","issue_events_url":"https://api.github.com/repos/BLSQ/dhis2/issues/events{/number}","events_url":"https://api.github.com/repos/BLSQ/dhis2/events","assignees_url":"https://api.github.com/repos/BLSQ/dhis2/assignees{/user}","branches_url":"https://api.github.com/repos/BLSQ/dhis2/branches{/branch}","tags_url":"https://api.github.com/repos/BLSQ/dhis2/tags","blobs_url":"https://api.github.com/repos/BLSQ/dhis2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BLSQ/dhis2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BLSQ/dhis2/git/refs{/sha}","trees_url":"https://api.github.com/repos/BLSQ/dhis2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BLSQ/dhis2/statuses/{sha}","languages_url":"https://api.github.com/repos/BLSQ/dhis2/languages","stargazers_url":"https://api.github.com/repos/BLSQ/dhis2/stargazers","contributors_url":"https://api.github.com/repos/BLSQ/dhis2/contributors","subscribers_url":"https://api.github.com/repos/BLSQ/dhis2/subscribers","subscription_url":"https://api.github.com/repos/BLSQ/dhis2/subscription","commits_url":"https://api.github.com/repos/BLSQ/dhis2/commits{/sha}","git_commits_url":"https://api.github.com/repos/BLSQ/dhis2/git/commits{/sha}","comments_url":"https://api.github.com/repos/BLSQ/dhis2/comments{/number}","issue_comment_url":"https://api.github.com/repos/BLSQ/dhis2/issues/comments{/number}","contents_url":"https://api.github.com/repos/BLSQ/dhis2/contents/{+path}","compare_url":"https://api.github.com/repos/BLSQ/dhis2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BLSQ/dhis2/merges","archive_url":"https://api.github.com/repos/BLSQ/dhis2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BLSQ/dhis2/downloads","issues_url":"https://api.github.com/repos/BLSQ/dhis2/issues{/number}","pulls_url":"https://api.github.com/repos/BLSQ/dhis2/pulls{/number}","milestones_url":"https://api.github.com/repos/BLSQ/dhis2/milestones{/number}","notifications_url":"https://api.github.com/repos/BLSQ/dhis2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BLSQ/dhis2/labels{/name}","releases_url":"https://api.github.com/repos/BLSQ/dhis2/releases{/id}","deployments_url":"https://api.github.com/repos/BLSQ/dhis2/deployments","created_at":"2016-08-15T15:47:48Z","updated_at":"2016-08-24T09:23:14Z","pushed_at":"2016-09-26T11:35:27Z","git_url":"git://github.com/BLSQ/dhis2.git","ssh_url":"git@github.com:BLSQ/dhis2.git","clone_url":"https://github.com/BLSQ/dhis2.git","svn_url":"https://github.com/BLSQ/dhis2","homepage":null,"size":70,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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/BLSQ/dhis2/pulls/10"},"html":{"href":"https://github.com/BLSQ/dhis2/pull/10"},"issue":{"href":"https://api.github.com/repos/BLSQ/dhis2/issues/10"},"comments":{"href":"https://api.github.com/repos/BLSQ/dhis2/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/BLSQ/dhis2/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/BLSQ/dhis2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BLSQ/dhis2/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/BLSQ/dhis2/statuses/b7e3b226726b5bce7bcf2cec65e3d51c23d28035"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"vanakenm","id":829292,"avatar_url":"https://avatars.githubusercontent.com/u/829292?v=3","gravatar_id":"","url":"https://api.github.com/users/vanakenm","html_url":"https://github.com/vanakenm","followers_url":"https://api.github.com/users/vanakenm/followers","following_url":"https://api.github.com/users/vanakenm/following{/other_user}","gists_url":"https://api.github.com/users/vanakenm/gists{/gist_id}","starred_url":"https://api.github.com/users/vanakenm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanakenm/subscriptions","organizations_url":"https://api.github.com/users/vanakenm/orgs","repos_url":"https://api.github.com/users/vanakenm/repos","events_url":"https://api.github.com/users/vanakenm/events{/privacy}","received_events_url":"https://api.github.com/users/vanakenm/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":7,"additions":639,"deletions":460,"changed_files":40}}
{"actor":{"display_login":"vanakenm"}}