{"action":"created","comment":{"url":"https://api.github.com/repos/ndoit/huginn/pulls/comments/29605279","id":29605279,"diff_hunk":"@@ -0,0 +1,70 @@\n+require \"net/http\"\n+require \"json\"\n+require \"open-uri\"\n+require \"httparty\"\n+require \"will_paginate/array\"\n+\n+class PermissionGroupsController < ApplicationController\n+  before_filter CASClient::Frameworks::Rails::Filter, :only => :authenticated_show\n+  skip_before_action :verify_authenticity_token\n+\n+  # display all permission groups\n+  def index\n+\n+    logger.debug(\"Querying Muninn...\")\n+    page =params[:page]\n+    json_string = Muninn::CustomSearchAdapter.create_search_string( params[:q], session[:cas_user], session[:cas_pgt] )\n+    @results= Muninn::CustomSearchAdapter.custom_query(json_string, params[:page], 15, session[:cas_user], session[:cas_pgt] )\n+    @results_= @results.select { |k| \"#{k[:type]}\" ==\"permission_group\"}\n+    @results = @results.sort_by { |k| \"#{k[:sort_name]}\"}\n+    @results =@results.paginate(:page=> page, :per_page => 15)\n+\n+\n+  end\n+  # display permission_group detail page\n+  def show\n+    logger.debug(\"Querying Muninn...\")\n+    permission_group_resp = Muninn::Adapter.get( \"/permission_groups/\" + URI::encode(params[:id]), session[:cas_user], session[:cas_pgt] )\n+    @permission_group = JSON.parse(permission_group_resp.body)\n+\n+  end\n+\n+  def update\n+    logger.debug(\"/permission_groups/id/#{URI.encode(params[:id])}\")\n+    response = Muninn::Adapter.put( \"/permission_groups/id/#{URI.encode(params[:id])}\", session[:cas_user], session[:cas_pgt], params[:permissiongroupJSON] )","path":"app/controllers/permission_groups_controller.rb","position":34,"original_position":34,"commit_id":"ea0254880cf2df1b59667519473d7a0f06d20342","original_commit_id":"ea0254880cf2df1b59667519473d7a0f06d20342","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [157/80]<br>Space inside parentheses detected.","created_at":"2015-05-04T17:44:03Z","updated_at":"2015-05-04T17:44:03Z","html_url":"https://github.com/ndoit/huginn/pull/38#discussion_r29605279","pull_request_url":"https://api.github.com/repos/ndoit/huginn/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/ndoit/huginn/pulls/comments/29605279"},"html":{"href":"https://github.com/ndoit/huginn/pull/38#discussion_r29605279"},"pull_request":{"href":"https://api.github.com/repos/ndoit/huginn/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/ndoit/huginn/pulls/38","id":34657546,"html_url":"https://github.com/ndoit/huginn/pull/38","diff_url":"https://github.com/ndoit/huginn/pull/38.diff","patch_url":"https://github.com/ndoit/huginn/pull/38.patch","issue_url":"https://api.github.com/repos/ndoit/huginn/issues/38","number":38,"state":"open","locked":false,"title":"Post meeting","user":{"login":"RyanSnodgrass","id":7104855,"avatar_url":"https://avatars.githubusercontent.com/u/7104855?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanSnodgrass","html_url":"https://github.com/RyanSnodgrass","followers_url":"https://api.github.com/users/RyanSnodgrass/followers","following_url":"https://api.github.com/users/RyanSnodgrass/following{/other_user}","gists_url":"https://api.github.com/users/RyanSnodgrass/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanSnodgrass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanSnodgrass/subscriptions","organizations_url":"https://api.github.com/users/RyanSnodgrass/orgs","repos_url":"https://api.github.com/users/RyanSnodgrass/repos","events_url":"https://api.github.com/users/RyanSnodgrass/events{/privacy}","received_events_url":"https://api.github.com/users/RyanSnodgrass/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-04T17:43:55Z","updated_at":"2015-05-04T17:44:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ndoit/huginn/pulls/38/commits","review_comments_url":"https://api.github.com/repos/ndoit/huginn/pulls/38/comments","review_comment_url":"https://api.github.com/repos/ndoit/huginn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ndoit/huginn/issues/38/comments","statuses_url":"https://api.github.com/repos/ndoit/huginn/statuses/ea0254880cf2df1b59667519473d7a0f06d20342","head":{"label":"ndoit:post_meeting","ref":"post_meeting","sha":"ea0254880cf2df1b59667519473d7a0f06d20342","user":{"login":"ndoit","id":6223716,"avatar_url":"https://avatars.githubusercontent.com/u/6223716?v=3","gravatar_id":"","url":"https://api.github.com/users/ndoit","html_url":"https://github.com/ndoit","followers_url":"https://api.github.com/users/ndoit/followers","following_url":"https://api.github.com/users/ndoit/following{/other_user}","gists_url":"https://api.github.com/users/ndoit/gists{/gist_id}","starred_url":"https://api.github.com/users/ndoit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndoit/subscriptions","organizations_url":"https://api.github.com/users/ndoit/orgs","repos_url":"https://api.github.com/users/ndoit/repos","events_url":"https://api.github.com/users/ndoit/events{/privacy}","received_events_url":"https://api.github.com/users/ndoit/received_events","type":"Organization","site_admin":false},"repo":{"id":15756097,"name":"huginn","full_name":"ndoit/huginn","owner":{"login":"ndoit","id":6223716,"avatar_url":"https://avatars.githubusercontent.com/u/6223716?v=3","gravatar_id":"","url":"https://api.github.com/users/ndoit","html_url":"https://github.com/ndoit","followers_url":"https://api.github.com/users/ndoit/followers","following_url":"https://api.github.com/users/ndoit/following{/other_user}","gists_url":"https://api.github.com/users/ndoit/gists{/gist_id}","starred_url":"https://api.github.com/users/ndoit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndoit/subscriptions","organizations_url":"https://api.github.com/users/ndoit/orgs","repos_url":"https://api.github.com/users/ndoit/repos","events_url":"https://api.github.com/users/ndoit/events{/privacy}","received_events_url":"https://api.github.com/users/ndoit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ndoit/huginn","description":"The front end portion of the BI Portal","fork":false,"url":"https://api.github.com/repos/ndoit/huginn","forks_url":"https://api.github.com/repos/ndoit/huginn/forks","keys_url":"https://api.github.com/repos/ndoit/huginn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndoit/huginn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndoit/huginn/teams","hooks_url":"https://api.github.com/repos/ndoit/huginn/hooks","issue_events_url":"https://api.github.com/repos/ndoit/huginn/issues/events{/number}","events_url":"https://api.github.com/repos/ndoit/huginn/events","assignees_url":"https://api.github.com/repos/ndoit/huginn/assignees{/user}","branches_url":"https://api.github.com/repos/ndoit/huginn/branches{/branch}","tags_url":"https://api.github.com/repos/ndoit/huginn/tags","blobs_url":"https://api.github.com/repos/ndoit/huginn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndoit/huginn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndoit/huginn/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndoit/huginn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndoit/huginn/statuses/{sha}","languages_url":"https://api.github.com/repos/ndoit/huginn/languages","stargazers_url":"https://api.github.com/repos/ndoit/huginn/stargazers","contributors_url":"https://api.github.com/repos/ndoit/huginn/contributors","subscribers_url":"https://api.github.com/repos/ndoit/huginn/subscribers","subscription_url":"https://api.github.com/repos/ndoit/huginn/subscription","commits_url":"https://api.github.com/repos/ndoit/huginn/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndoit/huginn/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndoit/huginn/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndoit/huginn/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndoit/huginn/contents/{+path}","compare_url":"https://api.github.com/repos/ndoit/huginn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndoit/huginn/merges","archive_url":"https://api.github.com/repos/ndoit/huginn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndoit/huginn/downloads","issues_url":"https://api.github.com/repos/ndoit/huginn/issues{/number}","pulls_url":"https://api.github.com/repos/ndoit/huginn/pulls{/number}","milestones_url":"https://api.github.com/repos/ndoit/huginn/milestones{/number}","notifications_url":"https://api.github.com/repos/ndoit/huginn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndoit/huginn/labels{/name}","releases_url":"https://api.github.com/repos/ndoit/huginn/releases{/id}","created_at":"2014-01-09T03:53:33Z","updated_at":"2015-02-09T14:57:59Z","pushed_at":"2015-05-04T17:43:55Z","git_url":"git://github.com/ndoit/huginn.git","ssh_url":"git@github.com:ndoit/huginn.git","clone_url":"https://github.com/ndoit/huginn.git","svn_url":"https://github.com/ndoit/huginn","homepage":null,"size":37664,"stargazers_count":2,"watchers_count":2,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":11,"forks":1,"open_issues":11,"watchers":2,"default_branch":"master"}},"base":{"label":"ndoit:dev","ref":"dev","sha":"62715f144dcd3d50b0bf45c6acfcdb4fc7c8f868","user":{"login":"ndoit","id":6223716,"avatar_url":"https://avatars.githubusercontent.com/u/6223716?v=3","gravatar_id":"","url":"https://api.github.com/users/ndoit","html_url":"https://github.com/ndoit","followers_url":"https://api.github.com/users/ndoit/followers","following_url":"https://api.github.com/users/ndoit/following{/other_user}","gists_url":"https://api.github.com/users/ndoit/gists{/gist_id}","starred_url":"https://api.github.com/users/ndoit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndoit/subscriptions","organizations_url":"https://api.github.com/users/ndoit/orgs","repos_url":"https://api.github.com/users/ndoit/repos","events_url":"https://api.github.com/users/ndoit/events{/privacy}","received_events_url":"https://api.github.com/users/ndoit/received_events","type":"Organization","site_admin":false},"repo":{"id":15756097,"name":"huginn","full_name":"ndoit/huginn","owner":{"login":"ndoit","id":6223716,"avatar_url":"https://avatars.githubusercontent.com/u/6223716?v=3","gravatar_id":"","url":"https://api.github.com/users/ndoit","html_url":"https://github.com/ndoit","followers_url":"https://api.github.com/users/ndoit/followers","following_url":"https://api.github.com/users/ndoit/following{/other_user}","gists_url":"https://api.github.com/users/ndoit/gists{/gist_id}","starred_url":"https://api.github.com/users/ndoit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndoit/subscriptions","organizations_url":"https://api.github.com/users/ndoit/orgs","repos_url":"https://api.github.com/users/ndoit/repos","events_url":"https://api.github.com/users/ndoit/events{/privacy}","received_events_url":"https://api.github.com/users/ndoit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ndoit/huginn","description":"The front end portion of the BI Portal","fork":false,"url":"https://api.github.com/repos/ndoit/huginn","forks_url":"https://api.github.com/repos/ndoit/huginn/forks","keys_url":"https://api.github.com/repos/ndoit/huginn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ndoit/huginn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ndoit/huginn/teams","hooks_url":"https://api.github.com/repos/ndoit/huginn/hooks","issue_events_url":"https://api.github.com/repos/ndoit/huginn/issues/events{/number}","events_url":"https://api.github.com/repos/ndoit/huginn/events","assignees_url":"https://api.github.com/repos/ndoit/huginn/assignees{/user}","branches_url":"https://api.github.com/repos/ndoit/huginn/branches{/branch}","tags_url":"https://api.github.com/repos/ndoit/huginn/tags","blobs_url":"https://api.github.com/repos/ndoit/huginn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ndoit/huginn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ndoit/huginn/git/refs{/sha}","trees_url":"https://api.github.com/repos/ndoit/huginn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ndoit/huginn/statuses/{sha}","languages_url":"https://api.github.com/repos/ndoit/huginn/languages","stargazers_url":"https://api.github.com/repos/ndoit/huginn/stargazers","contributors_url":"https://api.github.com/repos/ndoit/huginn/contributors","subscribers_url":"https://api.github.com/repos/ndoit/huginn/subscribers","subscription_url":"https://api.github.com/repos/ndoit/huginn/subscription","commits_url":"https://api.github.com/repos/ndoit/huginn/commits{/sha}","git_commits_url":"https://api.github.com/repos/ndoit/huginn/git/commits{/sha}","comments_url":"https://api.github.com/repos/ndoit/huginn/comments{/number}","issue_comment_url":"https://api.github.com/repos/ndoit/huginn/issues/comments{/number}","contents_url":"https://api.github.com/repos/ndoit/huginn/contents/{+path}","compare_url":"https://api.github.com/repos/ndoit/huginn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ndoit/huginn/merges","archive_url":"https://api.github.com/repos/ndoit/huginn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ndoit/huginn/downloads","issues_url":"https://api.github.com/repos/ndoit/huginn/issues{/number}","pulls_url":"https://api.github.com/repos/ndoit/huginn/pulls{/number}","milestones_url":"https://api.github.com/repos/ndoit/huginn/milestones{/number}","notifications_url":"https://api.github.com/repos/ndoit/huginn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ndoit/huginn/labels{/name}","releases_url":"https://api.github.com/repos/ndoit/huginn/releases{/id}","created_at":"2014-01-09T03:53:33Z","updated_at":"2015-02-09T14:57:59Z","pushed_at":"2015-05-04T17:43:55Z","git_url":"git://github.com/ndoit/huginn.git","ssh_url":"git@github.com:ndoit/huginn.git","clone_url":"https://github.com/ndoit/huginn.git","svn_url":"https://github.com/ndoit/huginn","homepage":null,"size":37664,"stargazers_count":2,"watchers_count":2,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":11,"forks":1,"open_issues":11,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ndoit/huginn/pulls/38"},"html":{"href":"https://github.com/ndoit/huginn/pull/38"},"issue":{"href":"https://api.github.com/repos/ndoit/huginn/issues/38"},"comments":{"href":"https://api.github.com/repos/ndoit/huginn/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/ndoit/huginn/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/ndoit/huginn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ndoit/huginn/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/ndoit/huginn/statuses/ea0254880cf2df1b59667519473d7a0f06d20342"}}}}