{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/approval-api/pulls/comments/238461280","pull_request_review_id":181009201,"id":238461280,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzODQ2MTI4MA==","diff_hunk":"@@ -11,7 +11,8 @@\n \n \n class Workflowgroup < ApplicationRecord\n+  acts_as_tenant(:tenant)","path":"app/models/workflowgroup.rb","position":4,"original_position":4,"commit_id":"7b015294392db1aaadbb47d6d7f38a8c8dcdc37c","original_commit_id":"7b015294392db1aaadbb47d6d7f38a8c8dcdc37c","user":{"login":"hsong-rh","id":12900250,"node_id":"MDQ6VXNlcjEyOTAwMjUw","avatar_url":"https://avatars2.githubusercontent.com/u/12900250?v=4","gravatar_id":"","url":"https://api.github.com/users/hsong-rh","html_url":"https://github.com/hsong-rh","followers_url":"https://api.github.com/users/hsong-rh/followers","following_url":"https://api.github.com/users/hsong-rh/following{/other_user}","gists_url":"https://api.github.com/users/hsong-rh/gists{/gist_id}","starred_url":"https://api.github.com/users/hsong-rh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsong-rh/subscriptions","organizations_url":"https://api.github.com/users/hsong-rh/orgs","repos_url":"https://api.github.com/users/hsong-rh/repos","events_url":"https://api.github.com/users/hsong-rh/events{/privacy}","received_events_url":"https://api.github.com/users/hsong-rh/received_events","type":"User","site_admin":false},"body":"@bzwei My understanding is yes. Workflow and Group need to link to each other with same tenant, right?","created_at":"2018-12-03T22:21:54Z","updated_at":"2018-12-03T22:21:54Z","html_url":"https://github.com/ManageIQ/approval-api/pull/25#discussion_r238461280","pull_request_url":"https://api.github.com/repos/ManageIQ/approval-api/pulls/25","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/approval-api/pulls/comments/238461280"},"html":{"href":"https://github.com/ManageIQ/approval-api/pull/25#discussion_r238461280"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/approval-api/pulls/25"}},"in_reply_to_id":238443089},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/approval-api/pulls/25","id":234450776,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0NDUwNzc2","html_url":"https://github.com/ManageIQ/approval-api/pull/25","diff_url":"https://github.com/ManageIQ/approval-api/pull/25.diff","patch_url":"https://github.com/ManageIQ/approval-api/pull/25.patch","issue_url":"https://api.github.com/repos/ManageIQ/approval-api/issues/25","number":25,"state":"open","locked":false,"title":"Added multiple tenants support in Approval APIs","user":{"login":"hsong-rh","id":12900250,"node_id":"MDQ6VXNlcjEyOTAwMjUw","avatar_url":"https://avatars2.githubusercontent.com/u/12900250?v=4","gravatar_id":"","url":"https://api.github.com/users/hsong-rh","html_url":"https://github.com/hsong-rh","followers_url":"https://api.github.com/users/hsong-rh/followers","following_url":"https://api.github.com/users/hsong-rh/following{/other_user}","gists_url":"https://api.github.com/users/hsong-rh/gists{/gist_id}","starred_url":"https://api.github.com/users/hsong-rh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsong-rh/subscriptions","organizations_url":"https://api.github.com/users/hsong-rh/orgs","repos_url":"https://api.github.com/users/hsong-rh/repos","events_url":"https://api.github.com/users/hsong-rh/events{/privacy}","received_events_url":"https://api.github.com/users/hsong-rh/received_events","type":"User","site_admin":false},"body":"Added multiple tenants support in models and schema. The changes in the controller will wait until user/admin/approver authentication logic is ready.","created_at":"2018-11-28T22:49:10Z","updated_at":"2018-12-03T22:21:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ab7adc90eae9eee31706be214a5528df84cb2b26","assignee":{"login":"gmcculloug","id":2591569,"node_id":"MDQ6VXNlcjI1OTE1Njk=","avatar_url":"https://avatars0.githubusercontent.com/u/2591569?v=4","gravatar_id":"","url":"https://api.github.com/users/gmcculloug","html_url":"https://github.com/gmcculloug","followers_url":"https://api.github.com/users/gmcculloug/followers","following_url":"https://api.github.com/users/gmcculloug/following{/other_user}","gists_url":"https://api.github.com/users/gmcculloug/gists{/gist_id}","starred_url":"https://api.github.com/users/gmcculloug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmcculloug/subscriptions","organizations_url":"https://api.github.com/users/gmcculloug/orgs","repos_url":"https://api.github.com/users/gmcculloug/repos","events_url":"https://api.github.com/users/gmcculloug/events{/privacy}","received_events_url":"https://api.github.com/users/gmcculloug/received_events","type":"User","site_admin":false},"assignees":[{"login":"gmcculloug","id":2591569,"node_id":"MDQ6VXNlcjI1OTE1Njk=","avatar_url":"https://avatars0.githubusercontent.com/u/2591569?v=4","gravatar_id":"","url":"https://api.github.com/users/gmcculloug","html_url":"https://github.com/gmcculloug","followers_url":"https://api.github.com/users/gmcculloug/followers","following_url":"https://api.github.com/users/gmcculloug/following{/other_user}","gists_url":"https://api.github.com/users/gmcculloug/gists{/gist_id}","starred_url":"https://api.github.com/users/gmcculloug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmcculloug/subscriptions","organizations_url":"https://api.github.com/users/gmcculloug/orgs","repos_url":"https://api.github.com/users/gmcculloug/repos","events_url":"https://api.github.com/users/gmcculloug/events{/privacy}","received_events_url":"https://api.github.com/users/gmcculloug/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"syncrou","id":697347,"node_id":"MDQ6VXNlcjY5NzM0Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/697347?v=4","gravatar_id":"","url":"https://api.github.com/users/syncrou","html_url":"https://github.com/syncrou","followers_url":"https://api.github.com/users/syncrou/followers","following_url":"https://api.github.com/users/syncrou/following{/other_user}","gists_url":"https://api.github.com/users/syncrou/gists{/gist_id}","starred_url":"https://api.github.com/users/syncrou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syncrou/subscriptions","organizations_url":"https://api.github.com/users/syncrou/orgs","repos_url":"https://api.github.com/users/syncrou/repos","events_url":"https://api.github.com/users/syncrou/events{/privacy}","received_events_url":"https://api.github.com/users/syncrou/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/approval-api/pulls/25/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/approval-api/pulls/25/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/approval-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/approval-api/issues/25/comments","statuses_url":"https://api.github.com/repos/ManageIQ/approval-api/statuses/7b015294392db1aaadbb47d6d7f38a8c8dcdc37c","head":{"label":"hsong-rh:add_tenant_support","ref":"add_tenant_support","sha":"7b015294392db1aaadbb47d6d7f38a8c8dcdc37c","user":{"login":"hsong-rh","id":12900250,"node_id":"MDQ6VXNlcjEyOTAwMjUw","avatar_url":"https://avatars2.githubusercontent.com/u/12900250?v=4","gravatar_id":"","url":"https://api.github.com/users/hsong-rh","html_url":"https://github.com/hsong-rh","followers_url":"https://api.github.com/users/hsong-rh/followers","following_url":"https://api.github.com/users/hsong-rh/following{/other_user}","gists_url":"https://api.github.com/users/hsong-rh/gists{/gist_id}","starred_url":"https://api.github.com/users/hsong-rh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsong-rh/subscriptions","organizations_url":"https://api.github.com/users/hsong-rh/orgs","repos_url":"https://api.github.com/users/hsong-rh/repos","events_url":"https://api.github.com/users/hsong-rh/events{/privacy}","received_events_url":"https://api.github.com/users/hsong-rh/received_events","type":"User","site_admin":false},"repo":{"id":150164504,"node_id":"MDEwOlJlcG9zaXRvcnkxNTAxNjQ1MDQ=","name":"approval-api","full_name":"hsong-rh/approval-api","private":false,"owner":{"login":"hsong-rh","id":12900250,"node_id":"MDQ6VXNlcjEyOTAwMjUw","avatar_url":"https://avatars2.githubusercontent.com/u/12900250?v=4","gravatar_id":"","url":"https://api.github.com/users/hsong-rh","html_url":"https://github.com/hsong-rh","followers_url":"https://api.github.com/users/hsong-rh/followers","following_url":"https://api.github.com/users/hsong-rh/following{/other_user}","gists_url":"https://api.github.com/users/hsong-rh/gists{/gist_id}","starred_url":"https://api.github.com/users/hsong-rh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsong-rh/subscriptions","organizations_url":"https://api.github.com/users/hsong-rh/orgs","repos_url":"https://api.github.com/users/hsong-rh/repos","events_url":"https://api.github.com/users/hsong-rh/events{/privacy}","received_events_url":"https://api.github.com/users/hsong-rh/received_events","type":"User","site_admin":false},"html_url":"https://github.com/hsong-rh/approval-api","description":null,"fork":true,"url":"https://api.github.com/repos/hsong-rh/approval-api","forks_url":"https://api.github.com/repos/hsong-rh/approval-api/forks","keys_url":"https://api.github.com/repos/hsong-rh/approval-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hsong-rh/approval-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hsong-rh/approval-api/teams","hooks_url":"https://api.github.com/repos/hsong-rh/approval-api/hooks","issue_events_url":"https://api.github.com/repos/hsong-rh/approval-api/issues/events{/number}","events_url":"https://api.github.com/repos/hsong-rh/approval-api/events","assignees_url":"https://api.github.com/repos/hsong-rh/approval-api/assignees{/user}","branches_url":"https://api.github.com/repos/hsong-rh/approval-api/branches{/branch}","tags_url":"https://api.github.com/repos/hsong-rh/approval-api/tags","blobs_url":"https://api.github.com/repos/hsong-rh/approval-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hsong-rh/approval-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hsong-rh/approval-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/hsong-rh/approval-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hsong-rh/approval-api/statuses/{sha}","languages_url":"https://api.github.com/repos/hsong-rh/approval-api/languages","stargazers_url":"https://api.github.com/repos/hsong-rh/approval-api/stargazers","contributors_url":"https://api.github.com/repos/hsong-rh/approval-api/contributors","subscribers_url":"https://api.github.com/repos/hsong-rh/approval-api/subscribers","subscription_url":"https://api.github.com/repos/hsong-rh/approval-api/subscription","commits_url":"https://api.github.com/repos/hsong-rh/approval-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/hsong-rh/approval-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/hsong-rh/approval-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/hsong-rh/approval-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/hsong-rh/approval-api/contents/{+path}","compare_url":"https://api.github.com/repos/hsong-rh/approval-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hsong-rh/approval-api/merges","archive_url":"https://api.github.com/repos/hsong-rh/approval-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hsong-rh/approval-api/downloads","issues_url":"https://api.github.com/repos/hsong-rh/approval-api/issues{/number}","pulls_url":"https://api.github.com/repos/hsong-rh/approval-api/pulls{/number}","milestones_url":"https://api.github.com/repos/hsong-rh/approval-api/milestones{/number}","notifications_url":"https://api.github.com/repos/hsong-rh/approval-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hsong-rh/approval-api/labels{/name}","releases_url":"https://api.github.com/repos/hsong-rh/approval-api/releases{/id}","deployments_url":"https://api.github.com/repos/hsong-rh/approval-api/deployments","created_at":"2018-09-24T20:29:15Z","updated_at":"2018-11-02T12:24:17Z","pushed_at":"2018-12-03T15:01:52Z","git_url":"git://github.com/hsong-rh/approval-api.git","ssh_url":"git@github.com:hsong-rh/approval-api.git","clone_url":"https://github.com/hsong-rh/approval-api.git","svn_url":"https://github.com/hsong-rh/approval-api","homepage":null,"size":104,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ManageIQ:master","ref":"master","sha":"d835e43d2a29731f177450945782748514c7d9db","user":{"login":"ManageIQ","id":1125575,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjU1NzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1125575?v=4","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"repo":{"id":150161838,"node_id":"MDEwOlJlcG9zaXRvcnkxNTAxNjE4Mzg=","name":"approval-api","full_name":"ManageIQ/approval-api","private":false,"owner":{"login":"ManageIQ","id":1125575,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMjU1NzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1125575?v=4","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ManageIQ/approval-api","description":null,"fork":false,"url":"https://api.github.com/repos/ManageIQ/approval-api","forks_url":"https://api.github.com/repos/ManageIQ/approval-api/forks","keys_url":"https://api.github.com/repos/ManageIQ/approval-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/approval-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/approval-api/teams","hooks_url":"https://api.github.com/repos/ManageIQ/approval-api/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/approval-api/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/approval-api/events","assignees_url":"https://api.github.com/repos/ManageIQ/approval-api/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/approval-api/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/approval-api/tags","blobs_url":"https://api.github.com/repos/ManageIQ/approval-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/approval-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/approval-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/approval-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/approval-api/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/approval-api/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/approval-api/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/approval-api/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/approval-api/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/approval-api/subscription","commits_url":"https://api.github.com/repos/ManageIQ/approval-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/approval-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/approval-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/approval-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/approval-api/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/approval-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/approval-api/merges","archive_url":"https://api.github.com/repos/ManageIQ/approval-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/approval-api/downloads","issues_url":"https://api.github.com/repos/ManageIQ/approval-api/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/approval-api/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/approval-api/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/approval-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/approval-api/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/approval-api/releases{/id}","deployments_url":"https://api.github.com/repos/ManageIQ/approval-api/deployments","created_at":"2018-09-24T20:07:02Z","updated_at":"2018-11-30T14:50:34Z","pushed_at":"2018-12-03T15:01:53Z","git_url":"git://github.com/ManageIQ/approval-api.git","ssh_url":"git@github.com:ManageIQ/approval-api.git","clone_url":"https://github.com/ManageIQ/approval-api.git","svn_url":"https://github.com/ManageIQ/approval-api","homepage":null,"size":108,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":5,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/approval-api/pulls/25"},"html":{"href":"https://github.com/ManageIQ/approval-api/pull/25"},"issue":{"href":"https://api.github.com/repos/ManageIQ/approval-api/issues/25"},"comments":{"href":"https://api.github.com/repos/ManageIQ/approval-api/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/approval-api/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/approval-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/approval-api/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/approval-api/statuses/7b015294392db1aaadbb47d6d7f38a8c8dcdc37c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"hsong-rh"}}