{"action":"created","comment":{"url":"https://api.github.com/repos/dojot/flowbroker/pulls/comments/218878349","pull_request_review_id":156915934,"id":218878349,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODg3ODM0OQ==","diff_hunk":"@@ -35,6 +35,25 @@ module.exports = class ContextHandler {\n       this.client = contextClient;\n   }\n \n+  /**\n+   * @description This method gets a specified context into tenant layer\n+   * @param {string} contextName The desirable context name\n+   * @param {string} tenant The tenant who's the client belongs\n+   * @returns a promise that:\n+   * on success:\n+   * gives an array which:\n+   *   the first position is the context id, the user must store it to use in the\n+   *     saveContext method;\n+   *   the second position is an object with context content, the user can modify\n+   *     it as your wish\n+   * WARNING: you must call the saveContext method after use the context\n+   * on failure:\n+   *   gives a string the describes the error","path":"lib/ContextHandler.js","position":28,"original_position":28,"commit_id":"7d0468350d688e9ac58e46cb6af498d6c9eb88cf","original_commit_id":"7d0468350d688e9ac58e46cb6af498d6c9eb88cf","user":{"login":"rascaraficci","id":31006659,"node_id":"MDQ6VXNlcjMxMDA2NjU5","avatar_url":"https://avatars3.githubusercontent.com/u/31006659?v=4","gravatar_id":"","url":"https://api.github.com/users/rascaraficci","html_url":"https://github.com/rascaraficci","followers_url":"https://api.github.com/users/rascaraficci/followers","following_url":"https://api.github.com/users/rascaraficci/following{/other_user}","gists_url":"https://api.github.com/users/rascaraficci/gists{/gist_id}","starred_url":"https://api.github.com/users/rascaraficci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rascaraficci/subscriptions","organizations_url":"https://api.github.com/users/rascaraficci/orgs","repos_url":"https://api.github.com/users/rascaraficci/repos","events_url":"https://api.github.com/users/rascaraficci/events{/privacy}","received_events_url":"https://api.github.com/users/rascaraficci/received_events","type":"User","site_admin":false},"body":"gives a string that describes the error","created_at":"2018-09-19T16:41:01Z","updated_at":"2018-09-19T16:43:47Z","html_url":"https://github.com/dojot/flowbroker/pull/64#discussion_r218878349","pull_request_url":"https://api.github.com/repos/dojot/flowbroker/pulls/64","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/dojot/flowbroker/pulls/comments/218878349"},"html":{"href":"https://github.com/dojot/flowbroker/pull/64#discussion_r218878349"},"pull_request":{"href":"https://api.github.com/repos/dojot/flowbroker/pulls/64"}}},"pull_request":{"url":"https://api.github.com/repos/dojot/flowbroker/pulls/64","id":215011744,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1MDExNzQ0","html_url":"https://github.com/dojot/flowbroker/pull/64","diff_url":"https://github.com/dojot/flowbroker/pull/64.diff","patch_url":"https://github.com/dojot/flowbroker/pull/64.patch","issue_url":"https://api.github.com/repos/dojot/flowbroker/issues/64","number":64,"state":"open","locked":false,"title":"Adds the tenant context layer to the lib","user":{"login":"raulnegreiros","id":21104864,"node_id":"MDQ6VXNlcjIxMTA0ODY0","avatar_url":"https://avatars1.githubusercontent.com/u/21104864?v=4","gravatar_id":"","url":"https://api.github.com/users/raulnegreiros","html_url":"https://github.com/raulnegreiros","followers_url":"https://api.github.com/users/raulnegreiros/followers","following_url":"https://api.github.com/users/raulnegreiros/following{/other_user}","gists_url":"https://api.github.com/users/raulnegreiros/gists{/gist_id}","starred_url":"https://api.github.com/users/raulnegreiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raulnegreiros/subscriptions","organizations_url":"https://api.github.com/users/raulnegreiros/orgs","repos_url":"https://api.github.com/users/raulnegreiros/repos","events_url":"https://api.github.com/users/raulnegreiros/events{/privacy}","received_events_url":"https://api.github.com/users/raulnegreiros/received_events","type":"User","site_admin":false},"body":"* **Please check if the PR fulfills these requirements**\r\n- [ ] Tests for the changes have been added (for bug fixes / features)\r\n- [ ] Docs have been added / updated (for bug fixes / features)\r\n\r\n\r\n* **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)\r\nfeature\r\n\r\n\r\n* **What is the current behavior?** (You can also link to an open issue here)\r\nIs not possible to create a context in the tenant layer\r\n\r\n\r\n* **What is the new behavior (if this is a feature change)?**\r\nBecome possible to create a context in the tenant layer\r\n\r\n\r\n* **Does this PR introduce a breaking change?** (What changes might users need to make in their application due to this PR?)\r\nNo\r\n\r\n* **Is there any issue related to this PR in other repository?** (such as dojot/dojot)\r\n\r\n\r\n* **Other information**:\r\n","created_at":"2018-09-12T15:50:46Z","updated_at":"2018-09-19T16:43:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eaee412d9f287cd3b891c37cf50e94aaf49d0962","assignee":{"login":"raulnegreiros","id":21104864,"node_id":"MDQ6VXNlcjIxMTA0ODY0","avatar_url":"https://avatars1.githubusercontent.com/u/21104864?v=4","gravatar_id":"","url":"https://api.github.com/users/raulnegreiros","html_url":"https://github.com/raulnegreiros","followers_url":"https://api.github.com/users/raulnegreiros/followers","following_url":"https://api.github.com/users/raulnegreiros/following{/other_user}","gists_url":"https://api.github.com/users/raulnegreiros/gists{/gist_id}","starred_url":"https://api.github.com/users/raulnegreiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raulnegreiros/subscriptions","organizations_url":"https://api.github.com/users/raulnegreiros/orgs","repos_url":"https://api.github.com/users/raulnegreiros/repos","events_url":"https://api.github.com/users/raulnegreiros/events{/privacy}","received_events_url":"https://api.github.com/users/raulnegreiros/received_events","type":"User","site_admin":false},"assignees":[{"login":"raulnegreiros","id":21104864,"node_id":"MDQ6VXNlcjIxMTA0ODY0","avatar_url":"https://avatars1.githubusercontent.com/u/21104864?v=4","gravatar_id":"","url":"https://api.github.com/users/raulnegreiros","html_url":"https://github.com/raulnegreiros","followers_url":"https://api.github.com/users/raulnegreiros/followers","following_url":"https://api.github.com/users/raulnegreiros/following{/other_user}","gists_url":"https://api.github.com/users/raulnegreiros/gists{/gist_id}","starred_url":"https://api.github.com/users/raulnegreiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raulnegreiros/subscriptions","organizations_url":"https://api.github.com/users/raulnegreiros/orgs","repos_url":"https://api.github.com/users/raulnegreiros/repos","events_url":"https://api.github.com/users/raulnegreiros/events{/privacy}","received_events_url":"https://api.github.com/users/raulnegreiros/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":860438538,"node_id":"MDU6TGFiZWw4NjA0Mzg1Mzg=","url":"https://api.github.com/repos/dojot/flowbroker/labels/Needs:Review","name":"Needs:Review","color":"ededed","default":false}],"milestone":{"url":"https://api.github.com/repos/dojot/flowbroker/milestones/3","html_url":"https://github.com/dojot/flowbroker/milestone/3","labels_url":"https://api.github.com/repos/dojot/flowbroker/milestones/3/labels","id":3563449,"node_id":"MDk6TWlsZXN0b25lMzU2MzQ0OQ==","number":3,"title":"next-version","description":"All PR to be included in next version of flowbroker.","creator":{"login":"giovannicuriel","id":6285982,"node_id":"MDQ6VXNlcjYyODU5ODI=","avatar_url":"https://avatars3.githubusercontent.com/u/6285982?v=4","gravatar_id":"","url":"https://api.github.com/users/giovannicuriel","html_url":"https://github.com/giovannicuriel","followers_url":"https://api.github.com/users/giovannicuriel/followers","following_url":"https://api.github.com/users/giovannicuriel/following{/other_user}","gists_url":"https://api.github.com/users/giovannicuriel/gists{/gist_id}","starred_url":"https://api.github.com/users/giovannicuriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giovannicuriel/subscriptions","organizations_url":"https://api.github.com/users/giovannicuriel/orgs","repos_url":"https://api.github.com/users/giovannicuriel/repos","events_url":"https://api.github.com/users/giovannicuriel/events{/privacy}","received_events_url":"https://api.github.com/users/giovannicuriel/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":9,"state":"open","created_at":"2018-08-13T00:02:11Z","updated_at":"2018-09-12T16:36:14Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/dojot/flowbroker/pulls/64/commits","review_comments_url":"https://api.github.com/repos/dojot/flowbroker/pulls/64/comments","review_comment_url":"https://api.github.com/repos/dojot/flowbroker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dojot/flowbroker/issues/64/comments","statuses_url":"https://api.github.com/repos/dojot/flowbroker/statuses/7d0468350d688e9ac58e46cb6af498d6c9eb88cf","head":{"label":"raulnegreiros:ctx_tenant","ref":"ctx_tenant","sha":"7d0468350d688e9ac58e46cb6af498d6c9eb88cf","user":{"login":"raulnegreiros","id":21104864,"node_id":"MDQ6VXNlcjIxMTA0ODY0","avatar_url":"https://avatars1.githubusercontent.com/u/21104864?v=4","gravatar_id":"","url":"https://api.github.com/users/raulnegreiros","html_url":"https://github.com/raulnegreiros","followers_url":"https://api.github.com/users/raulnegreiros/followers","following_url":"https://api.github.com/users/raulnegreiros/following{/other_user}","gists_url":"https://api.github.com/users/raulnegreiros/gists{/gist_id}","starred_url":"https://api.github.com/users/raulnegreiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raulnegreiros/subscriptions","organizations_url":"https://api.github.com/users/raulnegreiros/orgs","repos_url":"https://api.github.com/users/raulnegreiros/repos","events_url":"https://api.github.com/users/raulnegreiros/events{/privacy}","received_events_url":"https://api.github.com/users/raulnegreiros/received_events","type":"User","site_admin":false},"repo":{"id":133350835,"node_id":"MDEwOlJlcG9zaXRvcnkxMzMzNTA4MzU=","name":"flowbroker","full_name":"raulnegreiros/flowbroker","private":false,"owner":{"login":"raulnegreiros","id":21104864,"node_id":"MDQ6VXNlcjIxMTA0ODY0","avatar_url":"https://avatars1.githubusercontent.com/u/21104864?v=4","gravatar_id":"","url":"https://api.github.com/users/raulnegreiros","html_url":"https://github.com/raulnegreiros","followers_url":"https://api.github.com/users/raulnegreiros/followers","following_url":"https://api.github.com/users/raulnegreiros/following{/other_user}","gists_url":"https://api.github.com/users/raulnegreiros/gists{/gist_id}","starred_url":"https://api.github.com/users/raulnegreiros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raulnegreiros/subscriptions","organizations_url":"https://api.github.com/users/raulnegreiros/orgs","repos_url":"https://api.github.com/users/raulnegreiros/repos","events_url":"https://api.github.com/users/raulnegreiros/events{/privacy}","received_events_url":"https://api.github.com/users/raulnegreiros/received_events","type":"User","site_admin":false},"html_url":"https://github.com/raulnegreiros/flowbroker","description":"Flow processing implementation, with hot deployment capabilities","fork":true,"url":"https://api.github.com/repos/raulnegreiros/flowbroker","forks_url":"https://api.github.com/repos/raulnegreiros/flowbroker/forks","keys_url":"https://api.github.com/repos/raulnegreiros/flowbroker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raulnegreiros/flowbroker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raulnegreiros/flowbroker/teams","hooks_url":"https://api.github.com/repos/raulnegreiros/flowbroker/hooks","issue_events_url":"https://api.github.com/repos/raulnegreiros/flowbroker/issues/events{/number}","events_url":"https://api.github.com/repos/raulnegreiros/flowbroker/events","assignees_url":"https://api.github.com/repos/raulnegreiros/flowbroker/assignees{/user}","branches_url":"https://api.github.com/repos/raulnegreiros/flowbroker/branches{/branch}","tags_url":"https://api.github.com/repos/raulnegreiros/flowbroker/tags","blobs_url":"https://api.github.com/repos/raulnegreiros/flowbroker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raulnegreiros/flowbroker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raulnegreiros/flowbroker/git/refs{/sha}","trees_url":"https://api.github.com/repos/raulnegreiros/flowbroker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raulnegreiros/flowbroker/statuses/{sha}","languages_url":"https://api.github.com/repos/raulnegreiros/flowbroker/languages","stargazers_url":"https://api.github.com/repos/raulnegreiros/flowbroker/stargazers","contributors_url":"https://api.github.com/repos/raulnegreiros/flowbroker/contributors","subscribers_url":"https://api.github.com/repos/raulnegreiros/flowbroker/subscribers","subscription_url":"https://api.github.com/repos/raulnegreiros/flowbroker/subscription","commits_url":"https://api.github.com/repos/raulnegreiros/flowbroker/commits{/sha}","git_commits_url":"https://api.github.com/repos/raulnegreiros/flowbroker/git/commits{/sha}","comments_url":"https://api.github.com/repos/raulnegreiros/flowbroker/comments{/number}","issue_comment_url":"https://api.github.com/repos/raulnegreiros/flowbroker/issues/comments{/number}","contents_url":"https://api.github.com/repos/raulnegreiros/flowbroker/contents/{+path}","compare_url":"https://api.github.com/repos/raulnegreiros/flowbroker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raulnegreiros/flowbroker/merges","archive_url":"https://api.github.com/repos/raulnegreiros/flowbroker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raulnegreiros/flowbroker/downloads","issues_url":"https://api.github.com/repos/raulnegreiros/flowbroker/issues{/number}","pulls_url":"https://api.github.com/repos/raulnegreiros/flowbroker/pulls{/number}","milestones_url":"https://api.github.com/repos/raulnegreiros/flowbroker/milestones{/number}","notifications_url":"https://api.github.com/repos/raulnegreiros/flowbroker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raulnegreiros/flowbroker/labels{/name}","releases_url":"https://api.github.com/repos/raulnegreiros/flowbroker/releases{/id}","deployments_url":"https://api.github.com/repos/raulnegreiros/flowbroker/deployments","created_at":"2018-05-14T11:31:07Z","updated_at":"2018-07-10T19:38:50Z","pushed_at":"2018-09-12T15:47:46Z","git_url":"git://github.com/raulnegreiros/flowbroker.git","ssh_url":"git@github.com:raulnegreiros/flowbroker.git","clone_url":"https://github.com/raulnegreiros/flowbroker.git","svn_url":"https://github.com/raulnegreiros/flowbroker","homepage":null,"size":2209,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dojot:master","ref":"master","sha":"f055a8b618aa605d80e6dea3b51a547bce3d2276","user":{"login":"dojot","id":31219238,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMjE5MjM4","avatar_url":"https://avatars3.githubusercontent.com/u/31219238?v=4","gravatar_id":"","url":"https://api.github.com/users/dojot","html_url":"https://github.com/dojot","followers_url":"https://api.github.com/users/dojot/followers","following_url":"https://api.github.com/users/dojot/following{/other_user}","gists_url":"https://api.github.com/users/dojot/gists{/gist_id}","starred_url":"https://api.github.com/users/dojot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dojot/subscriptions","organizations_url":"https://api.github.com/users/dojot/orgs","repos_url":"https://api.github.com/users/dojot/repos","events_url":"https://api.github.com/users/dojot/events{/privacy}","received_events_url":"https://api.github.com/users/dojot/received_events","type":"Organization","site_admin":false},"repo":{"id":124060742,"node_id":"MDEwOlJlcG9zaXRvcnkxMjQwNjA3NDI=","name":"flowbroker","full_name":"dojot/flowbroker","private":false,"owner":{"login":"dojot","id":31219238,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxMjE5MjM4","avatar_url":"https://avatars3.githubusercontent.com/u/31219238?v=4","gravatar_id":"","url":"https://api.github.com/users/dojot","html_url":"https://github.com/dojot","followers_url":"https://api.github.com/users/dojot/followers","following_url":"https://api.github.com/users/dojot/following{/other_user}","gists_url":"https://api.github.com/users/dojot/gists{/gist_id}","starred_url":"https://api.github.com/users/dojot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dojot/subscriptions","organizations_url":"https://api.github.com/users/dojot/orgs","repos_url":"https://api.github.com/users/dojot/repos","events_url":"https://api.github.com/users/dojot/events{/privacy}","received_events_url":"https://api.github.com/users/dojot/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/dojot/flowbroker","description":"Flow processing implementation, with hot deployment capabilities","fork":false,"url":"https://api.github.com/repos/dojot/flowbroker","forks_url":"https://api.github.com/repos/dojot/flowbroker/forks","keys_url":"https://api.github.com/repos/dojot/flowbroker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dojot/flowbroker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dojot/flowbroker/teams","hooks_url":"https://api.github.com/repos/dojot/flowbroker/hooks","issue_events_url":"https://api.github.com/repos/dojot/flowbroker/issues/events{/number}","events_url":"https://api.github.com/repos/dojot/flowbroker/events","assignees_url":"https://api.github.com/repos/dojot/flowbroker/assignees{/user}","branches_url":"https://api.github.com/repos/dojot/flowbroker/branches{/branch}","tags_url":"https://api.github.com/repos/dojot/flowbroker/tags","blobs_url":"https://api.github.com/repos/dojot/flowbroker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dojot/flowbroker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dojot/flowbroker/git/refs{/sha}","trees_url":"https://api.github.com/repos/dojot/flowbroker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dojot/flowbroker/statuses/{sha}","languages_url":"https://api.github.com/repos/dojot/flowbroker/languages","stargazers_url":"https://api.github.com/repos/dojot/flowbroker/stargazers","contributors_url":"https://api.github.com/repos/dojot/flowbroker/contributors","subscribers_url":"https://api.github.com/repos/dojot/flowbroker/subscribers","subscription_url":"https://api.github.com/repos/dojot/flowbroker/subscription","commits_url":"https://api.github.com/repos/dojot/flowbroker/commits{/sha}","git_commits_url":"https://api.github.com/repos/dojot/flowbroker/git/commits{/sha}","comments_url":"https://api.github.com/repos/dojot/flowbroker/comments{/number}","issue_comment_url":"https://api.github.com/repos/dojot/flowbroker/issues/comments{/number}","contents_url":"https://api.github.com/repos/dojot/flowbroker/contents/{+path}","compare_url":"https://api.github.com/repos/dojot/flowbroker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dojot/flowbroker/merges","archive_url":"https://api.github.com/repos/dojot/flowbroker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dojot/flowbroker/downloads","issues_url":"https://api.github.com/repos/dojot/flowbroker/issues{/number}","pulls_url":"https://api.github.com/repos/dojot/flowbroker/pulls{/number}","milestones_url":"https://api.github.com/repos/dojot/flowbroker/milestones{/number}","notifications_url":"https://api.github.com/repos/dojot/flowbroker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dojot/flowbroker/labels{/name}","releases_url":"https://api.github.com/repos/dojot/flowbroker/releases{/id}","deployments_url":"https://api.github.com/repos/dojot/flowbroker/deployments","created_at":"2018-03-06T10:20:19Z","updated_at":"2018-09-12T14:18:24Z","pushed_at":"2018-09-13T15:36:50Z","git_url":"git://github.com/dojot/flowbroker.git","ssh_url":"git@github.com:dojot/flowbroker.git","clone_url":"https://github.com/dojot/flowbroker.git","svn_url":"https://github.com/dojot/flowbroker","homepage":null,"size":2206,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":14,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dojot/flowbroker/pulls/64"},"html":{"href":"https://github.com/dojot/flowbroker/pull/64"},"issue":{"href":"https://api.github.com/repos/dojot/flowbroker/issues/64"},"comments":{"href":"https://api.github.com/repos/dojot/flowbroker/issues/64/comments"},"review_comments":{"href":"https://api.github.com/repos/dojot/flowbroker/pulls/64/comments"},"review_comment":{"href":"https://api.github.com/repos/dojot/flowbroker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dojot/flowbroker/pulls/64/commits"},"statuses":{"href":"https://api.github.com/repos/dojot/flowbroker/statuses/7d0468350d688e9ac58e46cb6af498d6c9eb88cf"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"rascaraficci"}}