{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/76688446","id":76688446,"diff_hunk":"@@ -0,0 +1,55 @@\n+class ChangeLoadBalancerListenerPortToPortRange < ActiveRecord::Migration[5.0]\n+  def change\n+    reversible do |dir|\n+      dir.up do\n+        # convert load_balancer_port and instance_port into ranges, preserving\n+        # existing values\n+        execute <<-SQL\n+          ALTER TABLE load_balancer_listeners\n+            ALTER COLUMN load_balancer_port SET DATA TYPE int4range","path":"db/migrate/20160825213523_change_load_balancer_listener_port_to_port_range.rb","position":9,"original_position":9,"commit_id":"31890390ae04bf8e1b1bfd788614741a5d013420","original_commit_id":"31890390ae04bf8e1b1bfd788614741a5d013420","user":{"login":"selmanj","id":798897,"avatar_url":"https://avatars.githubusercontent.com/u/798897?v=3","gravatar_id":"","url":"https://api.github.com/users/selmanj","html_url":"https://github.com/selmanj","followers_url":"https://api.github.com/users/selmanj/followers","following_url":"https://api.github.com/users/selmanj/following{/other_user}","gists_url":"https://api.github.com/users/selmanj/gists{/gist_id}","starred_url":"https://api.github.com/users/selmanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selmanj/subscriptions","organizations_url":"https://api.github.com/users/selmanj/orgs","repos_url":"https://api.github.com/users/selmanj/repos","events_url":"https://api.github.com/users/selmanj/events{/privacy}","received_events_url":"https://api.github.com/users/selmanj/received_events","type":"User","site_admin":false},"body":"Can you describe some of the intent of using arel? I don't actually see many examples of how to use arel to convert data (especially with a postgres specific type constructor).  I'm not sure either that the created arel code would be easier to read than the raw SQL to be executed.","created_at":"2016-08-29T21:12:38Z","updated_at":"2016-08-29T21:12:38Z","html_url":"https://github.com/ManageIQ/manageiq/pull/10804#discussion_r76688446","pull_request_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10804","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments/76688446"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/10804#discussion_r76688446"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10804"}}},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10804","id":82812710,"html_url":"https://github.com/ManageIQ/manageiq/pull/10804","diff_url":"https://github.com/ManageIQ/manageiq/pull/10804.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/10804.patch","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10804","number":10804,"state":"open","locked":false,"title":"Use a range of port numbers instead of a single port for load balancers","user":{"login":"selmanj","id":798897,"avatar_url":"https://avatars.githubusercontent.com/u/798897?v=3","gravatar_id":"","url":"https://api.github.com/users/selmanj","html_url":"https://github.com/selmanj","followers_url":"https://api.github.com/users/selmanj/followers","following_url":"https://api.github.com/users/selmanj/following{/other_user}","gists_url":"https://api.github.com/users/selmanj/gists{/gist_id}","starred_url":"https://api.github.com/users/selmanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selmanj/subscriptions","organizations_url":"https://api.github.com/users/selmanj/orgs","repos_url":"https://api.github.com/users/selmanj/repos","events_url":"https://api.github.com/users/selmanj/events{/privacy}","received_events_url":"https://api.github.com/users/selmanj/received_events","type":"User","site_admin":false},"body":"GCE forwarding rules allow you to specify a range of ports to be forwarded.  Since a single port can easily be represented in a range, we should update the ManageIQ abstraction as well.","created_at":"2016-08-25T23:55:23Z","updated_at":"2016-08-29T21:12:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1430f3118d63f99d0ccfb71f04858df84b0598ab","assignee":{"login":"Ladas","id":1737058,"avatar_url":"https://avatars.githubusercontent.com/u/1737058?v=3","gravatar_id":"","url":"https://api.github.com/users/Ladas","html_url":"https://github.com/Ladas","followers_url":"https://api.github.com/users/Ladas/followers","following_url":"https://api.github.com/users/Ladas/following{/other_user}","gists_url":"https://api.github.com/users/Ladas/gists{/gist_id}","starred_url":"https://api.github.com/users/Ladas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ladas/subscriptions","organizations_url":"https://api.github.com/users/Ladas/orgs","repos_url":"https://api.github.com/users/Ladas/repos","events_url":"https://api.github.com/users/Ladas/events{/privacy}","received_events_url":"https://api.github.com/users/Ladas/received_events","type":"User","site_admin":false},"assignees":[{"login":"Ladas","id":1737058,"avatar_url":"https://avatars.githubusercontent.com/u/1737058?v=3","gravatar_id":"","url":"https://api.github.com/users/Ladas","html_url":"https://github.com/Ladas","followers_url":"https://api.github.com/users/Ladas/followers","following_url":"https://api.github.com/users/Ladas/following{/other_user}","gists_url":"https://api.github.com/users/Ladas/gists{/gist_id}","starred_url":"https://api.github.com/users/Ladas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ladas/subscriptions","organizations_url":"https://api.github.com/users/Ladas/orgs","repos_url":"https://api.github.com/users/Ladas/repos","events_url":"https://api.github.com/users/Ladas/events{/privacy}","received_events_url":"https://api.github.com/users/Ladas/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10804/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10804/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/10804/comments","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/31890390ae04bf8e1b1bfd788614741a5d013420","head":{"label":"selmanj:convert_ports_to_range","ref":"convert_ports_to_range","sha":"31890390ae04bf8e1b1bfd788614741a5d013420","user":{"login":"selmanj","id":798897,"avatar_url":"https://avatars.githubusercontent.com/u/798897?v=3","gravatar_id":"","url":"https://api.github.com/users/selmanj","html_url":"https://github.com/selmanj","followers_url":"https://api.github.com/users/selmanj/followers","following_url":"https://api.github.com/users/selmanj/following{/other_user}","gists_url":"https://api.github.com/users/selmanj/gists{/gist_id}","starred_url":"https://api.github.com/users/selmanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selmanj/subscriptions","organizations_url":"https://api.github.com/users/selmanj/orgs","repos_url":"https://api.github.com/users/selmanj/repos","events_url":"https://api.github.com/users/selmanj/events{/privacy}","received_events_url":"https://api.github.com/users/selmanj/received_events","type":"User","site_admin":false},"repo":{"id":54430945,"name":"manageiq","full_name":"selmanj/manageiq","owner":{"login":"selmanj","id":798897,"avatar_url":"https://avatars.githubusercontent.com/u/798897?v=3","gravatar_id":"","url":"https://api.github.com/users/selmanj","html_url":"https://github.com/selmanj","followers_url":"https://api.github.com/users/selmanj/followers","following_url":"https://api.github.com/users/selmanj/following{/other_user}","gists_url":"https://api.github.com/users/selmanj/gists{/gist_id}","starred_url":"https://api.github.com/users/selmanj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selmanj/subscriptions","organizations_url":"https://api.github.com/users/selmanj/orgs","repos_url":"https://api.github.com/users/selmanj/repos","events_url":"https://api.github.com/users/selmanj/events{/privacy}","received_events_url":"https://api.github.com/users/selmanj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/selmanj/manageiq","description":"ManageIQ Cloud Management Platform","fork":true,"url":"https://api.github.com/repos/selmanj/manageiq","forks_url":"https://api.github.com/repos/selmanj/manageiq/forks","keys_url":"https://api.github.com/repos/selmanj/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/selmanj/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/selmanj/manageiq/teams","hooks_url":"https://api.github.com/repos/selmanj/manageiq/hooks","issue_events_url":"https://api.github.com/repos/selmanj/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/selmanj/manageiq/events","assignees_url":"https://api.github.com/repos/selmanj/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/selmanj/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/selmanj/manageiq/tags","blobs_url":"https://api.github.com/repos/selmanj/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/selmanj/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/selmanj/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/selmanj/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/selmanj/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/selmanj/manageiq/languages","stargazers_url":"https://api.github.com/repos/selmanj/manageiq/stargazers","contributors_url":"https://api.github.com/repos/selmanj/manageiq/contributors","subscribers_url":"https://api.github.com/repos/selmanj/manageiq/subscribers","subscription_url":"https://api.github.com/repos/selmanj/manageiq/subscription","commits_url":"https://api.github.com/repos/selmanj/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/selmanj/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/selmanj/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/selmanj/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/selmanj/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/selmanj/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/selmanj/manageiq/merges","archive_url":"https://api.github.com/repos/selmanj/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/selmanj/manageiq/downloads","issues_url":"https://api.github.com/repos/selmanj/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/selmanj/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/selmanj/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/selmanj/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/selmanj/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/selmanj/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/selmanj/manageiq/deployments","created_at":"2016-03-21T23:44:14Z","updated_at":"2016-03-21T23:44:32Z","pushed_at":"2016-08-26T18:21:20Z","git_url":"git://github.com/selmanj/manageiq.git","ssh_url":"git@github.com:selmanj/manageiq.git","clone_url":"https://github.com/selmanj/manageiq.git","svn_url":"https://github.com/selmanj/manageiq","homepage":"manageiq.org","size":150746,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ManageIQ:master","ref":"master","sha":"97eb0e1766274e377c30739fe8065b86dabcf274","user":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","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":20789757,"name":"manageiq","full_name":"ManageIQ/manageiq","owner":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars.githubusercontent.com/u/1125575?v=3","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},"private":false,"html_url":"https://github.com/ManageIQ/manageiq","description":"ManageIQ Open-Source Management Platform","fork":false,"url":"https://api.github.com/repos/ManageIQ/manageiq","forks_url":"https://api.github.com/repos/ManageIQ/manageiq/forks","keys_url":"https://api.github.com/repos/ManageIQ/manageiq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/manageiq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/manageiq/teams","hooks_url":"https://api.github.com/repos/ManageIQ/manageiq/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/manageiq/events","assignees_url":"https://api.github.com/repos/ManageIQ/manageiq/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/manageiq/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/manageiq/tags","blobs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/manageiq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/manageiq/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/manageiq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/manageiq/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/manageiq/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/manageiq/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/manageiq/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/manageiq/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/manageiq/subscription","commits_url":"https://api.github.com/repos/ManageIQ/manageiq/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/manageiq/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/manageiq/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/manageiq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/manageiq/merges","archive_url":"https://api.github.com/repos/ManageIQ/manageiq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/manageiq/downloads","issues_url":"https://api.github.com/repos/ManageIQ/manageiq/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/manageiq/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/manageiq/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/manageiq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/manageiq/releases{/id}","deployments_url":"https://api.github.com/repos/ManageIQ/manageiq/deployments","created_at":"2014-06-13T02:31:26Z","updated_at":"2016-08-29T16:42:07Z","pushed_at":"2016-08-29T21:10:35Z","git_url":"git://github.com/ManageIQ/manageiq.git","ssh_url":"git@github.com:ManageIQ/manageiq.git","clone_url":"https://github.com/ManageIQ/manageiq.git","svn_url":"https://github.com/ManageIQ/manageiq","homepage":"manageiq.org","size":198156,"stargazers_count":309,"watchers_count":309,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":343,"mirror_url":null,"open_issues_count":829,"forks":343,"open_issues":829,"watchers":309,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10804"},"html":{"href":"https://github.com/ManageIQ/manageiq/pull/10804"},"issue":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/10804"},"comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/issues/10804/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10804/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/manageiq/pulls/10804/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/manageiq/statuses/31890390ae04bf8e1b1bfd788614741a5d013420"}}}}
{"actor":{"display_login":"selmanj"}}