{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/pulls/comments/227029208","pull_request_review_id":166978292,"id":227029208,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzAyOTIwOA==","diff_hunk":"@@ -0,0 +1,22 @@\n+module TopologicalInventory\n+  module Persister\n+    module ArHelper\n+      def self.load_environment!\n+        require \"active_record\"\n+\n+        app_root = Pathname.new(__dir__).join(\"../../../\")","path":"lib/topological_inventory/persister/ar_helper.rb","position":7,"original_position":7,"commit_id":"77b4b5f19835884f2390ea37387ab3752ae92bf2","original_commit_id":"77b4b5f19835884f2390ea37387ab3752ae92bf2","user":{"login":"bdunne","id":651659,"node_id":"MDQ6VXNlcjY1MTY1OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/651659?v=4","gravatar_id":"","url":"https://api.github.com/users/bdunne","html_url":"https://github.com/bdunne","followers_url":"https://api.github.com/users/bdunne/followers","following_url":"https://api.github.com/users/bdunne/following{/other_user}","gists_url":"https://api.github.com/users/bdunne/gists{/gist_id}","starred_url":"https://api.github.com/users/bdunne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdunne/subscriptions","organizations_url":"https://api.github.com/users/bdunne/orgs","repos_url":"https://api.github.com/users/bdunne/repos","events_url":"https://api.github.com/users/bdunne/events{/privacy}","received_events_url":"https://api.github.com/users/bdunne/received_events","type":"User","site_admin":false},"body":"`Pathname.new(__dir__).join(\"../../../\").expand_path`","created_at":"2018-10-22T15:44:18Z","updated_at":"2018-10-22T15:44:19Z","html_url":"https://github.com/ManageIQ/topological_inventory-core/pull/26#discussion_r227029208","pull_request_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/pulls/26","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/topological_inventory-core/pulls/comments/227029208"},"html":{"href":"https://github.com/ManageIQ/topological_inventory-core/pull/26#discussion_r227029208"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/topological_inventory-core/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/pulls/26","id":224717165,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NzE3MTY1","html_url":"https://github.com/ManageIQ/topological_inventory-core/pull/26","diff_url":"https://github.com/ManageIQ/topological_inventory-core/pull/26.diff","patch_url":"https://github.com/ManageIQ/topological_inventory-core/pull/26.patch","issue_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/issues/26","number":26,"state":"open","locked":false,"title":"Move ArHelper to TopologicalInventory::Persister","user":{"login":"agrare","id":12851112,"node_id":"MDQ6VXNlcjEyODUxMTEy","avatar_url":"https://avatars2.githubusercontent.com/u/12851112?v=4","gravatar_id":"","url":"https://api.github.com/users/agrare","html_url":"https://github.com/agrare","followers_url":"https://api.github.com/users/agrare/followers","following_url":"https://api.github.com/users/agrare/following{/other_user}","gists_url":"https://api.github.com/users/agrare/gists{/gist_id}","starred_url":"https://api.github.com/users/agrare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agrare/subscriptions","organizations_url":"https://api.github.com/users/agrare/orgs","repos_url":"https://api.github.com/users/agrare/repos","events_url":"https://api.github.com/users/agrare/events{/privacy}","received_events_url":"https://api.github.com/users/agrare/received_events","type":"User","site_admin":false},"body":"Move the ArHelper module under TopologicalInventory::Persister and move\ninto a method so that it isn't accidentally run when required.","created_at":"2018-10-22T15:24:56Z","updated_at":"2018-10-22T15:44:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3ab0f27b31b4ce1c07615159adba79b8c99b7d9","assignee":{"login":"bdunne","id":651659,"node_id":"MDQ6VXNlcjY1MTY1OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/651659?v=4","gravatar_id":"","url":"https://api.github.com/users/bdunne","html_url":"https://github.com/bdunne","followers_url":"https://api.github.com/users/bdunne/followers","following_url":"https://api.github.com/users/bdunne/following{/other_user}","gists_url":"https://api.github.com/users/bdunne/gists{/gist_id}","starred_url":"https://api.github.com/users/bdunne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdunne/subscriptions","organizations_url":"https://api.github.com/users/bdunne/orgs","repos_url":"https://api.github.com/users/bdunne/repos","events_url":"https://api.github.com/users/bdunne/events{/privacy}","received_events_url":"https://api.github.com/users/bdunne/received_events","type":"User","site_admin":false},"assignees":[{"login":"bdunne","id":651659,"node_id":"MDQ6VXNlcjY1MTY1OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/651659?v=4","gravatar_id":"","url":"https://api.github.com/users/bdunne","html_url":"https://github.com/bdunne","followers_url":"https://api.github.com/users/bdunne/followers","following_url":"https://api.github.com/users/bdunne/following{/other_user}","gists_url":"https://api.github.com/users/bdunne/gists{/gist_id}","starred_url":"https://api.github.com/users/bdunne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdunne/subscriptions","organizations_url":"https://api.github.com/users/bdunne/orgs","repos_url":"https://api.github.com/users/bdunne/repos","events_url":"https://api.github.com/users/bdunne/events{/privacy}","received_events_url":"https://api.github.com/users/bdunne/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/pulls/26/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/pulls/26/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/issues/26/comments","statuses_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/statuses/77b4b5f19835884f2390ea37387ab3752ae92bf2","head":{"label":"agrare:namespace_ar_helper","ref":"namespace_ar_helper","sha":"77b4b5f19835884f2390ea37387ab3752ae92bf2","user":{"login":"agrare","id":12851112,"node_id":"MDQ6VXNlcjEyODUxMTEy","avatar_url":"https://avatars2.githubusercontent.com/u/12851112?v=4","gravatar_id":"","url":"https://api.github.com/users/agrare","html_url":"https://github.com/agrare","followers_url":"https://api.github.com/users/agrare/followers","following_url":"https://api.github.com/users/agrare/following{/other_user}","gists_url":"https://api.github.com/users/agrare/gists{/gist_id}","starred_url":"https://api.github.com/users/agrare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agrare/subscriptions","organizations_url":"https://api.github.com/users/agrare/orgs","repos_url":"https://api.github.com/users/agrare/repos","events_url":"https://api.github.com/users/agrare/events{/privacy}","received_events_url":"https://api.github.com/users/agrare/received_events","type":"User","site_admin":false},"repo":{"id":152484435,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI0ODQ0MzU=","name":"topological_inventory-core","full_name":"agrare/topological_inventory-core","private":false,"owner":{"login":"agrare","id":12851112,"node_id":"MDQ6VXNlcjEyODUxMTEy","avatar_url":"https://avatars2.githubusercontent.com/u/12851112?v=4","gravatar_id":"","url":"https://api.github.com/users/agrare","html_url":"https://github.com/agrare","followers_url":"https://api.github.com/users/agrare/followers","following_url":"https://api.github.com/users/agrare/following{/other_user}","gists_url":"https://api.github.com/users/agrare/gists{/gist_id}","starred_url":"https://api.github.com/users/agrare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agrare/subscriptions","organizations_url":"https://api.github.com/users/agrare/orgs","repos_url":"https://api.github.com/users/agrare/repos","events_url":"https://api.github.com/users/agrare/events{/privacy}","received_events_url":"https://api.github.com/users/agrare/received_events","type":"User","site_admin":false},"html_url":"https://github.com/agrare/topological_inventory-core","description":null,"fork":true,"url":"https://api.github.com/repos/agrare/topological_inventory-core","forks_url":"https://api.github.com/repos/agrare/topological_inventory-core/forks","keys_url":"https://api.github.com/repos/agrare/topological_inventory-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/agrare/topological_inventory-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/agrare/topological_inventory-core/teams","hooks_url":"https://api.github.com/repos/agrare/topological_inventory-core/hooks","issue_events_url":"https://api.github.com/repos/agrare/topological_inventory-core/issues/events{/number}","events_url":"https://api.github.com/repos/agrare/topological_inventory-core/events","assignees_url":"https://api.github.com/repos/agrare/topological_inventory-core/assignees{/user}","branches_url":"https://api.github.com/repos/agrare/topological_inventory-core/branches{/branch}","tags_url":"https://api.github.com/repos/agrare/topological_inventory-core/tags","blobs_url":"https://api.github.com/repos/agrare/topological_inventory-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/agrare/topological_inventory-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/agrare/topological_inventory-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/agrare/topological_inventory-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/agrare/topological_inventory-core/statuses/{sha}","languages_url":"https://api.github.com/repos/agrare/topological_inventory-core/languages","stargazers_url":"https://api.github.com/repos/agrare/topological_inventory-core/stargazers","contributors_url":"https://api.github.com/repos/agrare/topological_inventory-core/contributors","subscribers_url":"https://api.github.com/repos/agrare/topological_inventory-core/subscribers","subscription_url":"https://api.github.com/repos/agrare/topological_inventory-core/subscription","commits_url":"https://api.github.com/repos/agrare/topological_inventory-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/agrare/topological_inventory-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/agrare/topological_inventory-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/agrare/topological_inventory-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/agrare/topological_inventory-core/contents/{+path}","compare_url":"https://api.github.com/repos/agrare/topological_inventory-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/agrare/topological_inventory-core/merges","archive_url":"https://api.github.com/repos/agrare/topological_inventory-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/agrare/topological_inventory-core/downloads","issues_url":"https://api.github.com/repos/agrare/topological_inventory-core/issues{/number}","pulls_url":"https://api.github.com/repos/agrare/topological_inventory-core/pulls{/number}","milestones_url":"https://api.github.com/repos/agrare/topological_inventory-core/milestones{/number}","notifications_url":"https://api.github.com/repos/agrare/topological_inventory-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/agrare/topological_inventory-core/labels{/name}","releases_url":"https://api.github.com/repos/agrare/topological_inventory-core/releases{/id}","deployments_url":"https://api.github.com/repos/agrare/topological_inventory-core/deployments","created_at":"2018-10-10T20:17:50Z","updated_at":"2018-10-18T18:09:06Z","pushed_at":"2018-10-22T15:32:13Z","git_url":"git://github.com/agrare/topological_inventory-core.git","ssh_url":"git@github.com:agrare/topological_inventory-core.git","clone_url":"https://github.com/agrare/topological_inventory-core.git","svn_url":"https://github.com/agrare/topological_inventory-core","homepage":null,"size":152,"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":{"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":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ManageIQ:master","ref":"master","sha":"b8d6d8ae4111c7c422ec4e6e5af4021a93e548ad","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":149643737,"node_id":"MDEwOlJlcG9zaXRvcnkxNDk2NDM3Mzc=","name":"topological_inventory-core","full_name":"ManageIQ/topological_inventory-core","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/topological_inventory-core","description":null,"fork":false,"url":"https://api.github.com/repos/ManageIQ/topological_inventory-core","forks_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/forks","keys_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/teams","hooks_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/events","assignees_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/tags","blobs_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/subscription","commits_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/merges","archive_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/downloads","issues_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/releases{/id}","deployments_url":"https://api.github.com/repos/ManageIQ/topological_inventory-core/deployments","created_at":"2018-09-20T17:10:19Z","updated_at":"2018-10-18T15:20:50Z","pushed_at":"2018-10-22T15:32:14Z","git_url":"git://github.com/ManageIQ/topological_inventory-core.git","ssh_url":"git@github.com:ManageIQ/topological_inventory-core.git","clone_url":"https://github.com/ManageIQ/topological_inventory-core.git","svn_url":"https://github.com/ManageIQ/topological_inventory-core","homepage":null,"size":120,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":7,"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":6,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/topological_inventory-core/pulls/26"},"html":{"href":"https://github.com/ManageIQ/topological_inventory-core/pull/26"},"issue":{"href":"https://api.github.com/repos/ManageIQ/topological_inventory-core/issues/26"},"comments":{"href":"https://api.github.com/repos/ManageIQ/topological_inventory-core/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/topological_inventory-core/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/topological_inventory-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/topological_inventory-core/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/topological_inventory-core/statuses/77b4b5f19835884f2390ea37387ab3752ae92bf2"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"bdunne"}}