{"action":"created","comment":{"url":"https://api.github.com/repos/ushahidi/platform/pulls/comments/188819980","pull_request_review_id":120874459,"id":188819980,"diff_hunk":"@@ -0,0 +1,88 @@\n+@hxl\n+Feature: Testing the HXL Metadata API\n+  Scenario: Create a metadata object for an existing export job\n+    Given that I want to make a new \"HXL Metadata\"\n+    And that the oauth token is \"testadminuser\"\n+    And that the request \"data\" is:\n+          \"\"\"\n+          {\n+              \"license_id\": 1,\n+              \"organisation\": \"ushahidi\",\n+              \"dataset_title\": \"ushahidi-dataset\",\n+              \"source\": \"other\",\n+              \"maintainer\": \"ushahidi-maintainer\",\n+              \"private\": true,\n+              \"export_job_id\":1,\n+              \"user_id\":2","path":"tests/integration/hxl/metadata.feature","position":16,"original_position":16,"commit_id":"9fc6dda82094fa9288e748a6f323f82b14c4dd27","original_commit_id":"9fc6dda82094fa9288e748a6f323f82b14c4dd27","user":{"login":"rjmackay","id":7965,"avatar_url":"https://avatars2.githubusercontent.com/u/7965?v=4","gravatar_id":"","url":"https://api.github.com/users/rjmackay","html_url":"https://github.com/rjmackay","followers_url":"https://api.github.com/users/rjmackay/followers","following_url":"https://api.github.com/users/rjmackay/following{/other_user}","gists_url":"https://api.github.com/users/rjmackay/gists{/gist_id}","starred_url":"https://api.github.com/users/rjmackay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjmackay/subscriptions","organizations_url":"https://api.github.com/users/rjmackay/orgs","repos_url":"https://api.github.com/users/rjmackay/repos","events_url":"https://api.github.com/users/rjmackay/events{/privacy}","received_events_url":"https://api.github.com/users/rjmackay/received_events","type":"User","site_admin":false},"body":"For reference you can just do this to get it from the session instead: https://github.com/ushahidi/platform/blob/develop/src/Core/Usecase/Contact/CreateContact.php#L19","created_at":"2018-05-17T01:50:57Z","updated_at":"2018-05-17T01:50:57Z","html_url":"https://github.com/ushahidi/platform/pull/2949#discussion_r188819980","pull_request_url":"https://api.github.com/repos/ushahidi/platform/pulls/2949","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/ushahidi/platform/pulls/comments/188819980"},"html":{"href":"https://github.com/ushahidi/platform/pull/2949#discussion_r188819980"},"pull_request":{"href":"https://api.github.com/repos/ushahidi/platform/pulls/2949"}},"in_reply_to_id":188819003},"pull_request":{"url":"https://api.github.com/repos/ushahidi/platform/pulls/2949","id":188230219,"html_url":"https://github.com/ushahidi/platform/pull/2949","diff_url":"https://github.com/ushahidi/platform/pull/2949.diff","patch_url":"https://github.com/ushahidi/platform/pull/2949.patch","issue_url":"https://api.github.com/repos/ushahidi/platform/issues/2949","number":2949,"state":"open","locked":false,"title":"Feature/2937 hdx metadata endpoint","user":{"login":"rowasc","id":2434401,"avatar_url":"https://avatars0.githubusercontent.com/u/2434401?v=4","gravatar_id":"","url":"https://api.github.com/users/rowasc","html_url":"https://github.com/rowasc","followers_url":"https://api.github.com/users/rowasc/followers","following_url":"https://api.github.com/users/rowasc/following{/other_user}","gists_url":"https://api.github.com/users/rowasc/gists{/gist_id}","starred_url":"https://api.github.com/users/rowasc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rowasc/subscriptions","organizations_url":"https://api.github.com/users/rowasc/orgs","repos_url":"https://api.github.com/users/rowasc/repos","events_url":"https://api.github.com/users/rowasc/events{/privacy}","received_events_url":"https://api.github.com/users/rowasc/received_events","type":"User","site_admin":false},"body":"This pull request makes the following changes:\r\n- Implements spec from #2937 \r\n- Depends on PR https://github.com/ushahidi/platform/pull/2948\r\nTest checklist:\r\n- [ ] ./bin/behat\r\n\r\n- [ ] I certify that I ran my checklist\r\n\r\nFixes ushahidi/platform# .\r\n\r\nPing @ushahidi/platform\r\n","created_at":"2018-05-15T19:24:40Z","updated_at":"2018-05-17T01:50:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a306b4d3a30ed8f598492b38e2cd5ad681772326","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ushahidi/platform/pulls/2949/commits","review_comments_url":"https://api.github.com/repos/ushahidi/platform/pulls/2949/comments","review_comment_url":"https://api.github.com/repos/ushahidi/platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ushahidi/platform/issues/2949/comments","statuses_url":"https://api.github.com/repos/ushahidi/platform/statuses/9fc6dda82094fa9288e748a6f323f82b14c4dd27","head":{"label":"ushahidi:feature/2937-hdx-metadata-endpoint","ref":"feature/2937-hdx-metadata-endpoint","sha":"9fc6dda82094fa9288e748a6f323f82b14c4dd27","user":{"login":"ushahidi","id":16959,"avatar_url":"https://avatars3.githubusercontent.com/u/16959?v=4","gravatar_id":"","url":"https://api.github.com/users/ushahidi","html_url":"https://github.com/ushahidi","followers_url":"https://api.github.com/users/ushahidi/followers","following_url":"https://api.github.com/users/ushahidi/following{/other_user}","gists_url":"https://api.github.com/users/ushahidi/gists{/gist_id}","starred_url":"https://api.github.com/users/ushahidi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ushahidi/subscriptions","organizations_url":"https://api.github.com/users/ushahidi/orgs","repos_url":"https://api.github.com/users/ushahidi/repos","events_url":"https://api.github.com/users/ushahidi/events{/privacy}","received_events_url":"https://api.github.com/users/ushahidi/received_events","type":"Organization","site_admin":false},"repo":{"id":6126775,"name":"platform","full_name":"ushahidi/platform","owner":{"login":"ushahidi","id":16959,"avatar_url":"https://avatars3.githubusercontent.com/u/16959?v=4","gravatar_id":"","url":"https://api.github.com/users/ushahidi","html_url":"https://github.com/ushahidi","followers_url":"https://api.github.com/users/ushahidi/followers","following_url":"https://api.github.com/users/ushahidi/following{/other_user}","gists_url":"https://api.github.com/users/ushahidi/gists{/gist_id}","starred_url":"https://api.github.com/users/ushahidi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ushahidi/subscriptions","organizations_url":"https://api.github.com/users/ushahidi/orgs","repos_url":"https://api.github.com/users/ushahidi/repos","events_url":"https://api.github.com/users/ushahidi/events{/privacy}","received_events_url":"https://api.github.com/users/ushahidi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ushahidi/platform","description":"Ushahidi Platform v3 API","fork":false,"url":"https://api.github.com/repos/ushahidi/platform","forks_url":"https://api.github.com/repos/ushahidi/platform/forks","keys_url":"https://api.github.com/repos/ushahidi/platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ushahidi/platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ushahidi/platform/teams","hooks_url":"https://api.github.com/repos/ushahidi/platform/hooks","issue_events_url":"https://api.github.com/repos/ushahidi/platform/issues/events{/number}","events_url":"https://api.github.com/repos/ushahidi/platform/events","assignees_url":"https://api.github.com/repos/ushahidi/platform/assignees{/user}","branches_url":"https://api.github.com/repos/ushahidi/platform/branches{/branch}","tags_url":"https://api.github.com/repos/ushahidi/platform/tags","blobs_url":"https://api.github.com/repos/ushahidi/platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ushahidi/platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ushahidi/platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/ushahidi/platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ushahidi/platform/statuses/{sha}","languages_url":"https://api.github.com/repos/ushahidi/platform/languages","stargazers_url":"https://api.github.com/repos/ushahidi/platform/stargazers","contributors_url":"https://api.github.com/repos/ushahidi/platform/contributors","subscribers_url":"https://api.github.com/repos/ushahidi/platform/subscribers","subscription_url":"https://api.github.com/repos/ushahidi/platform/subscription","commits_url":"https://api.github.com/repos/ushahidi/platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/ushahidi/platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/ushahidi/platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/ushahidi/platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/ushahidi/platform/contents/{+path}","compare_url":"https://api.github.com/repos/ushahidi/platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ushahidi/platform/merges","archive_url":"https://api.github.com/repos/ushahidi/platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ushahidi/platform/downloads","issues_url":"https://api.github.com/repos/ushahidi/platform/issues{/number}","pulls_url":"https://api.github.com/repos/ushahidi/platform/pulls{/number}","milestones_url":"https://api.github.com/repos/ushahidi/platform/milestones{/number}","notifications_url":"https://api.github.com/repos/ushahidi/platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ushahidi/platform/labels{/name}","releases_url":"https://api.github.com/repos/ushahidi/platform/releases{/id}","deployments_url":"https://api.github.com/repos/ushahidi/platform/deployments","created_at":"2012-10-08T15:40:14Z","updated_at":"2018-05-16T23:23:07Z","pushed_at":"2018-05-17T00:22:09Z","git_url":"git://github.com/ushahidi/platform.git","ssh_url":"git@github.com:ushahidi/platform.git","clone_url":"https://github.com/ushahidi/platform.git","svn_url":"https://github.com/ushahidi/platform","homepage":"http://ushahidi.com","size":30762,"stargazers_count":459,"watchers_count":459,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":258,"mirror_url":null,"archived":false,"open_issues_count":635,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":258,"open_issues":635,"watchers":459,"default_branch":"develop"}},"base":{"label":"ushahidi:develop","ref":"develop","sha":"7dfa51ce8d8ea2cb85c13eaa14e44cfe97645e41","user":{"login":"ushahidi","id":16959,"avatar_url":"https://avatars3.githubusercontent.com/u/16959?v=4","gravatar_id":"","url":"https://api.github.com/users/ushahidi","html_url":"https://github.com/ushahidi","followers_url":"https://api.github.com/users/ushahidi/followers","following_url":"https://api.github.com/users/ushahidi/following{/other_user}","gists_url":"https://api.github.com/users/ushahidi/gists{/gist_id}","starred_url":"https://api.github.com/users/ushahidi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ushahidi/subscriptions","organizations_url":"https://api.github.com/users/ushahidi/orgs","repos_url":"https://api.github.com/users/ushahidi/repos","events_url":"https://api.github.com/users/ushahidi/events{/privacy}","received_events_url":"https://api.github.com/users/ushahidi/received_events","type":"Organization","site_admin":false},"repo":{"id":6126775,"name":"platform","full_name":"ushahidi/platform","owner":{"login":"ushahidi","id":16959,"avatar_url":"https://avatars3.githubusercontent.com/u/16959?v=4","gravatar_id":"","url":"https://api.github.com/users/ushahidi","html_url":"https://github.com/ushahidi","followers_url":"https://api.github.com/users/ushahidi/followers","following_url":"https://api.github.com/users/ushahidi/following{/other_user}","gists_url":"https://api.github.com/users/ushahidi/gists{/gist_id}","starred_url":"https://api.github.com/users/ushahidi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ushahidi/subscriptions","organizations_url":"https://api.github.com/users/ushahidi/orgs","repos_url":"https://api.github.com/users/ushahidi/repos","events_url":"https://api.github.com/users/ushahidi/events{/privacy}","received_events_url":"https://api.github.com/users/ushahidi/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ushahidi/platform","description":"Ushahidi Platform v3 API","fork":false,"url":"https://api.github.com/repos/ushahidi/platform","forks_url":"https://api.github.com/repos/ushahidi/platform/forks","keys_url":"https://api.github.com/repos/ushahidi/platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ushahidi/platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ushahidi/platform/teams","hooks_url":"https://api.github.com/repos/ushahidi/platform/hooks","issue_events_url":"https://api.github.com/repos/ushahidi/platform/issues/events{/number}","events_url":"https://api.github.com/repos/ushahidi/platform/events","assignees_url":"https://api.github.com/repos/ushahidi/platform/assignees{/user}","branches_url":"https://api.github.com/repos/ushahidi/platform/branches{/branch}","tags_url":"https://api.github.com/repos/ushahidi/platform/tags","blobs_url":"https://api.github.com/repos/ushahidi/platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ushahidi/platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ushahidi/platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/ushahidi/platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ushahidi/platform/statuses/{sha}","languages_url":"https://api.github.com/repos/ushahidi/platform/languages","stargazers_url":"https://api.github.com/repos/ushahidi/platform/stargazers","contributors_url":"https://api.github.com/repos/ushahidi/platform/contributors","subscribers_url":"https://api.github.com/repos/ushahidi/platform/subscribers","subscription_url":"https://api.github.com/repos/ushahidi/platform/subscription","commits_url":"https://api.github.com/repos/ushahidi/platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/ushahidi/platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/ushahidi/platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/ushahidi/platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/ushahidi/platform/contents/{+path}","compare_url":"https://api.github.com/repos/ushahidi/platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ushahidi/platform/merges","archive_url":"https://api.github.com/repos/ushahidi/platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ushahidi/platform/downloads","issues_url":"https://api.github.com/repos/ushahidi/platform/issues{/number}","pulls_url":"https://api.github.com/repos/ushahidi/platform/pulls{/number}","milestones_url":"https://api.github.com/repos/ushahidi/platform/milestones{/number}","notifications_url":"https://api.github.com/repos/ushahidi/platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ushahidi/platform/labels{/name}","releases_url":"https://api.github.com/repos/ushahidi/platform/releases{/id}","deployments_url":"https://api.github.com/repos/ushahidi/platform/deployments","created_at":"2012-10-08T15:40:14Z","updated_at":"2018-05-16T23:23:07Z","pushed_at":"2018-05-17T00:22:09Z","git_url":"git://github.com/ushahidi/platform.git","ssh_url":"git@github.com:ushahidi/platform.git","clone_url":"https://github.com/ushahidi/platform.git","svn_url":"https://github.com/ushahidi/platform","homepage":"http://ushahidi.com","size":30762,"stargazers_count":459,"watchers_count":459,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":258,"mirror_url":null,"archived":false,"open_issues_count":635,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":258,"open_issues":635,"watchers":459,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ushahidi/platform/pulls/2949"},"html":{"href":"https://github.com/ushahidi/platform/pull/2949"},"issue":{"href":"https://api.github.com/repos/ushahidi/platform/issues/2949"},"comments":{"href":"https://api.github.com/repos/ushahidi/platform/issues/2949/comments"},"review_comments":{"href":"https://api.github.com/repos/ushahidi/platform/pulls/2949/comments"},"review_comment":{"href":"https://api.github.com/repos/ushahidi/platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ushahidi/platform/pulls/2949/commits"},"statuses":{"href":"https://api.github.com/repos/ushahidi/platform/statuses/9fc6dda82094fa9288e748a6f323f82b14c4dd27"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"rjmackay"}}