{"action":"created","comment":{"url":"https://api.github.com/repos/telefonicaid/context-adapter/pulls/comments/57569683","id":57569683,"diff_hunk":"@@ -32,21 +32,22 @@ var caLogger = require('logops'),\n \n /**\n  * Sends a queryContext request to the configured Context Broker\n- * @param {string} service Service header to be used in the request\n- * @param {string} servicePath Service Path header to be used in the request\n+ * @param {object} request The original HTTP request\n  * @param {object} payload Payload to be included in the request\n  * @param {function} callback Callback to be called informing of any errors or returning\n  *  the obtained response\n  */\n-function sendQueryContext(service, servicePath, payload, callback) {\n+function sendQueryContext(request, payload, callback) {\n   var requestOptions = {\n     method: 'POST',\n     uri: 'http://' + caConfig.CB_HOST + ':' + caConfig.CB_PORT + caConfig.CB_PATH + '/queryContext',\n     headers: {\n       'Accept': 'application/json',\n       'Content-Type': 'application/json',\n-      'Fiware-Service': service || caConfig.SERVICE,\n-      'Fiware-ServicePath': servicePath || caConfig.SERVICE_PATH\n+      'Unica-Correlator': caHelper.getUnicaCorrelator(request),\n+      'Authorization': caHelper.getTransactionId(request),","path":"lib/context_adapter_communication.js","position":22,"original_position":22,"commit_id":"07156d6122639c2dbd2df7cb4ac58cceacbe7b75","original_commit_id":"07156d6122639c2dbd2df7cb4ac58cceacbe7b75","user":{"login":"fgalan","id":1534240,"avatar_url":"https://avatars.githubusercontent.com/u/1534240?v=3","gravatar_id":"","url":"https://api.github.com/users/fgalan","html_url":"https://github.com/fgalan","followers_url":"https://api.github.com/users/fgalan/followers","following_url":"https://api.github.com/users/fgalan/following{/other_user}","gists_url":"https://api.github.com/users/fgalan/gists{/gist_id}","starred_url":"https://api.github.com/users/fgalan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fgalan/subscriptions","organizations_url":"https://api.github.com/users/fgalan/orgs","repos_url":"https://api.github.com/users/fgalan/repos","events_url":"https://api.github.com/users/fgalan/events{/privacy}","received_events_url":"https://api.github.com/users/fgalan/received_events","type":"User","site_admin":false},"body":"As far as I understand, the mechanism to transport transaction ID is yet under discussion. Thus, I'd recomment to put this PR on hold while the mechanism gets clarified.","created_at":"2016-03-28T13:11:39Z","updated_at":"2016-03-28T13:11:39Z","html_url":"https://github.com/telefonicaid/context-adapter/pull/81#discussion_r57569683","pull_request_url":"https://api.github.com/repos/telefonicaid/context-adapter/pulls/81","_links":{"self":{"href":"https://api.github.com/repos/telefonicaid/context-adapter/pulls/comments/57569683"},"html":{"href":"https://github.com/telefonicaid/context-adapter/pull/81#discussion_r57569683"},"pull_request":{"href":"https://api.github.com/repos/telefonicaid/context-adapter/pulls/81"}}},"pull_request":{"url":"https://api.github.com/repos/telefonicaid/context-adapter/pulls/81","id":64315052,"html_url":"https://github.com/telefonicaid/context-adapter/pull/81","diff_url":"https://github.com/telefonicaid/context-adapter/pull/81.diff","patch_url":"https://github.com/telefonicaid/context-adapter/pull/81.patch","issue_url":"https://api.github.com/repos/telefonicaid/context-adapter/issues/81","number":81,"state":"open","locked":false,"title":"Use the Authorization header as the transaction id","user":{"login":"gtorodelvalle","id":667284,"avatar_url":"https://avatars.githubusercontent.com/u/667284?v=3","gravatar_id":"","url":"https://api.github.com/users/gtorodelvalle","html_url":"https://github.com/gtorodelvalle","followers_url":"https://api.github.com/users/gtorodelvalle/followers","following_url":"https://api.github.com/users/gtorodelvalle/following{/other_user}","gists_url":"https://api.github.com/users/gtorodelvalle/gists{/gist_id}","starred_url":"https://api.github.com/users/gtorodelvalle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtorodelvalle/subscriptions","organizations_url":"https://api.github.com/users/gtorodelvalle/orgs","repos_url":"https://api.github.com/users/gtorodelvalle/repos","events_url":"https://api.github.com/users/gtorodelvalle/events{/privacy}","received_events_url":"https://api.github.com/users/gtorodelvalle/received_events","type":"User","site_admin":false},"body":"- Fixes https://github.com/telefonicaid/context-adapter/issues/78\r\n- No linting issues.\r\n- 100% tests passed.","created_at":"2016-03-28T11:59:32Z","updated_at":"2016-03-28T13:11:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c6617ae3e370f0b07c60272fef403cea770141e4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/telefonicaid/context-adapter/pulls/81/commits","review_comments_url":"https://api.github.com/repos/telefonicaid/context-adapter/pulls/81/comments","review_comment_url":"https://api.github.com/repos/telefonicaid/context-adapter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/telefonicaid/context-adapter/issues/81/comments","statuses_url":"https://api.github.com/repos/telefonicaid/context-adapter/statuses/07156d6122639c2dbd2df7cb4ac58cceacbe7b75","head":{"label":"telefonicaid:feature/propagate-transaction-id","ref":"feature/propagate-transaction-id","sha":"07156d6122639c2dbd2df7cb4ac58cceacbe7b75","user":{"login":"telefonicaid","id":968363,"avatar_url":"https://avatars.githubusercontent.com/u/968363?v=3","gravatar_id":"","url":"https://api.github.com/users/telefonicaid","html_url":"https://github.com/telefonicaid","followers_url":"https://api.github.com/users/telefonicaid/followers","following_url":"https://api.github.com/users/telefonicaid/following{/other_user}","gists_url":"https://api.github.com/users/telefonicaid/gists{/gist_id}","starred_url":"https://api.github.com/users/telefonicaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telefonicaid/subscriptions","organizations_url":"https://api.github.com/users/telefonicaid/orgs","repos_url":"https://api.github.com/users/telefonicaid/repos","events_url":"https://api.github.com/users/telefonicaid/events{/privacy}","received_events_url":"https://api.github.com/users/telefonicaid/received_events","type":"Organization","site_admin":false},"repo":{"id":40655205,"name":"context-adapter","full_name":"telefonicaid/context-adapter","owner":{"login":"telefonicaid","id":968363,"avatar_url":"https://avatars.githubusercontent.com/u/968363?v=3","gravatar_id":"","url":"https://api.github.com/users/telefonicaid","html_url":"https://github.com/telefonicaid","followers_url":"https://api.github.com/users/telefonicaid/followers","following_url":"https://api.github.com/users/telefonicaid/following{/other_user}","gists_url":"https://api.github.com/users/telefonicaid/gists{/gist_id}","starred_url":"https://api.github.com/users/telefonicaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telefonicaid/subscriptions","organizations_url":"https://api.github.com/users/telefonicaid/orgs","repos_url":"https://api.github.com/users/telefonicaid/repos","events_url":"https://api.github.com/users/telefonicaid/events{/privacy}","received_events_url":"https://api.github.com/users/telefonicaid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telefonicaid/context-adapter","description":"Context Adapter component for the Black Button (Generic Button) platform by Telefónica","fork":false,"url":"https://api.github.com/repos/telefonicaid/context-adapter","forks_url":"https://api.github.com/repos/telefonicaid/context-adapter/forks","keys_url":"https://api.github.com/repos/telefonicaid/context-adapter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telefonicaid/context-adapter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telefonicaid/context-adapter/teams","hooks_url":"https://api.github.com/repos/telefonicaid/context-adapter/hooks","issue_events_url":"https://api.github.com/repos/telefonicaid/context-adapter/issues/events{/number}","events_url":"https://api.github.com/repos/telefonicaid/context-adapter/events","assignees_url":"https://api.github.com/repos/telefonicaid/context-adapter/assignees{/user}","branches_url":"https://api.github.com/repos/telefonicaid/context-adapter/branches{/branch}","tags_url":"https://api.github.com/repos/telefonicaid/context-adapter/tags","blobs_url":"https://api.github.com/repos/telefonicaid/context-adapter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telefonicaid/context-adapter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telefonicaid/context-adapter/git/refs{/sha}","trees_url":"https://api.github.com/repos/telefonicaid/context-adapter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telefonicaid/context-adapter/statuses/{sha}","languages_url":"https://api.github.com/repos/telefonicaid/context-adapter/languages","stargazers_url":"https://api.github.com/repos/telefonicaid/context-adapter/stargazers","contributors_url":"https://api.github.com/repos/telefonicaid/context-adapter/contributors","subscribers_url":"https://api.github.com/repos/telefonicaid/context-adapter/subscribers","subscription_url":"https://api.github.com/repos/telefonicaid/context-adapter/subscription","commits_url":"https://api.github.com/repos/telefonicaid/context-adapter/commits{/sha}","git_commits_url":"https://api.github.com/repos/telefonicaid/context-adapter/git/commits{/sha}","comments_url":"https://api.github.com/repos/telefonicaid/context-adapter/comments{/number}","issue_comment_url":"https://api.github.com/repos/telefonicaid/context-adapter/issues/comments{/number}","contents_url":"https://api.github.com/repos/telefonicaid/context-adapter/contents/{+path}","compare_url":"https://api.github.com/repos/telefonicaid/context-adapter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telefonicaid/context-adapter/merges","archive_url":"https://api.github.com/repos/telefonicaid/context-adapter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telefonicaid/context-adapter/downloads","issues_url":"https://api.github.com/repos/telefonicaid/context-adapter/issues{/number}","pulls_url":"https://api.github.com/repos/telefonicaid/context-adapter/pulls{/number}","milestones_url":"https://api.github.com/repos/telefonicaid/context-adapter/milestones{/number}","notifications_url":"https://api.github.com/repos/telefonicaid/context-adapter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telefonicaid/context-adapter/labels{/name}","releases_url":"https://api.github.com/repos/telefonicaid/context-adapter/releases{/id}","deployments_url":"https://api.github.com/repos/telefonicaid/context-adapter/deployments","created_at":"2015-08-13T11:29:48Z","updated_at":"2016-01-11T16:43:27Z","pushed_at":"2016-03-28T11:59:32Z","git_url":"git://github.com/telefonicaid/context-adapter.git","ssh_url":"git@github.com:telefonicaid/context-adapter.git","clone_url":"https://github.com/telefonicaid/context-adapter.git","svn_url":"https://github.com/telefonicaid/context-adapter","homepage":"","size":291,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"telefonicaid:develop","ref":"develop","sha":"5f056c5a477ca7d6d2332b9916e4a6e6bf304783","user":{"login":"telefonicaid","id":968363,"avatar_url":"https://avatars.githubusercontent.com/u/968363?v=3","gravatar_id":"","url":"https://api.github.com/users/telefonicaid","html_url":"https://github.com/telefonicaid","followers_url":"https://api.github.com/users/telefonicaid/followers","following_url":"https://api.github.com/users/telefonicaid/following{/other_user}","gists_url":"https://api.github.com/users/telefonicaid/gists{/gist_id}","starred_url":"https://api.github.com/users/telefonicaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telefonicaid/subscriptions","organizations_url":"https://api.github.com/users/telefonicaid/orgs","repos_url":"https://api.github.com/users/telefonicaid/repos","events_url":"https://api.github.com/users/telefonicaid/events{/privacy}","received_events_url":"https://api.github.com/users/telefonicaid/received_events","type":"Organization","site_admin":false},"repo":{"id":40655205,"name":"context-adapter","full_name":"telefonicaid/context-adapter","owner":{"login":"telefonicaid","id":968363,"avatar_url":"https://avatars.githubusercontent.com/u/968363?v=3","gravatar_id":"","url":"https://api.github.com/users/telefonicaid","html_url":"https://github.com/telefonicaid","followers_url":"https://api.github.com/users/telefonicaid/followers","following_url":"https://api.github.com/users/telefonicaid/following{/other_user}","gists_url":"https://api.github.com/users/telefonicaid/gists{/gist_id}","starred_url":"https://api.github.com/users/telefonicaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telefonicaid/subscriptions","organizations_url":"https://api.github.com/users/telefonicaid/orgs","repos_url":"https://api.github.com/users/telefonicaid/repos","events_url":"https://api.github.com/users/telefonicaid/events{/privacy}","received_events_url":"https://api.github.com/users/telefonicaid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telefonicaid/context-adapter","description":"Context Adapter component for the Black Button (Generic Button) platform by Telefónica","fork":false,"url":"https://api.github.com/repos/telefonicaid/context-adapter","forks_url":"https://api.github.com/repos/telefonicaid/context-adapter/forks","keys_url":"https://api.github.com/repos/telefonicaid/context-adapter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telefonicaid/context-adapter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telefonicaid/context-adapter/teams","hooks_url":"https://api.github.com/repos/telefonicaid/context-adapter/hooks","issue_events_url":"https://api.github.com/repos/telefonicaid/context-adapter/issues/events{/number}","events_url":"https://api.github.com/repos/telefonicaid/context-adapter/events","assignees_url":"https://api.github.com/repos/telefonicaid/context-adapter/assignees{/user}","branches_url":"https://api.github.com/repos/telefonicaid/context-adapter/branches{/branch}","tags_url":"https://api.github.com/repos/telefonicaid/context-adapter/tags","blobs_url":"https://api.github.com/repos/telefonicaid/context-adapter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telefonicaid/context-adapter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telefonicaid/context-adapter/git/refs{/sha}","trees_url":"https://api.github.com/repos/telefonicaid/context-adapter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telefonicaid/context-adapter/statuses/{sha}","languages_url":"https://api.github.com/repos/telefonicaid/context-adapter/languages","stargazers_url":"https://api.github.com/repos/telefonicaid/context-adapter/stargazers","contributors_url":"https://api.github.com/repos/telefonicaid/context-adapter/contributors","subscribers_url":"https://api.github.com/repos/telefonicaid/context-adapter/subscribers","subscription_url":"https://api.github.com/repos/telefonicaid/context-adapter/subscription","commits_url":"https://api.github.com/repos/telefonicaid/context-adapter/commits{/sha}","git_commits_url":"https://api.github.com/repos/telefonicaid/context-adapter/git/commits{/sha}","comments_url":"https://api.github.com/repos/telefonicaid/context-adapter/comments{/number}","issue_comment_url":"https://api.github.com/repos/telefonicaid/context-adapter/issues/comments{/number}","contents_url":"https://api.github.com/repos/telefonicaid/context-adapter/contents/{+path}","compare_url":"https://api.github.com/repos/telefonicaid/context-adapter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telefonicaid/context-adapter/merges","archive_url":"https://api.github.com/repos/telefonicaid/context-adapter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telefonicaid/context-adapter/downloads","issues_url":"https://api.github.com/repos/telefonicaid/context-adapter/issues{/number}","pulls_url":"https://api.github.com/repos/telefonicaid/context-adapter/pulls{/number}","milestones_url":"https://api.github.com/repos/telefonicaid/context-adapter/milestones{/number}","notifications_url":"https://api.github.com/repos/telefonicaid/context-adapter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telefonicaid/context-adapter/labels{/name}","releases_url":"https://api.github.com/repos/telefonicaid/context-adapter/releases{/id}","deployments_url":"https://api.github.com/repos/telefonicaid/context-adapter/deployments","created_at":"2015-08-13T11:29:48Z","updated_at":"2016-01-11T16:43:27Z","pushed_at":"2016-03-28T11:59:32Z","git_url":"git://github.com/telefonicaid/context-adapter.git","ssh_url":"git@github.com:telefonicaid/context-adapter.git","clone_url":"https://github.com/telefonicaid/context-adapter.git","svn_url":"https://github.com/telefonicaid/context-adapter","homepage":"","size":291,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/telefonicaid/context-adapter/pulls/81"},"html":{"href":"https://github.com/telefonicaid/context-adapter/pull/81"},"issue":{"href":"https://api.github.com/repos/telefonicaid/context-adapter/issues/81"},"comments":{"href":"https://api.github.com/repos/telefonicaid/context-adapter/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/telefonicaid/context-adapter/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/telefonicaid/context-adapter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/telefonicaid/context-adapter/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/telefonicaid/context-adapter/statuses/07156d6122639c2dbd2df7cb4ac58cceacbe7b75"}}}}